summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avcodec/hevc_mp4toannexb_bsf: Remove ;;Michael Niedermayer2015-08-02
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* aacenc: add description to the 'aac_coder' optionRostislav Pehlivanov2015-08-01
| | | | | | | | | | | This commit adds a short description to the aac_coder option of the AAC encoder in order to be consistent with the other options. Generally, right now, the 'FAAC' method works fine with speech and low broadband spectrum audio. 'Fast' is just as the name suggests. 'ANMR' still needs work and 'Twoloop', the default, works well with every type of audio. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* Revert "libavcodec/utils: av_get_exact_bits_per_sample fixed to return "1" ↵Michael Niedermayer2015-08-01
| | | | | | | for DSD codecs." Requested-by: Ganesh Ajjanagadde <gajjanag@mit.edu> (original patch reviewer) This reverts commit 293e25be615d43c9b611c4b04920ec0d245a7145.
* aacenc: remove redundant argument from coder functionsRostislav Pehlivanov2015-08-01
| | | | | | | | | | | This commit removes a redundant argument from the functions in aaccoder. The argument lambda was redundant as it was just a copy of s->lambda, to which all functions have access to anyway. This cleans up the function pointers a bit which is helpful as there are a lot of other search_for_* functions under development and with them populated it gets messy. Reviewed-by: Claudio Freire <klaussfreire@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/libx264: expose nv21 input supportYu Xiaolei2015-08-01
| | | | | | libx264 added support for NV21 input recently. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/utils: av_get_exact_bits_per_sample fixed to return "1" for DSD ↵Ihar A. Tumashyk2015-08-01
| | | | | | | | | | | codecs. All DSD codes have 1 bit per sample. https://en.wikipedia.org/wiki/Direct_Stream_Digital Signed-off-by: Ihar A. Tumashyk <itumashyk@gmail.com> Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* mips/hevcdsp: fix string concatenation on macrosJames Almer2015-07-30
| | | | | | | | | Needed for old compilers like GCC 4.2 Tested by trac user brad. Fixes ticket #4745 Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* x86/aacpsdsp: add SSE and SSE3 optimized functionsJames Almer2015-07-30
| | | | | | | Between 1.5 and 2.5 times faster Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/r210enc: Drop coded_frame usageMichael Niedermayer2015-07-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/avuienc: Drop coded_frame usageMichael Niedermayer2015-07-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/y41penc: Drop coded_frame usageMichael Niedermayer2015-07-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/yuv4enc: drop coded_frame usageMichael Niedermayer2015-07-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/v308enc: Remove coded_frame usageMichael Niedermayer2015-07-30
| | | | | | coded_frame is deprecated Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/v408enc: remove coded_frame usageMichael Niedermayer2015-07-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpegvideo_enc: Ignore QMAX if VBV constraints are exceededMichael Niedermayer2015-07-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpeg12enc: extend QP range to 28 for non linear quantizersMichael Niedermayer2015-07-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libvpxenc: report pict_type/error via side-dataJames Zern2015-07-29
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Zern <jzern@google.com>
* libvpxenc: quiet coded_frame deprecation warningsJames Zern2015-07-29
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Zern <jzern@google.com>
* avcodec/dvbsubdec: Implement display definition segment fallback from ETSI ↵Michael Niedermayer2015-07-29
| | | | | | | | | EN 300 743 V1.3.1 Fixes: subtitles.ts Fixes: Ticket679 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aacdec_fixed: Fix preparation for resamplerNedeljko Babic2015-07-29
| | | | | | | | | | | | 2nd channel makes sense only for CPE type. Skip 2nd channel in preparation for resampler (in spectral_to _sample()) depending on block type. Fixes fate failure with clang ftrapv. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_refs: Allow slightly larger pps_ref_count[0] in PAFF RAP ↵Michael Niedermayer2015-07-29
| | | | | | | | detection heuristic Fixes Ticket4738 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_refs: extend RAP heuristic to multiple PPSMichael Niedermayer2015-07-29
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/utils: Set coded_frame.pict_type in generic codeMichael Niedermayer2015-07-29
| | | | | | | This makes it possible to remove more coded_frame usage without breaking the publically visible coded_frame Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/proresenc_anatoliy: remove coded_frame useMichael Niedermayer2015-07-29
| | | | | | coded_frame.key_frame should be set by the core already Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/avcodec: define CODEC_FLAG based on AV_CODEC_FLAG instead of ↵Michael Niedermayer2015-07-28
| | | | | | duplicating the numbers and comments Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit 'd75b55635a02444c2f188c26e431a1cec992babe'Michael Niedermayer2015-07-28
|\ | | | | | | | | | | | | * commit 'd75b55635a02444c2f188c26e431a1cec992babe': dxva2/d3d11va: Set _WIN32_WINNT to 0x0602 instead of 0x0600 Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * dxva2/d3d11va: Set _WIN32_WINNT to 0x0602 instead of 0x0600Martin Storsjö2015-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If _WIN32_WINNT is unset, we force it to a new enough value to make sure the necessary definitions are visible. When targeting Windows Phone or Windows RT, _WIN32_WINNT should be at least 0x0602 - otherwise the windows headers themselves can cause errors (which technically are bugs in the headers). Raising this value here shouldn't hurt; the alternative would be to not touch it at all if WINAPI_FAMILY is set to phone/app, or to force setting it to 0x0602 in configure if unset (for phone/app). Signed-off-by: Martin Storsjö <martin@martin.st>
| * h264: fix AVDISCARD_NONKEY for some interlaced contentJohn Högberg2015-07-27
| | | | | | | | | | | | | | | | | | When skip_frame is set to _NONKEY the decoder skips everything except intra slices, which breaks frames that consist of an intra field together with any other field type; half the frame becomes garbage. This patch fixes the issue by letting non-intra slices through if they're part of a keyframe. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * qsvdec_mpeg2: drop an incorrect commentAnton Khirnov2015-07-27
| | | | | | | | It got copypasted from the h264 decoder, but it does not apply to mpeg2.
| * hap: Add utility functions fileVittorio Giovara2015-07-27
| | | | | | | | Missing from the push of 3ee217853a6741b829a2683f49c590618891b1ab.
* | libavcodec/qsvdec.c delay in 1 microsecond replaced to more appropriate 500 ↵Ivan Uskov2015-07-28
| | | | | | | | | | | | microseconds Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavcodec/qsvenc.c delay in 1 microsecond replaced to more appropriate 500 ↵Ivan Uskov2015-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | microseconds This commit replaces the 1 microsecond delay by 500 microsecond for the case when the MFX library does return MFX_WRN_DEVICE_BUSY status. In general this warning never appears for simple encoding or transcoding session because the GPU is so fast so it almost always is not busy and any delay value just does not executes. But for heavy transcoding tasks for example, when several QSV sessions are running simultaneously then using a 1-microsecond delay may result in 1000 iterations per each frame. So here possible a paradoxical case when GPU loading also loads CPU by dummy tasks. Official MFX/QSV samples by Intel are using 1 millisecond (i.e. 1000 microseconds) everywhere where MFX_WRN_DEVICE_BUSY does appear. So 500us is a much more optimal value than 1us. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/aac_fixed: Fix a bug in spectral_to_sample()Nedeljko Babic2015-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There was fixed number of loops (2048) in preparation for resampler, so when number of samples is smaller than this, there would be an overflow on ret_buf. For some reason this behavior popped out only under valgrind with --disable-memory-poisoning option. This is now fixed and number of loops depends on actual number of samples. Signed-off-by: Nedeljko Babic <nedeljko.babic@rt-rk.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavcodec/hevc_mp4toannexb_bsf.c: Optional argument "private_spspps_buf" to ↵Ivan Uskov2015-07-28
| | | | | | | | | | | | avoid extradata modification. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/libdcadec: exss is used only under ifdef, thus mark it as ↵Michael Niedermayer2015-07-28
| | | | | | | | | | | | | | | | potentially unused avoids a compiler warning Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/h264_slice: Also check sei_recovery_frame_cnt for skip_frame nokeyMichael Niedermayer2015-07-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/h264_slice: do not skip 2nd field if first was not skippedMichael Niedermayer2015-07-28
| | | | | | | | | | Found-by: John Högberg <john.hogberg@ericsson.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/snowenc: Export quality/pict_type/PSNR stats through side dataMichael Niedermayer2015-07-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mpegvideo_enc: export per frame PSNR through side dataMichael Niedermayer2015-07-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avocdec/mpeg12dec: fix mpeg_xvmc hwaccel flagJames Almer2015-07-27
| | | | | | | | | | | | The flag is deprecated and as such didn't get a new AV_ prefixed version Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mpegvideo_enc: move ff_side_data_set_encoder_stats() call to after ↵Michael Niedermayer2015-07-28
| | | | | | | | | | | | | | | | the vbv retry code This ensures the data matches the final values Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '3ee217853a6741b829a2683f49c590618891b1ab'Michael Niedermayer2015-07-27
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '3ee217853a6741b829a2683f49c590618891b1ab': Support the Hap chunked frame format Conflicts: libavcodec/hap.h libavcodec/hapdec.c libavcodec/version.h See: c7e6443441ed5c1b5f64067dfbf4956bc2c6acbb Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * Support the Hap chunked frame formatTom Butterworth2015-07-27
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '43dd004747fa697396b47d034a80e069facbea09'Michael Niedermayer2015-07-27
|\| | | | | | | | | | | | | | | | | | | | | * commit '43dd004747fa697396b47d034a80e069facbea09': hap: Move some per-stream setup into decoder init rather than per-frame Conflicts: libavcodec/hapdec.c See: 6074956fa1d2617ac602e49931b06df0a751370e Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * hap: Move some per-stream setup into decoder init rather than per-frameTom Butterworth2015-07-27
| | | | | | | | | | | | | | This change will reject frames with a texture type which does not match the stream description. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'b94ec30428b9696f99b08055735689623fe63954'Michael Niedermayer2015-07-27
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'b94ec30428b9696f99b08055735689623fe63954': lavc: Update version and APIchanges Conflicts: doc/APIchanges libavcodec/avcodec.h libavcodec/version.h Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * lavc: Update version and APIchangesVittorio Giovara2015-07-27
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba'Michael Niedermayer2015-07-27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '059a934806d61f7af9ab3fd9f74994b838ea5eba': lavc: Consistently prefix input buffer defines Conflicts: doc/examples/decoding_encoding.c libavcodec/4xm.c libavcodec/aac_adtstoasc_bsf.c libavcodec/aacdec.c libavcodec/aacenc.c libavcodec/ac3dec.h libavcodec/asvenc.c libavcodec/avcodec.h libavcodec/avpacket.c libavcodec/dvdec.c libavcodec/ffv1enc.c libavcodec/g2meet.c libavcodec/gif.c libavcodec/h264.c libavcodec/h264_mp4toannexb_bsf.c libavcodec/huffyuvdec.c libavcodec/huffyuvenc.c libavcodec/jpeglsenc.c libavcodec/libxvid.c libavcodec/mdec.c libavcodec/motionpixels.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo.c libavcodec/noise_bsf.c libavcodec/nuv.c libavcodec/nvenc.c libavcodec/options.c libavcodec/parser.c libavcodec/pngenc.c libavcodec/proresenc_kostya.c libavcodec/qsvdec.c libavcodec/svq1enc.c libavcodec/tiffenc.c libavcodec/truemotion2.c libavcodec/utils.c libavcodec/utvideoenc.c libavcodec/vc1dec.c libavcodec/wmalosslessdec.c libavformat/adxdec.c libavformat/aiffdec.c libavformat/apc.c libavformat/apetag.c libavformat/avidec.c libavformat/bink.c libavformat/cafdec.c libavformat/flvdec.c libavformat/id3v2.c libavformat/isom.c libavformat/matroskadec.c libavformat/mov.c libavformat/mpc.c libavformat/mpc8.c libavformat/mpegts.c libavformat/mvi.c libavformat/mxfdec.c libavformat/mxg.c libavformat/nutdec.c libavformat/oggdec.c libavformat/oggparsecelt.c libavformat/oggparseflac.c libavformat/oggparseopus.c libavformat/oggparsespeex.c libavformat/omadec.c libavformat/rawdec.c libavformat/riffdec.c libavformat/rl2.c libavformat/rmdec.c libavformat/rtpdec_latm.c libavformat/rtpdec_mpeg4.c libavformat/rtpdec_qdm2.c libavformat/rtpdec_svq3.c libavformat/sierravmd.c libavformat/smacker.c libavformat/smush.c libavformat/spdifenc.c libavformat/takdec.c libavformat/tta.c libavformat/utils.c libavformat/vqf.c libavformat/westwood_vqa.c libavformat/xmv.c libavformat/xwma.c libavformat/yop.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'def97856de6021965db86c25a732d78689bd6bb0'Michael Niedermayer2015-07-27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'def97856de6021965db86c25a732d78689bd6bb0': lavc: AV-prefix all codec capabilities Conflicts: cmdutils.c ffmpeg.c ffplay.c libavcodec/8svx.c libavcodec/aacenc.c libavcodec/ac3dec.c libavcodec/adpcm.c libavcodec/alac.c libavcodec/atrac3plusdec.c libavcodec/bink.c libavcodec/dnxhddec.c libavcodec/dvdec.c libavcodec/dvenc.c libavcodec/ffv1dec.c libavcodec/ffv1enc.c libavcodec/fic.c libavcodec/flacdec.c libavcodec/flacenc.c libavcodec/flvdec.c libavcodec/fraps.c libavcodec/frwu.c libavcodec/gifdec.c libavcodec/h261dec.c libavcodec/hevc.c libavcodec/iff.c libavcodec/imc.c libavcodec/libopenjpegdec.c libavcodec/libvo-aacenc.c libavcodec/libvorbisenc.c libavcodec/libvpxdec.c libavcodec/libvpxenc.c libavcodec/libx264.c libavcodec/mjpegbdec.c libavcodec/mjpegdec.c libavcodec/mpegaudiodec_float.c libavcodec/msmpeg4dec.c libavcodec/mxpegdec.c libavcodec/nvenc_h264.c libavcodec/nvenc_hevc.c libavcodec/pngdec.c libavcodec/qpeg.c libavcodec/ra288.c libavcodec/rv10.c libavcodec/s302m.c libavcodec/sp5xdec.c libavcodec/takdec.c libavcodec/tiff.c libavcodec/tta.c libavcodec/utils.c libavcodec/v210dec.c libavcodec/vp6.c libavcodec/vp9.c libavcodec/wavpack.c libavcodec/yop.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>