lavu/imgutils: create misc functions for dealing with buffers
authorStefano Sabatini <stefasab@gmail.com>
Tue, 19 Jun 2012 00:45:36 +0000 (02:45 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 26 Jun 2012 11:12:12 +0000 (13:12 +0200)
commite6674e46ecdd7aaa93d7f7d818eb1c8224b35eae
tree9a32ce6c2113ef0c8f3e5e23755d8f936f58f577
parentfd91a3ec44de38251b2c15e03e26d14e983c4e44
lavu/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()).
doc/APIchanges
libavcodec/avcodec.h
libavcodec/imgconvert.c
libavcodec/version.h
libavutil/imgutils.c
libavutil/imgutils.h
libavutil/version.h