OSDN Git Service

imgutils: create misc functions for dealing with buffers
authorStefano Sabatini <stefasab@gmail.com>
Wed, 10 Dec 2014 12:20:49 +0000 (12:20 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 14 Jan 2015 16:17:24 +0000 (17:17 +0100)
commite2ad0b66fa273c5c823978e8f601f2c0d9ee42f8
treed746c75e7edf7f24faf96980c9392fcf744abe4e
parentcf70ba37ba74089a18295b29e77dead0a3222c9e
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>
doc/APIchanges
libavcodec/avcodec.h
libavcodec/avpicture.c
libavutil/imgutils.c
libavutil/imgutils.h
libavutil/version.h