imgutils: create misc functions for dealing with buffers

Move the lavc/imgconvert functions and rename them as follows:
  avpicture_get_size -> av_image_get_buffer_size()
  avpicture_fill     -> av_image_fill_arrays()
  avpicture_layout   -> av_image_copy_to_buffer()

The new functions have an align parameter, which allows to define the
linesize alignment assumed in the buffer (which is set or read).

The names of the functions are consistent with the lavu/samples API
(av_samples_get_buffer_size(), av_samples_fill_arrays()).

A redundant check has been dropped from av_image_fill_arrays().

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
Stefano Sabatini
2014-12-10 12:20:49 +00:00
committed by Vittorio Giovara
parent cf70ba37ba
commit e2ad0b66fa
6 changed files with 158 additions and 89 deletions

View File

@@ -22,6 +22,10 @@ API changes, most recent first:
201x-xx-xx - xxxxxxx - lavc 56.8.0 - avcodec.h
Add AVCodecContext.sw_pix_fmt.
2014-11-xx - xxxxxxx - lavu 54.6.0 - imgutils.h
Add utility functions for image manipulation: av_image_get_buffer_size()
av_image_fill_arrays() and av_image_copy_to_buffer().
2014-11-xx - xxxxxxx - lavf 56.06.3 - avformat.h
Add AVFormatContext.avoid_negative_ts.