Dear Alex,
I dont understand the complete question.....
Is there some similar method that can be used to extract
top and bottom fields from a yuv 4:2:0 format frame ?
alloc_picture(int pix_fmt, int width, int height)
{
AVFrame *picture;
uint8_t *picture_buf;
int size;
picture = avcodec_alloc_frame();
if (!picture)
return NULL;
size = avpicture_get_size((PixelFormat)pix_fmt, width, height);
picture_buf = (uint8_t *)av_malloc(size);
if (!picture_buf) {
av_free(picture);
return NULL;
}
avpicture_fill((AVPicture *)picture, picture_buf,
pix_fmt, width, height);
return picture;
}
this is an example how i used....
On 5/19/09, alex b. <[email protected]> wrote:
>
>
>
> Hi All,
>
> Just wondering, what is the correct comibination of
> avcodec_allocate_frame(), avpicture_fill(), and avpicture_copy() that
> will do a deep copy of an AVFrame and return a pointer to the new
> frame?? Also... is there some similar method that can be used to extract
> top and bottom fields from a yuv 4:2:0 format frame ?
>
> Any tips appreciated...
>
>
> Alex B.
>
>
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user