[Mplayer-cvslog] CVS: main cinepak.c,1.9,1.10

Arpi arpi at thot.banki.hu
Mon Mar 25 10:50:30 CET 2002


Hi,

> >         planes[0] = Y = luminance
> >         planes[1] = U = Cb = blue
> >         planes[2] = V = Cr = red
> >     Note: planes[1] is ALWAYS U, and planes[1] is V, the fourcc
> >     (YV12 vs. I420) doesn't matter here! So, every codecs using 3 pointers
> >     (not only the first one) normally supports YV12 and I420 (=IYUV) too!
> hmm, if the codec is asked to deliver I420, it should deliver I420 and
> not YV12, that means you need to swap U and V data when using I420...

not really.
the difference between YV12 and I420 is only the order of U and V planes
_in_memory_. if we pass 3 independent pointer to the codec for the planes,
and the codec uses these pointers it doesn't matter what is the order of
these blocks in memory. the codec know where to render the U and V planes,
and the YV12 vs I420 is the problem of memory allocation and setting of
pointers (vd.c).

but if you don't believe me, just add I420 to cvid in codecs.conf and try


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-cvslog mailing list