summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* dnxhddata: Deduplicate cid 1256 chroma tableChristophe Gisquet2015-10-02
| | | | | | | | | | CID 1256 is specified as using the same table for luma and chroma, which is the same as CID 1235 luma table. This is consistent with the format supposedly being RGB, although most sequences seem to actually be YCbCr-encoded. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dnxhddata: Deduplicate dnx100 tablesJeremy James2015-10-02
| | | | | | | Tables 1258 and 1259 were not zigzagged when added, so it was not possible to notice the equivalence. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dnxhddata: Fix cid 1260 luma and chroma tablesJeremy James2015-10-02
| | | | | | These table was not zigzagged when added. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dnxhddata: Fix 10-bit DNxHD quant matricesJoseph Artsimovich2015-10-02
| | | | | | | | | | | | Convert them to zigzag order, as the rest of them are. When I was adding support for 10-bit DNxHD, I just copy-pasted the missing quant matrices from the spec. Now it turns out the existing matrices in dnxhddata.c were in zigzag order. This resulted in wrong quantization for 10-bit DNxHD. The attached patch fixes the problem by converting 10-bit quant matrices to zigzag order. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* x264: Add option to force IDR framesDerek Buitenhuis2015-10-01
| | | | | | | When forwarding the frame type information, by default x264 can decide which kind of keyframe output, add an option to force it to output IDR frames in to support use-cases such as preparing the content for segmented streams formats.
* x264: Expose the NV21 input supportYu Xiaolei2015-10-01
| | | | | | | | | x264 build 147 adds the native support for NV21. Useful to avoid additional pixel format conversion when encoding from a wide range of capture devices, Android among those. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dcadec: make a number of samples per subband per subsubframe a named constantAlexandra Khirnova2015-10-01
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Screenpresso SPV1 decoderVittorio Giovara2015-09-30
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavu: Deprecate AVFrame.error[]Vittorio Giovara2015-09-30
| | | | | | | | | | | These field are difficult to interpret, and are provided by a single encoder (mpegvideoenc). In general they do not belong to a structure containing raw data only, so remove them from AVFrame. Mpegvideoenc now uses a private field in Picture for its internal computations. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dnxhddec: Enable frame threadingVittorio Giovara2015-09-29
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dnxhddec: Decode and use interlace mb flagChristophe Gisquet2015-09-29
| | | | | | | | | | | | | | | | | | | | This bit is 1 in some samples, and seems to coincide with interlaced mbs and CID1260. 2008 specs do not know about it, and maintain qscale is 11 bits. This looks oversized, but may help larger bitdepths. Currently, it leads to an obviously incorrect qscale value, meaning its syntax is shifted by 1. However, reading 11 bits also leads to obviously incorrect decoding: qscale seems to be 10 bits. However, as most profiles still have 11bits qscale, the feature is restricted to the CID1260 profile (this flag is dependent on a higher-level flag located in the header). The encoder writes 12 bits of syntax, last and first bits always 0, which is now somewhat inconsistent with the decoder, but ends up with the same effect (progressive + reserved bit). Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Simplify checking quant bias optionVittorio Giovara2015-09-29
|
* motion_est_template: Fix undefined left shift of negative numberGanesh Ajjanagadde2015-09-29
| | | | | | This fixes a -Wshift-negative-value warning reported with clang 3.7+. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* mlpdec: Fix a undefined left shift of negative numberGanesh Ajjanagadde2015-09-29
| | | | | | This fixes a -Wshift-negative-value warning reported with clang 3.7+. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* lavc: Make AVPacket.duration int64, and deprecate convergence_durationwm42015-09-29
| | | | | | | | | Note that convergence_duration had another meaning, one which was in practice never used. The only real use for it was a 64 bit replacement for the duration field. It's better just to make duration 64 bits, and to get rid of it. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libopenh264enc: Use av_log() to log messagesGregory J. Wolfe2015-09-29
| | | | | | | | | | | | | | File libopenh264enc.c has been modified so that the encoder uses av_log() to log messages (error, warning, info, etc.) instead of logging them directly to stderr. At the time the encoder is created, the current libav log level is mapped to an equivalent libopenh264 log level. This log level, and a message logging function that invokes av_log() to actually log messages, are then set on the encoder. This contains further changes and simplifications by Michael Niedermayer and Martin Storsjö. Signed-off-by: Martin Storsjö <martin@martin.st>
* qsvdec: make ff_qsv_decode_init() staticAnton Khirnov2015-09-28
| | | | It is not used outside of qsvdec.c anymore.
* qsvdec: close the MFX decoder on uninitAnton Khirnov2015-09-28
|
* qsv: document AVQSVContext membersAnton Khirnov2015-09-28
|
* qsvenc: mark the encoders as INIT_CLEANUPAnton Khirnov2015-09-28
| | | | Should fix some leaks on init failure.
* qsvenc: do not try to close the encoder if the session is NULLAnton Khirnov2015-09-28
|
* qsvdec: list supported pixel formatsAnton Khirnov2015-09-28
| | | | This is useful for detecting QSV-enabled decoders.
* vdpau: fix constrained baseline fallbackwm42015-09-28
| | | | | | | | It appears vdpau drivers can return constrained baseline as unsupported, even if libvdpau knows about the symbol, and the main profile is supported. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: reimplement avcodec_get_type() using codec descriptorswm42015-09-28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vdpau: deprecate av_vdpau_get_profile()Rémi Denis-Courmont2015-09-28
| | | | | | | | This function can intrinsically not deal with codec profile fallback (for H.264 Constrained Baseline especially), and was made redundant by av_vdpau_bind_context(). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dxv: Improve error messageVittorio Giovara2015-09-24
|
* dxv: Support RAW intermediate compressionVittorio Giovara2015-09-24
| | | | | | Sample-Id: boombox64.mov Reported-by: Aarni Koskela Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dxv: Print texture information after header parsingVittorio Giovara2015-09-24
|
* dxv: Support the original first versionVittorio Giovara2015-09-24
| | | | | | | | DXV 1.0 provided DXT1 with LZF only. Sample-Id: Orange-Strings-07_640_DXV.mov Reported-by: Carl Eugen Hoyos Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dxv: Parse ancillary encoder informationVittorio Giovara2015-09-24
| | | | | Header does not contain the number of channels, but rather the encoder version, so rename the variable, and read the additional byte.
* mmal: Fix AVBufferRef usagewm42015-09-24
| | | | | | | | AVBufferRef.data and AVPacket.data don't need to have the same value. AVPacket could point anywhere into the buffer. Likewise, the sizes don't need to be the same. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mmal: Remove setting extradata on input formatwm42015-09-24
| | | | | | | | This works only for extradata sizes up to 128 bytes. Additionally, I could never actually see it doing anything. The new code using MMAL_BUFFER_HEADER_FLAG_CONFIG now takes care of this. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mmal: drop the h264 BSFwm42015-09-24
| | | | | | | | We can send mp4-style data directly. But for some reason, this requires sending the extradata as buffer with MMAL_BUFFER_HEADER_FLAG_CONFIG set. Reuse the infrastructure for sending AVPackets to do this. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* d3d11va: WindowsPhone requires a mutex around ID3D11VideoContextSteve Lhomme2015-09-17
|
* pixfmt: Add new SMPTE color primaries and transfer characteristic valuesKevin Wheatley2015-09-17
| | | | | | Appeared in ITU-T Rec H.265 10/2014. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dcadec: set channel layout in a separate functionAlexandra Hájková2015-09-16
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dcadec: scan for extensions in a separate functionAlexandra Hájková2015-09-16
| | | | | | to make dca_decode_frame more readable Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Factor out prec initLuca Barbato2015-09-14
| | | | Makes debugging a little simpler.
* jpeg2000: Factor out band stepsize initializationLuca Barbato2015-09-14
|
* jpeg2000: Factor out band initializationLuca Barbato2015-09-14
|
* jpeg2000: Refactor decode_packetsLuca Barbato2015-09-14
| | | | Move the packet-specific parsers in separate functions.
* jpeg2000: Templatize the frame writerLuca Barbato2015-09-14
|
* jpeg2000: Split codeblock decoding from the main tile decodingLuca Barbato2015-09-14
| | | | That loop is completely stand-alone.
* mpegvideo: Drop mpegvideo.h where not neededVittorio Giovara2015-09-13
| | | | Add necessary headers in .c files.
* mpegvideo: Make sure mpegutils.h is included where neededVittorio Giovara2015-09-13
|
* mpegvideo: Move macros to more appropriate headersVittorio Giovara2015-09-13
| | | | | | | MAX_MB_BYTES -> mpegutils.h FRAME_SKIPPED -> mpegutils.h INPLACE_OFFSET -> mpegutils.h ME_MAP_SIZE -> motion_est.h
* lavc: Keep idct integer optionVittorio Giovara2015-09-13
| | | | | | "int" is useful in testing because provides accurate results across different plaftforms, so remove it from the scheduled FF_API_UNUSED_MEMBERS deprecation.
* lavc: Fix compilation with --disable-everything --enable-parser=mpeg4videoHendrik Schreiber2015-09-12
|
* 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>
* 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>