summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAge
* lavc: deprecate CODEC_FLAG_EMU_EDGE and avcodec_get_edge_width().Anton Khirnov2014-01-20
|
* lavc: allow the caller to override dimensions in ff_get_buffer()Anton Khirnov2014-01-20
| | | | This will be useful for allocating edges in the encoders.
* lavc: do not leak the internal frame if opening the codec failsAnton Khirnov2014-01-06
|
* lavc: add 422/444 YUV with alpha to align_dimensions()Anton Khirnov2014-01-06
| | | | Aligns frame dimensions to 16, which fixes potential invalid writes.
* avframe: add AV_FRAME_DATA_MATRIXENCODING side data type.Tim Walker2014-01-05
| | | | Includes a libavcodec utility function to update a frame's side data.
* lavc: deprecate avcodec_get_frame_defaults().Anton Khirnov2013-12-11
| | | | | Also bump libavcodec micro and add an APIchanges entry saying that av_frame_* should now be used instead of the lavc AVFrame functions.
* lavc: call av_frame_unref() instead of avcodec_get_frame_defaults().Anton Khirnov2013-12-11
| | | | avcodec_get_frame_defaults() will be deprecated.
* lavc: deprecate avcodec_free_frame()Anton Khirnov2013-12-11
| | | | av_frame_free() should be used instead.
* lavc: rework handling of refcounted_frames=0Anton Khirnov2013-12-09
| | | | | | | | | Use only proper AVFrame API (no assigning of whole frames, since that hardcodes sizeof(AVFrame) into lavc). Make a copy of the side data, so the caller can use av_frame_unref/free on non-refcounted frames, eliminating the need for avcodec_get_frame_defaults()/avcodec_free_frame().
* lavc/decode_video(): always unref the frame if there is no output in ↵Anton Khirnov2013-12-09
| | | | | | | | decode_video Not just on failure. This is the same thing that is done in the audio path and should prevent leaks in decoders that allocate a frame, but then end up not writing into it.
* lavc: remove a pointless check in decode_audio4()Anton Khirnov2013-12-09
| | | | av_frame_unref() works fine on unallocated frames.
* lavc: use buf[0] instead of data[0] as the indicator of an allocated frameAnton Khirnov2013-12-09
| | | | data[0] may be NULL for valid frames with hwaccel pixel formats.
* lavc: remove the extended_data workarounds.Anton Khirnov2013-12-09
| | | | All decoders should now handle it properly.
* lavc: deprecate avcodec_alloc_frame().Anton Khirnov2013-11-16
|
* Replace all instances of avcodec_alloc_frame() with av_frame_alloc().Anton Khirnov2013-11-16
|
* Move av_fast_{m,re}alloc from lavc to lavu.Anton Khirnov2013-11-14
|
* hwaccel: Simplify ff_find_hwaccelLuca Barbato2013-11-10
| | | | It is always called by passing fields from an AVCodecContext.
* lavc: move AVCodecContext.pkt to AVCodecInternalAnton Khirnov2013-11-04
| | | | It's a private field, not meant to be accessed from outside lavc.
* pthread: store thread contexts in AVCodecInternal instead of AVCodecContextAnton Khirnov2013-11-04
| | | | | | It's a private field, it should not be visible to callers. Deprecate AVCodecContext.thread_opaque
* lavc/utils: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-31
|
* lavc: replace avcodec_set_dimensions with ff_set_dimensionsAnton Khirnov2013-10-31
| | | | | | avcodec_set_dimensions() is supposed to be an internal utility function, there is no reason whatsoever for it to be public. Therefore deprecate it.
* lavc: add error checking to apply_param_change.Anton Khirnov2013-10-30
|
* pcm: support 24-bit/32-bit little-endian planarPaul B Mahol2013-09-27
| | | | | | Used by LXF. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avcodec/utils: Simplify a condition that combines HAVE_NEON and ARCH_ARMDiego Biurrun2013-08-21
|
* Disable deprecation warnings for cases where a replacement is availableDiego Biurrun2013-08-02
|
* lavc: free the padded last frame during audio encoding properlyAnton Khirnov2013-06-20
|
* utils: fix avcodec_flush_buffers pre-reference counting compatibilityJanne Grunau2013-06-16
| | | | | | | | | | | | The to_free AVframe must be freed just like the other ones. Indeed, the calling application may expect all frames to be released. (This regression caused use-after-free in VLC with hwaccel.) Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: use AVFrame API properly in pad_last_frame().Anton Khirnov2013-06-10
| | | | This also simplifies the code.
* lavc/pthread: remove obsolete checksAnton Khirnov2013-05-17
| | | | | | Those were useful when avcodec_thread_init() was a public functions. It was deprecated and removed some time ago, so those checks are not needed anymore.
* pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-15
|
* lavc: Fix msvc compilation of utils.c with -WX (warnings treated as errors)Matt Wolenetz2013-05-14
| | | | | | This fixes https://bugzilla.libav.org/show_bug.cgi?id=514. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: do not leak frames in avcodec_decode_audio4Luca Barbato2013-05-07
| | | | | | | Notwithstanding the return value the frame should be freed if is not going to be used. Reported-by: Matthew Wolenetz <wolenetz@chromium.org>
* avcodec: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-04
|
* avcodec: Drop unnecessary ff_ name prefixes from static functionsDiego Biurrun2013-04-30
|
* lavc: clear AVBuffers on decoded frames if refcounted_frames is not setAnton Khirnov2013-04-30
| | | | | Otherwise some code might mistakenly think it is allowed to unref those buffers, which would lead to double unref.
* ff_get_buffer(): allocate the frame for max(coded,display) dimensionsAnton Khirnov2013-04-19
| | | | Needed e.g. for h264 cropping to work properly.
* lavc: don't overwrite display dimensions with coded dimensions.Anton Khirnov2013-04-10
|
* dsputil: Make dsputil selectableRonald S. Bultje2013-04-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* utils: add workaround for AVHWAccel in ff_get_buffer compat codeJanne Grunau2013-03-26
| | | | | | | Since c977039e585bfff28ecc037ef827c6c3d1ed88aa plane count for PIX_FMT_HWACCEL pixel formats is 0 instead of 1. The created dummy AVBuffers are still bogus since AVFrame does not hold frame data when AVHWAccels are used.
* lavc: Rename avpriv_mpv_find_start_code after moving out from mpegvideoMartin Storsjö2013-03-26
| | | | | | | Also move the declaration to internal.h, and add restrict qualifiers to the declaration (as in the implementation). Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Move start code finding to utils.cMartin Storsjö2013-03-26
| | | | | | | | | | This allows dropping the mpegvideo dependency from a number of components. This also fixes standalone building of the h264 parser, which was broken in 64e438697. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc, lavfi: fix counting number of planes in AVBufferRef wrappersAnton Khirnov2013-03-19
| | | | | | Number of planes is not always equal to the number of components even for formats marked with PIX_FMT_PLANAR -- e.g. NV12 has three components in two planes.
* lavc,lavfi: fix calculating the plane size in the AVBufferRef wrappersAnton Khirnov2013-03-17
| | | | | It is supposed to be height * linesize, not width * linesize. Thanks to Hendrik Leppkes for pointing out the bug.
* Add av_log_{ask_for_sample|missing_feature} replacements to libavutilDiego Biurrun2013-03-13
| | | | | This allows reporting missing features and requesting samples from all libraries in a standard way; with a simplified API.
* avframe: call release_buffer only if it is setJanne Grunau2013-03-11
| | | | | | AVCodecContext release_buffer() shall be NULL for audio codecs using get_buffer. The backward compatibility code hence have to check before calling it.
* lavc: fix get_buffer() compatibility layer for audio.Anton Khirnov2013-03-10
| | | | | planes - FF_ARRAY_ELEMS would be evaluated as unsigned and underflow instead of being negative as was intended.
* lavc: remove disabled FF_API_OLD_ENCODE_VIDEO cruftAnton Khirnov2013-03-09
|
* lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruftAnton Khirnov2013-03-09
|
* lavc: remove disabled FF_API_OLD_DECODE_AUDIO cruftAnton Khirnov2013-03-09
|
* lavc: update the fallback versions of ff_thread_*Anton Khirnov2013-03-08
| | | | | Fixes build without threads after 759001c534287a96dc96d1e274665feb7059145d.