[x264-devel] Codec usage with image sequence

Jason Garrett-Glaser darkshikari at gmail.com
Thu Feb 19 12:06:41 CET 2009


On Thu, Feb 19, 2009 at 2:41 AM, Stephan Menzel <stephan.menzel at gmx.eu> wrote:
> Hi there,
>
>> Yes, the first pointer is the Y plane, the second is the U plane, the
>> third is the V plane.
>>
>> The format of YV12 is very basic; you should be able to trivially
>> write a converter from RGB or another format of your choice.
>
> Well, I'm on it. I found several RGB to VY12 conversion formulas and I'll try to use them. However, there's still questions left ;-)
>
> If I look at this for instance:
> http://www.fourcc.org/fccyvrgb.php
>
> There it says it's a simple math.
> The pointers to those planes are all *uint8_t, but the mem allocated for the 3 planes seems to differ. looking at x264_picture_alloc it appears to me, there's more mem for the first plane than for the rest. Yet I will have one value for each pixel so is the Y plane a wider data type or are they alll uint8 and I'm just interpreting the code wrong?

Look up what YV12 means again.  Chroma planes are half the size of the
luma plane.

Dark Shikari


More information about the x264-devel mailing list