summaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc: support extracting audio service type from side dataAnton Khirnov2015-01-271-0/+7
|
* Add a side data type for audio service type.Anton Khirnov2015-01-271-0/+1
| | | | | Currently, audio service type is a field in AVCodecContext. However, side data is more appropriate for this kind of information.
* lavc: add GBRAP to avcodec_align_dimensions2Paul B Mahol2015-01-141-0/+1
|
* avcodec: add AVCodecContext.sw_pix_fmtRémi Denis-Courmont2014-12-251-4/+11
| | | | | | | | This carries the pixel format that would be used if it were not for hardware acceleration. This is equal to AVCodecContext.pix_fmt if hardware acceleration is not in use. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: Compact the side-data passthroughLuca Barbato2014-11-091-29/+21
|
* hwaccel: Deinitialize hardware acceleration early enoughRémi Denis-Courmont2014-11-041-5/+5
| | | | | | | | | | | The application will destroy the underlying hardware handles when get_format() gets called again. Also this ensures the deinitialization takes place if the get_format callback returns an error. Regression from 1c80c9d7ef809180042257200c7b5f6b81d0b0e2. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dump: display codec tags when availableVittorio Giovara2014-10-171-0/+13
| | | | For both audio and video.
* lavc: deprecate the use of AVCodecContext.time_base for decodingAnton Khirnov2014-10-151-0/+10
| | | | | | | | | | | 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-131-0/+9
| | | | | | | | | | | | | | 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-081-0/+6
|
* dump: print detailed color space informationVittorio Giovara2014-10-081-0/+17
|
* dump: split audio and video probing on multiple linesVittorio Giovara2014-10-081-7/+12
| | | | Also always report pixel format.
* avcodec: make sure color_range is properly initializedVittorio Giovara2014-10-081-0/+5
|
* ff_get_format: fix infinite loopRémi Denis-Courmont2014-10-061-1/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: specify the behavior of av_lockmgr_register on failure.Manfred Georg2014-10-061-12/+24
| | | | | | | | | | | 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-261-31/+67
| | | | | | | 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-281-0/+9
|
* cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-151-2/+2
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-151-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavc: drop the av_fast_{re,m}alloc compatibility wrappersAnton Khirnov2014-08-101-12/+0
| | | | They were only needed until the bump.
* Remove obsolete FF_API_AVFRAME_COLORSPACE cruft.Anton Khirnov2014-08-091-2/+0
|
* avcodec: Mark argument in av_{parser|hwaccel|bitstream_filter}_next as constDiego Biurrun2014-07-261-1/+1
|
* build: Add define for SIMD extensions requiring 16-byte aligned buffersDiego Biurrun2014-07-221-1/+1
|
* dsputil: Split motion estimation compare bits off into their own contextDiego Biurrun2014-07-171-3/+3
|
* dsputil: Move draw_edges() to mpegvideoencdspDiego Biurrun2014-07-061-0/+1
|
* lavc: do not allocate edges in the default get_buffer2()Anton Khirnov2014-06-261-21/+1
|
* Add av_image_check_sar() and use it to validate SARJustin Ruggles2014-06-201-0/+33
|
* libavcodec: set AVFrame colorspace fields on decodingwm42014-06-011-0/+7
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Add transformation matrix API.Vittorio Giovara2014-05-191-0/+9
| | | | | | | | | | | 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-181-18/+0
| | | | | 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-111-4/+30
|
* hwaccel: Support specific frame allocatorsLuca Barbato2014-05-111-0/+7
| | | | It would reduce the boilerplate code users have to write.
* lavc: set AVCodecContext.hwaccel in ff_get_format()Anton Khirnov2014-05-111-15/+33
| | | | This way each decoder does not have to do the same thing manually.
* lavc: Add an internal wrapper around get_format()Anton Khirnov2014-05-111-0/+5
| | | | It will be useful in the following commits.
* lavc: do not use AVCodecContext.codec_name in avcodec_string()Anton Khirnov2014-05-011-2/+0
| | | | That field will be deprecated.
* utils: add yvyu422 to avcodec_align_dimensions2Vittorio Giovara2014-04-191-0/+1
|
* mpegvideo: operate with pointers to AVFrames instead of whole structswm42014-04-091-1/+2
| | | | | | | | | | | | | 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-241-7/+34
|
* lavc: use AVFrame API properly in ff_reget_buffer()Anton Khirnov2014-02-241-7/+9
|
* lavc: set AVFrame pkt_pts and reordered_opaque in reget_bufferJohn Stebbins2014-02-111-1/+4
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: Suppress deprecation warnings from avcodec_alloc_frame()Diego Biurrun2014-02-041-0/+2
| | | | The function is itself obsolete and slated for removal.
* lavc: do not force the emu edge flagAnton Khirnov2014-01-211-5/+0
| | | | | | | 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-201-0/+7
|
* lavc: allow the caller to override dimensions in ff_get_buffer()Anton Khirnov2014-01-201-3/+7
| | | | This will be useful for allocating edges in the encoders.
* lavc: do not leak the internal frame if opening the codec failsAnton Khirnov2014-01-061-1/+3
|
* lavc: add 422/444 YUV with alpha to align_dimensions()Anton Khirnov2014-01-061-0/+4
| | | | Aligns frame dimensions to 16, which fixes potential invalid writes.
* avframe: add AV_FRAME_DATA_MATRIXENCODING side data type.Tim Walker2014-01-051-0/+20
| | | | Includes a libavcodec utility function to update a frame's side data.
* lavc: deprecate avcodec_get_frame_defaults().Anton Khirnov2013-12-111-1/+1
| | | | | 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-111-2/+2
| | | | avcodec_get_frame_defaults() will be deprecated.
* lavc: deprecate avcodec_free_frame()Anton Khirnov2013-12-111-12/+2
| | | | av_frame_free() should be used instead.
OpenPOWER on IntegriCloud