aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
AgeCommit message (Collapse)Author
2015-10-08avcodec/ass: fix doxygen typowm4
2015-10-08dnxhdenc: mark CID 1260 encoder experimentalChristophe Gisquet
The MBAFF handling recently introduced on the decoder side shows that the encoder does not support it correctly. Therefore, make the related profile experimental. Furthermore, current encoder logic treats it as unable to encode as progressive, which isn't the case. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-07dnxhddata: introduce and use MBAFF flagChristophe Gisquet
MBAFF-like handling of interlaced content in CID 1260 is different from the other CIDs, and in particular doesn't use the same syntax. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-07dnxhddec: better support for 4:4:4Christophe Gisquet
Profiles 1256 & 1270 (currently) signal at the frame header and MB levels the colorspace used, either RGB or YUV. While a MB-level varying colorspace is not supported, whether it is constant can be tracked so as to determine the exact colorspace. This requires having bitdepth and the ACT and 4:4:4 flags, in turn needing the CID. Because setting those before having validated enough things may result in invalid/unset DSP fucntions, setting the bitdepth in the context is delayed. It is not tested against a true RGB sequence, though. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-07avcodec/mips: build fix for MSA 64bitShivraj Patil
Modified datatype of function argument (pitch from int32_t to ptrdiff_t) Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-07avcodec/mips: build fix for MSAShivraj Patil
Modified sps and pps access from old HEVCContext(s) structure to newly introduced HEVCParamSets(ps) Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-07doc/encoders: Fix libkvazaar documentationArttu Ylä-Outinen
The -threads option is ignored with libkvazaar since it does not have any of the AV_CODEC_CAP_{FRAME,SLICE,AUTO}_THREADS capabilities. This commit removes the incorrect documentation as well as the no-op of setting the number of threads in libkvazaar encoder. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
2015-10-07libkvazaar: Fix setting framerateArttu Ylä-Outinen
The divisor and dividend in the equation had been swapped, making the result the inverse of the actual framerate. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
2015-10-07libkvazaar: Use av_image_copy for copying pixelsArttu Ylä-Outinen
Replaces a for loop for copying pixels by a call to av_image_copy. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
2015-10-07libkvazaar: Set pts and dtsArttu Ylä-Outinen
Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
2015-10-07libkvazaar: Replace asserts with proper errorsArttu Ylä-Outinen
Changes function libkvazaar_encode to return proper error codes instead of crashing when the video dimensions or pixel format change in the middle of encoding. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
2015-10-07libkvazaar: Remove unnecessary NULL checksArttu Ylä-Outinen
Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
2015-10-07libkvazaar: Update to work with the latest versionArttu Ylä-Outinen
Function encoder_encode in Kvazaar API was changed to have new output parameters: source picture and frame info. Frame info is used to set the keyframe flag and source picture is ignored. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
2015-10-07vp9: don't keep a stack pointer if we don't need it.Ronald S. Bultje
This saves one register in a few cases on 32bit builds with unaligned stack (e.g. MSVC), making the code slightly easier to maintain. (Can someone please test this on 32bit+msvc and confirm make fate-vp9 and tests/checkasm/checkasm still work after this patch?)
2015-10-07avcodec/libx264: silence -WaddressGanesh Ajjanagadde
This patch moves the pointer validity check outside the macro, and silences the -Waddress observed with GCC 5.2. Note that this changes the error message slightly, from: "bad option..." to "Error parsing option...". Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-07avcodec/pngenc: Check that there is at least 1 frameMichael Niedermayer
Fixes null pointer dereference Fixes CID1322330 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-07avcodec/pngenc: Initialize fctl_chunk to 0Michael Niedermayer
The structure is copied around and that triggers warnings if it is uninitialized Fixes CID1322360 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-06x86/alacdsp: add simd optimized functionsJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2015-10-05vp9: fix msvc build by using 6 GPRs on 32bit if stack!=aligned.Ronald S. Bultje
2015-10-05dnxhd: add better support for CIDs 1270 to 1274Jeremy James
These are DNxHR profiles with the following properties: - Variable size in a profile (property added in a previous commit), requiring variable-sized macroblock table; - Variable bitdepth, up to 12 bits. - Better validation of buffer sizes and positions Signed-off-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05dnxhd: add CID 1270Christophe Gisquet
This a 4:4:4 10 bits profile, where image size is not fixed by the profile, and which strays a bit outside the old frame header parsing code. Fixes ticket #4581 (DNxHR is not stricly supported, but that sequence is). Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05dnxhd: add decoder support for DNxHRJeremy James
Signed-off-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05dnxhddec: Introduce DNXHD_VARIABLEChristophe Gisquet
Currently not used, but will be used to indicate that a CIDEntry field is not set, because it is variable, and that checks should be adapted. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05dnxhdenc: do not select 4:4:4 profilesChristophe Gisquet
The encoder can only deal with 4:2:2. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05dnxhd: profile flagsChristophe Gisquet
Move the 'interlaced' flag to this element (arbitrarily set to 16bits). This should allow better detection/selection of profiles. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05dnxhddec: cleanup frame header parsingChristophe Gisquet
Rely more on the actual syntax from the specs (also seen in the encoder code). Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05avcodec/mmaldec: Use av_assert0() instead of assert()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05Merge commit '39f01e346cab464ef6c0d4ec58cc13b7123e60d8'Hendrik Leppkes
* commit '39f01e346cab464ef6c0d4ec58cc13b7123e60d8': mmaldec: be more tolerant against MMAL not returning decoded output Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-05Merge commit '65db4899fa8790049bec3af16ecdb75dd81051fd'Hendrik Leppkes
* commit '65db4899fa8790049bec3af16ecdb75dd81051fd': mmaldec: refactor to have more context per MMAL input buffer Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-05Merge commit 'abe9adfb31566c415fd830a8d4977c79512d4385'Hendrik Leppkes
* commit 'abe9adfb31566c415fd830a8d4977c79512d4385': rangecoder: Use AV_RB16 instead of bytestream_get_be16 Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-05Merge commit '4628443ca3534060888dd0015b229337eac13fd2'Hendrik Leppkes
* commit '4628443ca3534060888dd0015b229337eac13fd2': h263: Drop uninitialized variable use from log message Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-05Merge commit '1da2a20763ae9ca579d5fd20763065871ddf6311'Hendrik Leppkes
* commit '1da2a20763ae9ca579d5fd20763065871ddf6311': dvbsubdec: Fix function return type Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-05Merge commit 'cab63a8b594cdc365bb2581a12b3ac8e6dd480b2'Hendrik Leppkes
* commit 'cab63a8b594cdc365bb2581a12b3ac8e6dd480b2': dv: Mark internal frame reference as const Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-05Merge commit 'bb198c4997d5036f3bf91de51e44f807115677d0'Hendrik Leppkes
* commit 'bb198c4997d5036f3bf91de51e44f807115677d0': d3d11va: make av_d3d11va_alloc_context() available at all times Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-05Merge commit 'f3202871598f59b570b31b01cfeb64b8fedbd700'Hendrik Leppkes
* commit 'f3202871598f59b570b31b01cfeb64b8fedbd700': d3d11va: check for malloc failure Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-04avcodec/tta: Un-break build without threadsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-04mmaldec: be more tolerant against MMAL not returning decoded outputwm4
In some situations, MMAL won't return a decoded frame for certain input frames. This can happen if a frame fails to decode, or if a packet does not actually contain a complete frame. In these situations, we would deadlock (or actually timeout) waiting for an expected output frame, which is not ideal. On the other hand, there are situations where we definitely have to block to avoid deadlocks. (This mess is a consequence of trying to map MMAL's asynchronous and flexible dataflow to libavcodec, which is more static and rigid.) Solve this by doing a blocking wait only if the amount of buffered data is too big. The whole purpose of the blocking wait is to avoid excessive buffering of input data, so we can skip it if it appears to be low. The consequence is that libavcodec can gracefully return no frame to the API user. We want to track the number of full packets to make our heuristic work. But MMAL buffers are fixed-size, requiring splitting large packets. This is why the previous commit is needed. We use the ..._FRAME_END flag to remember packet boundaries, but MMAL does not preserve these buffer flags when returning buffers to the user. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-10-04mmaldec: refactor to have more context per MMAL input bufferwm4
The next commit needs 1 bit of additional information per MMAL buffer sent to the MMAL input port. This information will be needed when the buffer is recycled (i.e. returned by the input port's callback). Normally, we could use MMAL_BUFFER_HEADER_FLAG_USER0, but that is unexpectedly not preserved. Do this by storing a pointer to FFBufferEntry in the MMAL buffer's user data, instead of an AVBufferRef. This also changes the lifetime of FFBufferEntry. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-10-04avcodec/alacdec: split off decorrelate_stereo and append_extra_bits as alacdspJames Almer
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
2015-10-04avcodec: use HAVE_THREADS header guards to silence -Wunused-functionGanesh Ajjanagadde
When compiled with --disable-pthreads, e.g http://fate.ffmpeg.org/report.cgi?time=20150917015044&slot=alpha-debian-qemu-gcc-4.7, a bunch of -Wunused-functions are reported due to missing header guards around threading related functions. This patch should silence such warnings. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-04avcodec: Do not lock during open for codecs marked as having threadsafe initDerek Buitenhuis
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-10-04rangecoder: Use AV_RB16 instead of bytestream_get_be16Vittorio Giovara
Silence an incompatible-pointer-types-discards-qualifiers warning from clang. rangecoder.c:58:34: warning: passing 'uint8_t **' (aka 'unsigned char **') to parameter of type 'const uint8_t **' (aka 'const unsigned char **') discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
2015-10-04hevc: Simplify logical checkVittorio Giovara
The intended meaning is "if this block is the first block in a slice then its left boundary is a slice boundary". Silence a logical-not-parentheses warning from gcc.
2015-10-04h263: Drop uninitialized variable use from log messageVittorio Giovara
2015-10-04dvbsubdec: Fix function return typeVittorio Giovara
2015-10-04h264: Use the correct argument context in debug logVittorio Giovara
2015-10-04dv: Mark internal frame reference as constVittorio Giovara
Silence a warning due to frame assignment in dvenc. All uses of the reference in dvdec are read only, except the ones in the main decoding function, so use the frame pointer directly there.
2015-10-04dcadec: Always initialize return variableVittorio Giovara
Silence an uninitialized warning from clang.
2015-10-03libx264: copy A53 closed captions from sourceDeHackEd
Assumes 'GA94' format (ATSC standard) Signed-off-by: DHE <git@dehacked.net> Tested-by: Anshul <anshul.ffmpeg@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-03blockdsp: reindent after parameter removalChristophe Gisquet
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>