Author | SHA1 | Message | Date |
---|---|---|---|
|
e2ad0b66fa |
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> |
10 years ago |
|
e6c4ac7b5f | pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_* | 12 years ago |
|
2c96392277 |
avpicture: Don't assume a valid pix fmt in avpicture_get_size
When called from the v4l2 input device, pix_fmt can be AV_PIX_FMT_NONE (for jpeg formats). Before 50ba57e0, this wasn't an issue for avpicture_get_size, but after that commit, this lead to crashes. Signed-off-by: Martin Storsjö <martin@martin.st> |
12 years ago |
|
d1d9efaae6 |
avcodec: split avpicture from imgconvert
All the non deprecated functions are in avpicture.c now. |
12 years ago |