Commit Graph

11 Commits

Author SHA1 Message Date
Stefano Sabatini be7110cded Cosmetics: if( -> if (.
Originally committed as revision 24859 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-21 15:18:52 +00:00
Stefano Sabatini e34433612f Rename av_fill_image_max_pixstep() to av_fill_image_max_pixsteps().
The plural form is preferred as it is more consistent with the other functions:
av_fill_image_linesizes()
av_fill_image_pointers()

and looks semantically more correct as it fills an array of elements.

Originally committed as revision 24851 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-20 16:52:38 +00:00
Stefano Sabatini a6ddf8bf0f Implement inline function av_fill_image_max_pixstep() and use it for
factorizing code.

Originally committed as revision 24827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-18 21:02:38 +00:00
Stefano Sabatini 7906e2b974 Implement av_get_image_linesize() and use it in
ff_get_plane_bytewidth().

The new implementation is more generic, more compact and more correct.

Originally committed as revision 24786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-12 15:05:58 +00:00
Stefano Sabatini 899a507fa6 Clarify av_check_image_size() log message.
Originally committed as revision 24710 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-06 09:36:50 +00:00
Stefano Sabatini bf176f58b7 Deprecate avcodec_check_dimensions() in favor of the new function
av_check_image_size() declared in libavcore/imgutils.h.

Originally committed as revision 24709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-06 09:36:45 +00:00
Stefano Sabatini ecc7bfe30c Rename the av_fill_image_linesize() formal parameter linesize to
linesizes, for consistency with the function declaration.

Originally committed as revision 24591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-30 08:42:22 +00:00
Stefano Sabatini 7d8d18de2c Reimplement av_fill_image_pointers() using the information stored in
the pixdescs.

The new implementation is more compact, and does not need to be
updated at each pixel format addition.

Originally committed as revision 24590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-30 08:42:19 +00:00
Stefano Sabatini 46b1d17a6f Make av_fill_image_linesizes() return a meaningful error core rather
than -1.

Originally committed as revision 24589 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-30 08:42:15 +00:00
Stefano Sabatini 7860b43651 Rename av_fill_image_linesizes() internal variables max_plane_step and
max_plane_step_comp by removing the "plane_" word, and add a comment
for explaining what they represent.

Increase readability.

Originally committed as revision 24588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-30 08:42:12 +00:00
Stefano Sabatini e7bd48a6ae Move fill_image_linesize() and fill_image_data_ptr() from
libavcodec/imgconvert.c and make them public in libavcore/imgutils.h,
with the names av_fill_image_linesizes() and av_fill_image_pointers().

Originally committed as revision 24583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-29 23:44:57 +00:00