[FFmpeg-cvslog] r24587 - trunk/libavcodec/imgconvert.c
stefano
subversion
Fri Jul 30 10:42:08 CEST 2010
Author: stefano
Date: Fri Jul 30 10:42:08 2010
New Revision: 24587
Log:
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.
Modified:
trunk/libavcodec/imgconvert.c
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c Fri Jul 30 02:29:50 2010 (r24586)
+++ trunk/libavcodec/imgconvert.c Fri Jul 30 10:42:08 2010 (r24587)
@@ -509,10 +509,10 @@ int avpicture_fill(AVPicture *picture, u
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,
More information about the ffmpeg-cvslog
mailing list