Log in

View Full Version : YV12 plane ordering


-h
5th December 2002, 07:51
Just to clear up some issues and convince myself that the universe hasn't folded in on itself, this is my current understanding of the planar colorspaces. Forgive how basic it is:

YV12: Y plane is stored, followed by half-width/half-height V plane (whose stride is half the Y plane's), followed by a similarly sized U plane.

I420 / IYUV: As with YV12, but the U plane comes before the V plane.

And with the mod-4 requirements of VfW, any YV12/I420/IYUV image going through VfW will have at least a mod-4 stride for the Y-plane, even if the line width is only mod-2.

Please tell me this is true.

I have.. strange things happening to my chroma information.

-h

leo_fischer
5th December 2002, 09:32
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/YUVFormats.asp

About 3/2 of the way down the page.

-h
5th December 2002, 18:41
I thought I was doing everything right.

!@#!#@$!@#$.

-h