summaryrefslogtreecommitdiff
path: root/libavcodec/avpicture.c
Commit message (Collapse)AuthorAge
* Merge commit 'f7edcac040f73635fc1127489c9bb29ca8b43532'Hendrik Leppkes2015-12-08
|\ | | | | | | | | | | | | * commit 'f7edcac040f73635fc1127489c9bb29ca8b43532': avpicture: Suppress warning from deprecated code Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * avpicture: Suppress warning from deprecated codeLuca Barbato2015-12-05
| |
* | Merge commit 'dca23ffbc7568c9af5c5fbaa86e6a0761ecae50c'Hendrik Leppkes2015-10-27
|\| | | | | | | | | | | | | | | | | | | * commit 'dca23ffbc7568c9af5c5fbaa86e6a0761ecae50c': lavc: Deprecate AVPicture structure and related functions Deprecation flag on AVPicture struct replaced by a comment, as it causes excess deprecation warnings for every include of avcodec.h Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavc: Deprecate AVPicture structure and related functionsVittorio Giovara2015-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This structure served as a bridge between data pointers and frames, but it suffers from several limitations: - it is not refcounted and data must be copied to every time - it cannot be expanded without ABI break due to being used on the stack - its functions are just wrappers to imgutils which add a layer of unneeded indirection, and maintenance burden - it allows hacks like embedding uncompressed data in packets - its use is often confusing to our users AVFrame provides a much better API, and, if a full blown frame is not needed, it is just as simple and more straightfoward to use data and linesize arrays directly. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * imgutils: create misc functions for dealing with buffersStefano Sabatini2015-01-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-15
| |
| * avpicture: Don't assume a valid pix fmt in avpicture_get_sizeMartin Storsjö2012-12-07
| | | | | | | | | | | | | | | | | | 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>
* | avcodec/avpicture: use av_freep(), do not leave stale pointers in memoryMichael Niedermayer2014-10-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'd1d9efaae6c7e8466b06c30ca21c6b569dd2e480'Michael Niedermayer2012-11-21
|/ | | | | | | | | | | * commit 'd1d9efaae6c7e8466b06c30ca21c6b569dd2e480': avcodec: split avpicture from imgconvert pixdesc: add PIX_FMT_ALPHA flag Conflicts: libavcodec/imgconvert.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec: split avpicture from imgconvertLuca Barbato2012-11-20
All the non deprecated functions are in avpicture.c now.