summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* lavc: Switch bitrate to 64bit unless compatibility with avconv was requested.Michael Niedermayer2015-09-15
|
* vp9: switch min_tile_cols location so it shifts up instead of down.Ronald S. Bultje2015-09-15
| | | | | | This fixes cases where the shifted number is 64, but we shifted non- zero numbers away in the shift. The change makes behaviour consistent with libvpx.
* avcodec/dxv: remove code that is never reachedPaul B Mahol2015-09-15
| | | | | | The function is automatically called. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavc: Fix standalone compilation of the avi demuxer.Carl Eugen Hoyos2015-09-14
|
* wmalossless: Warn when decoding 24 bit depthVittorio Giovara2015-09-14
| | | | See ticket #4134
* aaccoder_mips: Fix indentationTimothy Gu2015-09-14
|
* avcodec/mips/aaccoder_mips: Sync with generic aaccoder file.Nedeljko Babic2015-09-14
| | | | | | | | | | | | | | Code in aaccoder_mips.c was not synced with changes in aaccoder.c for some time. That was cause for some fate-aac tests failing. This patch fixes the problems. Optimizations disabled in 933309a are enabled again. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/nvenc: merge compute initialQP sectionsAgatha Hu2015-09-14
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avcodec/nvenc: Optimize nvenc parametersAgatha Hu2015-09-14
| | | | | | | Add 3 more presets: fast, medium, slow. Improve min/max QP calculation. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* ADPCM: Bump THP channel limit to 14Rodger Combs2015-09-12
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/roqvideoenc: use AV_OPT_TYPE_BOOL for quake3_compat optionClément Bœsch2015-09-12
|
* avcodec/pgssubdec: use AV_OPT_TYPE_BOOL for forced_subs_only optionClément Bœsch2015-09-12
|
* avcodec/textdec: use AV_OPT_TYPE_BOOL for keep_ass_markup optionClément Bœsch2015-09-12
|
* avcodec/libx264: use AV_OPT_TYPE_BOOL for fastfirstpass optionClément Bœsch2015-09-12
|
* avcodec/h264: use AV_OPT_TYPE_BOOL for is_avc optionClément Bœsch2015-09-12
|
* avcodec: use AV_OPT_TYPE_BOOL for refcounted_frames, side_data_only_packets ↵Clément Bœsch2015-09-12
| | | | and skip_alpha options
* Merge commit 'f00f6d538dcbaa122eb5e2784f41f4a299296b7b'Hendrik Leppkes2015-09-12
|\ | | | | | | | | | | | | * commit 'f00f6d538dcbaa122eb5e2784f41f4a299296b7b': lavc: Sanitize header inclusion guards Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavc: Sanitize header inclusion guardsVittorio Giovara2015-09-12
| | | | | | | | | | | | Fix typos, add missing comments, and remove stray lines. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '6064f697a321174232a3fad351afb21150c3e9e5'Hendrik Leppkes2015-09-12
|\| | | | | | | | | | | | | * commit '6064f697a321174232a3fad351afb21150c3e9e5': lavc: Enable side data only packets by default Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavc: Enable side data only packets by defaultVittorio Giovara2015-09-12
| | | | | | | | | | | | | | | | | | Deprecate the now unused option, but temporarily retain the capability to disable the now default behaviour. Mention this change in the AVPacket documentation. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | aacenc_tns: readjust values for new TNS decision makingRostislav Pehlivanov2015-09-12
| | | | | | | | | | | | | | | | | | Since TNS was fixed with the recent commits retweak the values so it's more frequently used. Still not enabled by default yet, though it's possible that it will be made enabled by default in the near future. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | aacenc_tns: encode coefficients directly and reenable compressionRostislav Pehlivanov2015-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit was made possible with the earlier commits since the new quantization method basically means we're working always with unsigned values. The specifications mention to use compression when the first 2 bits are identical but they didn't mention if this should happen before or after the conversion to signed values. Actually they said nothing about conversion to signed values. With this commit, coefficient compression usually always happens which saves a lot of space, especially at extremely low bitrates and doesn't change the quality at all. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | aacenc_tns: redo coefficient quantization and decision makingRostislav Pehlivanov2015-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This finally (and again) gets rid of basically everything the specifications say about how TNS should be done. The main problem used to be that a single filter was used for all coefficients which despite being explicitly recommended by the specifications usually sounds wrong, therefore it's a corner case in the current TNS implementation. This commit also changes the coefficient bit size, as apparently it's better to use lower precision in case the windows are eight short. This is apparently what fdk_aac uses, looking at the bit stream and makes sense. Also the order when 8 SHORT windows happen is important as 7 was too much and according to PSNR was worse while 5 is just about correct. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | Merge commit '99404597201911de90cff2ef85f2d44176d39147'Hendrik Leppkes2015-09-12
|\| | | | | | | | | | | | | * commit '99404597201911de90cff2ef85f2d44176d39147': mmaldec: fix pkt_dts determination Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * mmaldec: fix pkt_dts determinationwm42015-09-12
| | | | | | | | | | | | | | | | | | | | | | | | This also drops setting the frame->pts field. This is usually not set by decoders, so this would be an inconsistency that's at worst a danger to the API user. It appears the buffer->dts field is normally not set by the MMAL decoder, so don't use it. If it's ever going to be set by MMAL, we don't know whether the value will be what we want. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '87a051f97633010f71dfc1d23d806856499bf231'Hendrik Leppkes2015-09-12
|\| | | | | | | | | | | | | * commit '87a051f97633010f71dfc1d23d806856499bf231': lavc: allow asynchronous decoders to return correct pkt_dts values Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavc: allow asynchronous decoders to return correct pkt_dts valueswm42015-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The generic code in utils.c sets the AVFrame.pkt_dts field from the packet it was supposedly decoded. This does not have to be true for a fully asynchronous decoder like mmaldec. It could be overwritten with an incorrect value. Even if the decoder doesn't determine the DTS (but sets it to AV_NOPTS_VALUE), it's impossible to determine a correct value in utils.c. Decoders can now be marked with FF_CODEC_CAP_SETS_PKT_DTS, in which case utils.c won't overwrite the field. The decoders are expected to set this field (even if they only set it to AV_NOPTS_VALUE). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'b7ab6e18eecad43593ad2a0e9fc9eba7f24751cb'Hendrik Leppkes2015-09-12
|\| | | | | | | | | | | | | * commit 'b7ab6e18eecad43593ad2a0e9fc9eba7f24751cb': mmaldec: disable timestamp interpolation Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * mmaldec: disable timestamp interpolationwm42015-09-12
| | | | | | | | | | | | | | | | | | This MMAL feature fills in missing timestamps from the framerate set on the input port. This is generally unwanted, since libavcodec decoders merely pass through timestamps without ever "fixing" them. The framerate is also unknown, and even the timebase doesn't have to be set. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * mmaldec: fix problems with flush logicwm42015-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't try to do a blocking wait for MMAL output if we haven't even sent a single real packet, but only flush packets. Obviously we can't expect to get anything back. Additionally, don't send a flush packet to MMAL in the same case. It appears the MMAL decoder will sometimes hang in mmal_vc_port_disable() (called from ffmmal_close_decoder()), waiting for a reply from the GPU which never arrives. Either MMAL disallows sending flush packets without preceding real data, or it's a MMAL bug. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * mmaldec: hack against buffering problems on broken inputwm42015-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I can't come up with a nice way to handle this. It's hard to keep the lock-stepped input/output in this case. You can't predict whether the MMAL decoder will output a picture (because it's asynchronous), so you have to assume in general that any packet could produce 0 or 1 frames. You can't continue to write input packets to the decoder, because then you might get too many output frames, which you can't get rid of because the lavc decoding API does not allow the decoder to return an output frame without consuming an input frame (except when flushing). The ideal fix is a M:N decoding API (preferably asynchronous), which would make this code potentially much cleaner. For now, this hack will do. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '5788623d29c3e806a7879210986110aced758dc2'Hendrik Leppkes2015-09-12
|\| | | | | | | | | | | | | * commit '5788623d29c3e806a7879210986110aced758dc2': jpeg2000: Split codeblock decoding from the main tile decoding Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * jpeg2000: Split codeblock decoding from the main tile decodingLuca Barbato2015-09-11
| | | | | | | | That loop is completely stand-alone.
* | Merge commit 'db53a2306f62f05faa67e6f3c60ee55a9b8e4776'Hendrik Leppkes2015-09-12
|\| | | | | | | | | | | | | * commit 'db53a2306f62f05faa67e6f3c60ee55a9b8e4776': jpeg2000: Do not warn about known and skippable markers Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * jpeg2000: Do not warn about known and skippable markersLuca Barbato2015-09-11
| | | | | | | | Matches the openjpeg behaviour.
| * mmvideo: Make sure the rle does not write over the frame boundariesLuca Barbato2015-09-11
| | | | | | | | | | Bug-Id: 887 CC: libav-stable@libav.org
* | vp9: Fix emu[] edge overflow conditions for >8bpp/non-420.Ronald S. Bultje2015-09-12
| |
* | vp9: re-initialize internal buffers on bpp change also.Ronald S. Bultje2015-09-12
| |
* | x86: port PSIGNW to cpuflagsJames Almer2015-09-11
| | | | | | | | | | Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | vp9: save one (PSIGNW) instruction in iadst16_1d sse2/ssse3.Ronald S. Bultje2015-09-11
| |
* | libvpxdec: apply RGB to 444P16 instead of 422P16.Ronald S. Bultje2015-09-11
| |
* | aaccoder: respect cutoff when marking bands as PNSRostislav Pehlivanov2015-09-11
| | | | | | | | | | | | | | | | | | Makes more sense as users usually set the -cutoff option to low pass filter the signal. The encoder will still over shoot slightly when encoding normal coefficients however that's normal. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | avcodec/ljpegenc: Fix encoding RGBA LJPEGMichael Niedermayer2015-09-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mjpegdec: Fix decoding RGBA RCT LJPEGMichael Niedermayer2015-09-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc: Fix standalone compilation of the subrip decoder.Carl Eugen Hoyos2015-09-11
| |
* | avcodec/nvenc: change flag of cuCtxCreate to avoid CPU spinsAgatha Hu2015-09-11
| | | | | | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | avcodec/exr: Mark up the decoded buffer as the appropriate transfer ↵Kevin Wheatley2015-09-10
| | | | | | | | characteristic when applying one
* | avcodec/exr: Add support for applying a transfer characteristic curve to ↵Kevin Wheatley2015-09-10
| | | | | | | | | | | | OpenEXR inputs. Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com>
* | avcodec/options_table: Fix TRC / PRI typoMichael Niedermayer2015-09-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/options_table: Add SMPTE ST428-1 colour primaries (CIE 1931 XYZ) to ↵Kevin Wheatley2015-09-10
| | | | | | | | | | | | | | | | command line options Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com> Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>