[MPlayer-dev-eng] OSX, Quartz & yv12
Romain Dolbeau
dolbeau at irisa.fr
Fri Jan 23 17:33:19 CET 2004
Nicolas Plourde wrote:
> Hi, Im currently programming a vo driver for OSX using Carbon & Quartz.
> I can play RGB BGR correctly but yv12 is not working correctly
> (everything is light blue).
>
> here some inf on the file:
>
> VDec: vo config request - 540 x 364 (preferred csp: Planar YV12)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is undefined - no prescaling applied.
> No accelerated colorspace conversion found
> SwScaler: using unscaled Planar YV12 -> RGB 32-bit special converter
> VO: [quartz] 540x364 => 540x364 RGB 32-bit
>
> Look like Mplayer is converting color space but something is going wrong
> in the
> process (big endian maybe). Any idea ?
The relevant function seems to be in postproc/swscale.c,
setting up a function in postproc/yuv2rgb.c
IMGFMT_YV12 to IMGFMT_RGB32 is handled by yuv2rgb_c_32,
and apparently it is the same function when converting
to IMGFMT_BGR32, something that the ignorant me find
highly suspect. I believe you're right and that there's
definitely an endianess problem.
More information about the MPlayer-dev-eng
mailing list