On 18/10/05, Andre Renaud <[EMAIL PROTECTED]> wrote: > I've recently upgraded to a new VIA M10000 board, which appears to have > a revised CLE266 chipset (it says it is revision 18). Now when I run > mplayer, using directfb & YV12 overlays the colours are a bit off, > vaguely pinkish tones seem to be everywhere. > > Has anyone seen this before? I found mention to a similar problem with > the rev 17 board, but the fix doesn't seem to work on the new one. > Alternatively, does anyone know where abouts I can start looking in the > gfxdrivers/unichrome directory to sort this out?
The current unichrome driver has a buggy implementation of SetColorAdjustment, part of which is commented out but not quite enough. This doesn't get the YUV colour-space conversion right for any hardware version, the result on my box being a dull washed out image on my box. To disable it, comment out the entry for SetColorAdjustment in ucOverlayFuncs at the end of uc_overlay.c. DirectFB then doesn't call it. That done, the colour-space conversion registers are set from the hard-coded constants in vidregs.h (ColorSpaceValue_1 and ColorSpaceValue_2 or ColorSpaceValue_1_3123C0 and ColorSpaceValue_2_3123C0). Which pair of values are chosen is determined by the hardware revision but there are also problems with detection of the hardware revision number so you'll need to check you're getting the right values. If neither set of values gives you a good picture, there may be a new variant about but the Unichome X driver still only has the two. Mark _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
