summaryrefslogtreecommitdiff
path: root/libavutil/frame.c
Commit message (Collapse)AuthorAge
* Merge commit '1aa24df74c052a73175c43e57d35b4835e537ec8'Hendrik Leppkes2015-10-03
|\ | | | | | | | | | | | | * commit '1aa24df74c052a73175c43e57d35b4835e537ec8': lavu: Deprecate AVFrame.error[] Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavu: Deprecate AVFrame.error[]Vittorio Giovara2015-09-30
| | | | | | | | | | | | | | | | | | | | | | These field are difficult to interpret, and are provided by a single encoder (mpegvideoenc). In general they do not belong to a structure containing raw data only, so remove them from AVFrame. Mpegvideoenc now uses a private field in Picture for its internal computations. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | lavu/frame: put frame QP elements under a new version guardHendrik Leppkes2015-09-05
| | | | | | | | These fields are still used, removal postponed until a replacement functionality is available.
* | Merge commit '8f12ef9860d0e164e4647fd5d5cebdb3cfb34a79'Hendrik Leppkes2015-09-05
|\| | | | | | | | | | | | | * commit '8f12ef9860d0e164e4647fd5d5cebdb3cfb34a79': lavu: Drop deprecated duplicated AVFrame/AVCodecContext parameters Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
* | disable deprecation warnings in deprecated codeAndreas Cadhalpun2015-08-22
| | | | | | | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | avutil/frame: fix crash with av_frame_unref(NULL)Michael Niedermayer2015-07-13
| | | | | | | | | | | | | | Fixes: af94b3a3d26586c08f557cafe8246251_signal_sigsegv_7ffff713351a_343_XFMode.ASF with 2097152 alloc limit Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil: make AVFrameSideData buffers ref-counted.Ronald S. Bultje2015-03-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/frame: move av_frame_copy_props() up in the file.Ronald S. Bultje2015-03-25
| | | | | | | | | | | | Preparation for following patch. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '5d839778b9f3edb682b7f71dde4f80f07c75b098'Michael Niedermayer2014-12-19
|\| | | | | | | | | | | | | | | | | | | | | * commit '5d839778b9f3edb682b7f71dde4f80f07c75b098': lavu: Refactor side data wiping Conflicts: libavutil/frame.c See: a400edbb6d00c0211de38e4f1b4f593681db91d8 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: Refactor side data wipingLuca Barbato2014-12-18
| | | | | | | | | | | | | | | | And make sure the nb_side_data field is reset as well. Based on an initial patch from wm4 <nfxjfg@googlemail.com>. CC: libav-stable@libav.org
| * frame: Remove some FF_API_AVFRAME_COLORSPACE leftoversDiego Biurrun2014-08-14
| |
* | lavu/frame: fix malloc error path in av_frame_copy_props()wm42014-12-15
| | | | | | | | | | | | | | The error path frees all side data, but forgets to reset the side data count. This can blow up later in av_frame_unref() and free_side_data(). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add missing "const" all over the place.Reimar Döffinger2014-08-29
| | | | | | | | | | | | Only "./configure --enable-gpl" on x86 was tested. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | avcodec: export motion vectors in frame side data on demandClément Bœsch2014-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reasoning behind this addition is that various third party applications are interested in getting some motion information out of a video "for free" when it is available. It was considered to export other information as well (such as the intra information about the block, or the quantization) but the structure might have ended up into a half full-generic, half full of codec specific cruft. If more information is necessary, it should either be added in the "flags" field of the AVMotionVector structure, or in another side-data. This commit also includes an example exporting them in a CSV stream.
* | Remove panscan information in av_frame_copy_props() if resolution changes.Carl Eugen Hoyos2014-08-10
| | | | | | | | Fixes ticket #3750.
* | Merge commit '472f9ed312ec784f7c72876b77163f4741880d05'Michael Niedermayer2014-08-10
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '472f9ed312ec784f7c72876b77163f4741880d05': Remove obsolete FF_API_AVFRAME_COLORSPACE cruft. Conflicts: libavcodec/utils.c libavutil/frame.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove obsolete FF_API_AVFRAME_COLORSPACE cruft.Anton Khirnov2014-08-09
| |
* | avutil/frame: add av_frame_side_data_name()Michael Niedermayer2014-07-30
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '44671b57866aab8dd36715ff010e985e25baaf19'Michael Niedermayer2014-06-18
|\| | | | | | | | | | | | | * commit '44671b57866aab8dd36715ff010e985e25baaf19': AVFrame: factor out freeing the side data Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVFrame: factor out freeing the side dataRoman Savchenko2014-06-18
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '8c02adc62d71dfbb079a04753d8c16152c49de88'Michael Niedermayer2014-06-01
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8c02adc62d71dfbb079a04753d8c16152c49de88': lavu: add all color-related enums to AVFrame Conflicts: libavcodec/avcodec.h libavutil/frame.c libavutil/frame.h libavutil/version.h The version check is changed so they are available with the current ABI FFmpeg libs should have no problems with added fields, nor should any application using the libs, and we regularly added fields in the past. We also moved 2 of these fields to AVFrame already previously without issues. See: a80e622924c89df69fb1c225ba432fe12fe6648e Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: add all color-related enums to AVFramewm42014-06-01
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avutil/frame: frame_copy_video: support copying from a smaller to a larger frameMichael Niedermayer2014-05-31
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'a53551cba86bb67efcb6105fdc337a36c43132bd'Michael Niedermayer2014-05-29
|\| | | | | | | | | | | | | * commit 'a53551cba86bb67efcb6105fdc337a36c43132bd': frame: fix the error path in av_frame_copy_props() Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * frame: fix the error path in av_frame_copy_props()Roman Savchenko2014-05-29
| | | | | | | | | | | | First free metadata, then the side data it is contained in. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avutil/frame: use av_malloc(z)_array()Michael Niedermayer2014-04-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'd161ae0a37900cbd36c1390ca32a56b892c02ab5'Michael Niedermayer2014-03-24
|\| | | | | | | | | | | | | | | | | | | * commit 'd161ae0a37900cbd36c1390ca32a56b892c02ab5': frame: add a function for removing side data from a frame Conflicts: libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * frame: add a function for removing side data from a frameAnton Khirnov2014-03-24
| |
* | avutil/frame_copy_audio: also check that channels matchMichael Niedermayer2014-02-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '1155fd02ae7bac215acab316e847c6bb25f74fc3'Michael Niedermayer2014-02-24
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '1155fd02ae7bac215acab316e847c6bb25f74fc3': frame: add a convenience function for copying AVFrame data Conflicts: doc/APIchanges libavutil/frame.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * frame: add a convenience function for copying AVFrame dataAnton Khirnov2014-02-24
| |
* | avutil/frame: increase padding for framesMichael Niedermayer2013-12-28
| | | | | | | | | | | | This matches what avcodec uses Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'df7aba52b51007db50410abe15fe28391abd8757'Michael Niedermayer2013-12-09
|\| | | | | | | | | | | | | | | | | | | * commit 'df7aba52b51007db50410abe15fe28391abd8757': frame: cosmetics, reindent Conflicts: libavutil/frame.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * frame: cosmetics, reindentAnton Khirnov2013-12-09
| |
* | Merge commit 'c342132fa8a29692e28c98238e3a31da5c407e42'Michael Niedermayer2013-12-09
|\| | | | | | | | | | | | | | | | | | | * commit 'c342132fa8a29692e28c98238e3a31da5c407e42': frame: copy flags in av_frame_copy_props() Conflicts: libavutil/frame.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * frame: copy flags in av_frame_copy_props()Anton Khirnov2013-12-09
| | | | | | | | Flags can be considered metadata (at least those that are defined now).
* | get_audio_buffer: fix usage where channels are not set but layout isMichael Niedermayer2013-11-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '529a9893d769f381b72785c500662be2020da5fe'Michael Niedermayer2013-10-28
|\| | | | | | | | | | | | | * commit '529a9893d769f381b72785c500662be2020da5fe': avframe: mark source frame const in _ref and _clone Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avframe: mark source frame const in _ref and _cloneVittorio Giovara2013-10-27
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avutil/frame: suppress "comparison of unsigned expression < 0 is always ↵Michael Niedermayer2013-09-19
| | | | | | | | | | | | false" warning Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: add av_get_colorspace_name()Michael Niedermayer2013-09-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Integrate accessors.h header into internal.hReimar Döffinger2013-08-10
| | | | | | | | | | | | | | I have no idea why I added a separate header, I think there is no good reason for it. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Reduce MAKE_ACCESSORS code duplication via a new header.Reimar Döffinger2013-08-08
| | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | av_frame_copy_props: fix unintended self assignmentMichael Niedermayer2013-08-07
| | | | | | | | | | | | Fixes CID1061052 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-08-01
|\| | | | | | | | | | | | | * qatar/master: avframe: have av_frame_get_side_data take const AVFrame* Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avframe: have av_frame_get_side_data take const AVFrame*Vittorio Giovara2013-08-01
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avcodec/avutil: Add AVColorSpace and AVColorRange to AVFramesMichael Niedermayer2013-07-17
| | | | | | | | | | | | This also moves AVColorSpace and AVColorRange from avcodec to avutil Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_frame_get_buffer: Do not fail when the channel layout is unknownMichael Niedermayer2013-07-13
| | | | | | | | | | | | Fixes handling of cases with unknown layouts but known channel counts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/frame: Try to align width to achive linesize[0] alignmentMichael Niedermayer2013-06-18
| | | | | | | | | | | | | | | | | | This results in more alignment for pixel formats that have "odd" pixel sizes like RGB24. It makes access through SIMD easier Works around Issue described in Ticket1031 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/frame: continue to process bufs even if some are emptyXidorn Quan2013-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>