[x264-devel] Re: Questions about x264 encoder apis

Måns Rullgård mru at inprovide.com
Thu Mar 31 23:24:07 CEST 2005


Tuukka Toivonen <tuukkat at ee.oulu.fi> writes:

> On Thu, 31 Mar 2005, Bill May wrote:
>
>> Great.  Thank you.  Another question - is it possible to have access to
>> the reconstructed YUV from the encoder, so we can display a preview ?  If
>> you tell me which structure, I'd be glad to write an api and contribute it
>> back.
>
> From inside the encoder, you get it with code something like
>
>      uint8_t *const frame = h->fdec->plane[0];
>      const int width = h->param.i_width;
>      const int height = h->param.i_height;
>      const int stride = h->fdec->i_stride[0];
>
> for the luma plane, and I suppose similarly for the chroma.
> I don't know if it's accessible through the API.

Now it is.  The pic_out parameter to x264_encoder_encode is filled out
just like the input frame.

-- 
Måns Rullgård
mru at inprovide.com

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list