diff options
author | Ton Roosendaal <ton@blender.org> | 2003-12-03 19:13:58 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-12-03 19:13:58 +0300 |
commit | 241906b5881ff510aaf95fdf74b4e30f37f5fea6 (patch) | |
tree | b4b68402f0ce332a260320ff76dd5ce3f8453571 /source/blender/imbuf/intern/matrix.h | |
parent | 50b6f0aa33464deb61efc15ce00cff8fb90b3448 (diff) |
- fixed matrix conversion to make rgb -> bw images.
somehow this was mixed up, or forgotten to fix when endian issues were
solved in the past (1998)...
To check: red color should be 30% grey, blue 10%. This was switched,
making B&W images look unnatural.
Diffstat (limited to 'source/blender/imbuf/intern/matrix.h')
-rw-r--r-- | source/blender/imbuf/intern/matrix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/matrix.h b/source/blender/imbuf/intern/matrix.h index 20127e806a9..0036ff7b570 100644 --- a/source/blender/imbuf/intern/matrix.h +++ b/source/blender/imbuf/intern/matrix.h @@ -62,9 +62,9 @@ float yuvrgb[4][4]={ -226.816, 135.460, -179.456, 1.0}; float rgb_to_bw[4][4]={ - .114, .114, .114, 0.0, - .587, .587, .587, 0.0, .299, .299, .299, 0.0, + .587, .587, .587, 0.0, + .114, .114, .114, 0.0, 0.5, 0.5, 0.5, 1.0}; float dyuvrgb_oud[4][4]={ |