summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* 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>
* pthread_frame: simplify the code by using new AVPacket APIAnton Khirnov2014-05-19
| | | | This also handles side data properly.
* avpacket: fix copying side data in av_packet_copy_props()Anton Khirnov2014-05-19
| | | | | | | | Side data count is incremented by by calling av_packet_new_side_data() in the following loop, setting it explicitly results in the resulting value being twice what it should be. CC: libav-stable@libav.org
* hevc/intra_pred: simplify neighboring sample derivationAnton Khirnov2014-05-19
|
* hevc/intra_pred: drop unnecessary conditions in loopsMickaël Raulet2014-05-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc/intra_pred: optimize EXTEND_()*Mickaël Raulet2014-05-19
| | | | | | Process 4 pixels at once. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: templatize intra_predAnton Khirnov2014-05-19
|
* hevc: templatize pred_planarMickaël Raulet2014-05-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: add avcodec_free_context().Anton Khirnov2014-05-18
| | | | | | | | | | | Right now, the caller has to manually manage some allocated AVCodecContext fields, like extradata or subtitle_header. This is fragile and prone to leaks, especially if we want to add more such fields in the future. The only reason for this behaviour is so that the AVStream codec context can be reused for decoding. Such reuse is discouraged anyway, so this commit is the first step to deprecating it.
* 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.
* aarch64: opus NEON iMDCT and FFTJanne Grunau2014-05-15
| | | | | Opus celt decoding 11% faster and the iMDCT over 2.5 times faster on Apple's A7.
* lavc: properly handle subtitle_header in avcodec_copy_context()Anton Khirnov2014-05-15
|
* lavc: preserve the original private data in avcodec_copy_context()Anton Khirnov2014-05-15
| | | | | If a non-NULL codec was passed to avcodec_alloc_context3(), private data will be already allocated in dest.
* lavc: add a native Opus decoder.Anton Khirnov2014-05-15
| | | | | | | | | | | | | Initial implementation by Andrew D'Addesio <modchipv12@gmail.com> during GSoC 2012. Completion by Anton Khirnov <anton@khirnov.net>, sponsored by the Mozilla Corporation. Further contributions by: Christophe Gisquet <christophe.gisquet@gmail.com> Janne Grunau <janne-libav@jannau.net> Luca Barbato <lu_zero@gentoo.org>
* build: handle library dependencies in configureJanne Grunau2014-05-13
| | | | | Instead of setting FFLIBS in each library Makefile configure exports FFLIBS-$library in config.mak.
* aarch64: assembler in clang-3.4 ignores the division by twoJanne Grunau2014-05-13
| | | | Values are positive powers of two, so just replace it with right shift.
* lavc: Add new VDA hwaccelAnton Khirnov2014-05-11
| | | | | | | | | It leverages the new hwaccel 1.2 features: - get_buffer2 is never called - the internal context is automatically initialized/deinitialized Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vda: use hwaccel private data for internal bitstream bufferAnton Khirnov2014-05-11
|
* 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.
* hwaccel: Rename priv_data_size to frame_priv_data_sizeAnton Khirnov2014-05-11
| | | | This describes more accurately what this field is for.
* lavc: document which parts of AVHWAccel are private.Anton Khirnov2014-05-11
|
* 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.
* pcm-dvd: Fix 20bit decodingnu7742014-05-09
| | | | | | | | Increment the pointer as needed. Bug-Id: 592 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libfdk-aac: Relicense the library wrappers to 2-clause BSDMartin Storsjö2014-05-05
| | | | | | | | | This should make it possible for Fraunhofer to contribute to these wrappers - they didn't want to contribute to code under LGPL2.1 with the "or any later version" clause (which allowed using the code under the LGPL3 license). Signed-off-by: Martin Storsjö <martin@martin.st>
* libfdk-aacenc: Enable 7.1 channel encodingJean First2014-05-05
| | | | | | | | | | | | | | | 7.1(wide) and 7.1(wide-side) channel layouts are supported in fdk-aac since the 0.1.3 release. The earlier versions of fdk-aac didn't include any library version defines in the public headers, thus checking for the AACENCODER_LIB_VL0 define is enough to know that we're building against a new enough version of fdk-aac. This change includes contributions by Tim Walker, Michael Niedermayer and Timothy Gu. Signed-off-by: Martin Storsjö <martin@martin.st>
* vp9: Read the frame size as unsignedLuca Barbato2014-05-03
| | | | | | Sample-Id: 00001723-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* aac: K&R formatting cosmeticsLuca Barbato2014-05-01
|
* flv: K&R formatting cosmeticsLuca Barbato2014-05-01
|
* lavc: deprecate AVCodecContext.codec_nameAnton Khirnov2014-05-01
| | | | It is undocumented and has no real use.
* lavc: do not use AVCodecContext.codec_name in avcodec_string()Anton Khirnov2014-05-01
| | | | That field will be deprecated.
* lavc: move CODEC_FLAG_MV0 to mpegvideoAnton Khirnov2014-05-01
|
* lavc: make the xvid-specific "gmc" flag a private option of libxvidAnton Khirnov2014-05-01
|
* lavc: move CODEC_FLAG_NORMALIZE_AQP to mpegvideoAnton Khirnov2014-05-01
|
* lavc: deprecate CODEC_FLAG_INPUT_PRESERVEDAnton Khirnov2014-05-01
| | | | The addition of reference-counted frames makes it pointless.
* h264: drop commented out cruftAnton Khirnov2014-04-29
|
* mpegvideo: remove unused MpegEncContext.b4_strideAnton Khirnov2014-04-29
|
* mpegvideo: move the MpegEncContext fields used from arm asm to the beginningAnton Khirnov2014-04-29
| | | | | This should reduce the frequency with which the offsets need to be updated.
* hwaccel: fix dxva2 & vaapi loop filter parametersMichael Niedermayer2014-04-28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dxva2_h264: add a workaround for old Intel GPUsHendrik Leppkes2014-04-28
| | | | | | | | | | Old Intel GPUs expect the reference frame index to the actual surface, instead of the index into RefFrameList as specified by the spec. This workaround should be set when using one of the "ClearVideo" decoder devices. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dxva2_h264: set the correct ref frame index in the long slice structHendrik Leppkes2014-04-28
| | | | | | | | | | The latest H.264 DXVA specification states that the index in this structure should refer to a valid entry in the RefFrameList of the picture parameter structure, and not to the actual surface index. Fixes H.264 DXVA2 decoding on recent Intel GPUs (tested on Sandy and Ivy) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vc1: Do not return an error when skipping b framesAlessandro Ghedini2014-04-25
| | | | | | | | | This caused mpv (and possibly others) to fallback to software decoding after seeking a VC1 stream. Bug-Id: 667 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavu: add CHK_OFFS as AV_CHECK_OFFSET to check struct member offsetsJanne Grunau2014-04-24
|
* on2avc: change a comment at #endif to match actual defineKostya Shishkov2014-04-23
|
* On2 AVC decoderKostya Shishkov2014-04-23
|
* fic: Make warning message more accurateDerek Buitenhuis2014-04-23
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* fic: Remove redundant clipsDerek Buitenhuis2014-04-23
| | | | | | The equations can't overflow or underflow anyway. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* fic: Simplify alpha blendingDerek Buitenhuis2014-04-22
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* fic: Support rendering cursorsDerek Buitenhuis2014-04-22
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>