summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJason Chen <b02280@freescale.com>2009-11-19 18:45:23 +0800
committerJustin Waters <justin.waters@timesys.com>2010-03-25 14:01:11 -0400
commitd336ecc02cdfd022ebe124753aba101fd29af8e6 (patch)
treec0b704520fc904f2e680faac0c20ceb4f6920a88 /drivers
parented69767a41efd61f547bade29e5e567c4209bc09 (diff)
ENGR00118252 ipuv3: change dp csc coeff for rgb2yuv
After switch DP(2 layer) from lcd to tvout, fb1 use RGBP format, the output of fb1's color was not exactly correct. Signed-off-by: Jason Chen <b02280@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mxc/ipu3/ipu_disp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mxc/ipu3/ipu_disp.c b/drivers/mxc/ipu3/ipu_disp.c
index 79b0c2123c22..e1f0ef7f8454 100644
--- a/drivers/mxc/ipu3/ipu_disp.c
+++ b/drivers/mxc/ipu3/ipu_disp.c
@@ -216,13 +216,13 @@ static void _ipu_dc_link_event(int chan, int event, int addr, int priority)
__raw_writel(reg, DC_RL_CH(chan, event));
}
-/* Y = R * .299 + G * .587 + B * .114;
- U = R * -.169 + G * -.332 + B * .500 + 128.;
- V = R * .500 + G * -.419 + B * -.0813 + 128.;*/
+/* Y = R * 1.200 + G * 2.343 + B * .453 + 0.250;
+ U = R * -.672 + G * -1.328 + B * 2.000 + 512.250.;
+ V = R * 2.000 + G * -1.672 + B * -.328 + 512.250.;*/
static const int rgb2ycbcr_coeff[5][3] = {
- {153, 301, 58},
- {-87, -170, 0x0100},
- {0x100, -215, -42},
+ {0x4D, 0x96, 0x1D},
+ {0x3D5, 0x3AB, 0x80},
+ {0x80, 0x395, 0x3EB},
{0x0000, 0x0200, 0x0200}, /* B0, B1, B2 */
{0x2, 0x2, 0x2}, /* S0, S1, S2 */
};