RGB/YCrCb Conversion on 16-bit DSP
9794 19221 3752 16384 -13706 -2677 -5531 -10852 16384
32767 2 (22973) 0 32767 -23412 -11331 32767 0 2 (29015)
- Matrix multiplication (coefficients scaled by 215-1)
G = 2 (27929) Y - 6396 B - 18504 R
Y = 9794 R + 19221 G + 3752 B
- Move 8-bit color quantity to upper 8 of 16 bits
- Use 16 x 16 multiplication, 32-bit accumulation
- Nested formulas (coefficients scaled by 215-1)