summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAge
* dump: display codec tags when availableVittorio Giovara2014-10-17
| | | | For both audio and video.
* lavc: deprecate the use of AVCodecContext.time_base for decodingAnton Khirnov2014-10-15
| | | | | | | | | | | When decoding, this field holds the inverse of the framerate that can be written in the headers for some codecs. Using a field called 'time_base' for this is very misleading, as there are no timestamps associated with it. Furthermore, this field is used for a very different purpose during encoding. Add a new field, called 'framerate', to replace the use of time_base for decoding.
* lavc: use a separate field for exporting audio encoder paddingAnton Khirnov2014-10-13
| | | | | | | | | | | | | | Currently, the amount of padding inserted at the beginning by some audio encoders, is exported through AVCodecContext.delay. However - the term 'delay' is heavily overloaded and can have multiple different meanings even in the case of audio encoding. - this field has entirely different meanings, depending on whether the codec context is used for encoding or decoding (and has yet another different meaning for video), preventing generic handling of the codec context. Therefore, add a new field -- AVCodecContext.initial_padding. It could conceivably be used for decoding as well at a later point.
* dump: print the original coded dimensions when availableVittorio Giovara2014-10-08
|
* dump: print detailed color space informationVittorio Giovara2014-10-08
|
* dump: split audio and video probing on multiple linesVittorio Giovara2014-10-08
| | | | Also always report pixel format.
* avcodec: make sure color_range is properly initializedVittorio Giovara2014-10-08
|
* ff_get_format: fix infinite loopRémi Denis-Courmont2014-10-06
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: specify the behavior of av_lockmgr_register on failure.Manfred Georg2014-10-06
| | | | | | | | | | | The register function now specifies that the user callback should leave things in the same state that it found them on failure but that failure to destroy is ignored by the library. The register function is now explicit about its behavior on failure (it unregisters the previous callback and destroys all mutex). Signed-off-by: Manfred Georg <mgeorg@google.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hwaccel: Call ->get_format again if hwaccel init failsRémi Denis-Courmont2014-09-26
| | | | | | | This allows the application to fall back on another hwaccel or, more likely, software decoding. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avcodec: add stream-level stereo3d side dataVittorio Giovara2014-08-28
|
* cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavc: drop the av_fast_{re,m}alloc compatibility wrappersAnton Khirnov2014-08-10
| | | | They were only needed until the bump.
* Remove obsolete FF_API_AVFRAME_COLORSPACE cruft.Anton Khirnov2014-08-09
|
* avcodec: Mark argument in av_{parser|hwaccel|bitstream_filter}_next as constDiego Biurrun2014-07-26
|
* build: Add define for SIMD extensions requiring 16-byte aligned buffersDiego Biurrun2014-07-22
|
* dsputil: Split motion estimation compare bits off into their own contextDiego Biurrun2014-07-17
|
* dsputil: Move draw_edges() to mpegvideoencdspDiego Biurrun2014-07-06
|
* lavc: do not allocate edges in the default get_buffer2()Anton Khirnov2014-06-26
|
* Add av_image_check_sar() and use it to validate SARJustin Ruggles2014-06-20
|
* libavcodec: set AVFrame colorspace fields on decodingwm42014-06-01
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Add transformation matrix API.Vittorio Giovara2014-05-19
| | | | | | | | | | | Add AV_PKT_DATA_DISPLAYMATRIX and AV_FRAME_DATA_DISPLAYMATRIX as stream and frame side data (respectively) to describe a display transformation matrix for linear transformation operations on the decoded video. Add functions to easily extract a rotation angle from a matrix and conversely to setup a matrix for a given rotation angle. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: remove the locking code in avcodec_close()Anton Khirnov2014-05-18
| | | | | This function should not modify any global state, so there should be no reason for any locking.
* lavc: Add hwaccel private data and init/uninit callbacksAnton Khirnov2014-05-11
|
* hwaccel: Support specific frame allocatorsLuca Barbato2014-05-11
| | | | It would reduce the boilerplate code users have to write.
* lavc: set AVCodecContext.hwaccel in ff_get_format()Anton Khirnov2014-05-11
| | | | This way each decoder does not have to do the same thing manually.
* lavc: Add an internal wrapper around get_format()Anton Khirnov2014-05-11
| | | | It will be useful in the following commits.
* lavc: do not use AVCodecContext.codec_name in avcodec_string()Anton Khirnov2014-05-01
| | | | That field will be deprecated.
* utils: add yvyu422 to avcodec_align_dimensions2Vittorio Giovara2014-04-19
|
* mpegvideo: operate with pointers to AVFrames instead of whole structswm42014-04-09
| | | | | | | | | | | | | The most interesting parts are initialization in ff_MPV_common_init() and uninitialization in ff_MPV_common_end(). ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL checks for Picture.f, because these functions can be called on uninitialized or partially initialized Pictures. NULL pointer checks are added to ff_thread_release_buffer() stub function. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libavcodec: when decoding, copy replaygain side data to decoded framesAnton Khirnov2014-03-24
|
* lavc: use AVFrame API properly in ff_reget_buffer()Anton Khirnov2014-02-24
|
* lavc: set AVFrame pkt_pts and reordered_opaque in reget_bufferJohn Stebbins2014-02-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: Suppress deprecation warnings from avcodec_alloc_frame()Diego Biurrun2014-02-04
| | | | The function is itself obsolete and slated for removal.
* lavc: do not force the emu edge flagAnton Khirnov2014-01-21
| | | | | | | The default get_buffer2() implementation (and possibly some user ones) does not allocate edges when this flag is set, which may expose bugs in some decoders. Until the 10 release is out, it is safer to remove this part.
* 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
|