Mercurial > libavcodec.hg
changeset 12299:6c42dc376222 libavcodec
Make avpicture_fill() directly call av_fill_image_linesizes() and
av_fill_image_pointers() rather than their wrappers ff_fill_linesize()
and ff_fill_pointer().
Improve performance.
author | stefano |
---|---|
date | Fri, 30 Jul 2010 08:42:08 +0000 |
parents | bfc36c0fea55 |
children | c13e3c23d093 |
files | imgconvert.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/imgconvert.c Thu Jul 29 23:44:57 2010 +0000 +++ b/imgconvert.c Fri Jul 30 08:42:08 2010 +0000 @@ -509,10 +509,10 @@ if(avcodec_check_dimensions(NULL, width, height)) return -1; - if (ff_fill_linesize(picture, pix_fmt, width)) + if (av_fill_image_linesizes(picture->linesize, pix_fmt, width)) return -1; - return ff_fill_pointer(picture, ptr, pix_fmt, height); + return av_fill_image_pointers(picture->data, pix_fmt, height, ptr, picture->linesize); } int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width, int height,