Stefan Lucke schrieb:
> There might be some other mystic ;-) .
> YUV (aka YV12) valid values are _not_ in the range 0 .. 255 !
> Y and U/V values should be clamped:
> luma values to the range 16 .. 235 and
> chroma values to the range 15 .. 240 .
> 
Of course you are right that YUV values are not in the range 0-255, but
I doubt that this causes the problems.
In this bugreport it was stated that the same osd switches from
correctly displayed to wrong colors:

> Sometimes, if I leave some part of OSD
> on screen without touching it for a while, it will flick from being
> correct to being pink, and back again, as adverts come and go, at
> different resolutions.

I can hardy imagine how a wrong range could cause that. Also the stripes
look like some scaling issue...

> Perhaps that could be tested in the C part of alpha mixing code -> 
> AlphaBlend().
> 
That is one possibility, but using the correct range in ARGB_to_AYUV()
is probably the better solution. By the way, are you sure that the
calculation in ARGB_to_AYUV() is wrong? I must admit that I never
checked it, but at least the Y component seems to be correct.

Bye,
Martin


_______________________________________________
Softdevice-devel mailing list
[email protected]
http://bat.berlios.de/mailman/listinfo/softdevice-devel

Reply via email to