summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* Merge commit '728d90a0c1973661a9e73da697bf4f90c9d19577'Clément Bœsch2016-06-18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '728d90a0c1973661a9e73da697bf4f90c9d19577': h264: decouple h264_sei from the h264 decoder Main changes: - SEI decoding doesn't have access to the debug flag in the codec context so a few logging are dropped. - naming of quincunx_sampling_flag and frame_packing_arrangement_type are kept as they are in FFmpeg instead of respectively quincunx_subsampling and arrangement_type used in Libav because the former match the specifications. - don't reset the x264 build info once read in order to fix fate-h264-lossless (change by Hendrik) - H264Context.has_recovery_point and deprecated AVCodecContext.dtg_active_format are set after ff_h264_sei_decode() based on the SEI state since ff_h264_sei_decode() doesn't have access to H264Context anymore. - frame_packing_arrangement_type is not checked against <= 0 in decode_postinit() since it is always read as a positive value with get_bits(). This fixes a -Wtype-limits warning by GCC spotted by Michael. Side Notes: - tested that ffprobe on the file from ticket #3652 still returns 4 keyframes - tested that playback from ticket #3063 still works Merged-by: Clément Bœsch <clement@stupeflix.com> Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * h264: decouple h264_sei from the h264 decoderAnton Khirnov2016-04-24
| | | | | | | | | | Make the SEI parsing independent of the H264Context, to allow decoupling the parser from the decoder.
* | avcodec/ffv1enc: silence warning about deprecated coded_frameJames Almer2016-06-17
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/snow: Document BlockNodeMichael Niedermayer2016-06-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/snow: Remove unused functionMichael Niedermayer2016-06-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/videotoolbox: remove config_info maximum capacityClément Bœsch2016-06-17
| | | | | | | | | | In case of extradata, config_info will contain two entries instead of one.
* | lavc/videotoolbox: CFRelease() sessionClément Bœsch2016-06-17
| | | | | | | | | | | | "When you are done with a decompression session you created, call VTDecompressionSessionInvalidate to tear it down and then CFRelease to release your object reference."
* | d3d11va: don't keep the context lock while waiting for a frameSteve Lhomme2016-06-17
| | | | | | | | | | | | also fixes a deadlock found by Денис Кулаков <kudesnik33ra@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/videotoolboxenc: remove unnecessary loggingRick Kern2016-06-16
| | | | | | | | Signed-off-by: Rick Kern <kernrj@gmail.com>
* | lavc/videotoolbox: fix H.264 hwaccel init issueRick Kern2016-06-16
| | | | | | | | | | | | Fixes VTDecompressionSessionCreate() error. Signed-off-by: Rick Kern <kernrj@gmail.com>
* | lavc/audiotoolboxenc: fix dropped frames on iOSRick Kern2016-06-16
| | | | | | | | | | | | | | AudioConverterFillComplexBuffer() doesn't always call its callback. A frame queue is used to prevent skipped audio samples. Signed-off-by: Rick Kern <kernrj@gmail.com>
* | avodec/h264dec: fix compilation with -DTRACEJames Almer2016-06-16
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/sheervideo: check build_vlc for failurePaul B Mahol2016-06-16
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavc/dpx: Support decoding 12 bit colourspace with transparency information.Carl Eugen Hoyos2016-06-15
| |
* | lavc/mediacodec: re-indent after previous commitMatthieu Bouron2016-06-15
| |
* | lavc/mediacodec: refactor ff_AMediaCodecList_getCodecByTypeMatthieu Bouron2016-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | Allows to select a codec (encoder or decoder) only if it supports a specific profile. Adds ff_AMediaCodecProfile_getProfileFromAVCodecContext to convert an AVCodecContext profile to a MediaCodec profile. It only supports H264 for now. The codepath using MediaCodecList.findDecoderForFormat() (Android >= 5.0) has been dropped as this method does not allow to select a decoder compatible with a specific profile.
* | x86/aacpsdsp: optimize add_squares loopJames Almer2016-06-14
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/dpx: Support decoding 10 bit colourspace with transparency information.Carl Eugen Hoyos2016-06-14
| | | | | | | | Fixes one sample from ticket #5639.
* | lavc/h264_sei: fix broken style around green metadata codeClément Bœsch2016-06-14
| |
* | lavc/h264: rename GreenMetaData to H264SEIGreenMetaDataClément Bœsch2016-06-14
| | | | | | | | Reduces diff for the next merge with Libav.
* | lavc/h264_sei: reduce scope of parameters for green meta decodeClément Bœsch2016-06-14
| | | | | | | | | | This is again will help the merge as ff_h264_decode_sei will not have access to H264Context anymore.
* | lavc/h264: move green meta logging out of the sei decodingClément Bœsch2016-06-14
| | | | | | | | | | This will simplify the next Libav merge where SEI decoding doesn't have access to the debug level anymore.
* | lavc/h264_sei: fix green metadata typoClément Bœsch2016-06-13
| |
* | avcodec/ffv1dec: fix some unsupported pix_fmtJérôme Martinez2016-06-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When checking pix_fmt mapping, some bitstreams are mapped to an incorrect pix_fmt instead of being rejected (ENOSYS). Actually, such bitstreams are not supported (FFmpeg encoder does not produce such bitstream, such bitstream may come only from another encoder for the moment). - JPEG 2000 RCT 11/13/15/16 bit depths are mapped to a 8-bit FFmpeg pix_fmt (e.g. bgr0), which is not expected. - JPEG 2000 RCT 9/10/12/14 bit depths with alpha are mapped to a FFmpeg pix_fmt without alpha (e.g. AV_PIX_FMT_GBRP9 for 9-bit with alpha), which is not expected. The order for choosing the pix_fmt is changed to the one used by YCbCr selection (<=8 bit first). " && !f->transparency" is added to the other lines. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/h264_slice: Add casts to suppress warningsMichael Niedermayer2016-06-13
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/videotoolbox: fix sps/pps mistake introduced in 1534ef87Clément Bœsch2016-06-12
| |
* | lavc/videotoolbox: fixes compilation after 1534ef87Clément Bœsch2016-06-12
| |
* | lavc/vda_h264: fixes compilation after 1534ef87Clément Bœsch2016-06-12
| |
* | avcodec/iff: Fix bytestream advanceMichael Niedermayer2016-06-12
| | | | | | | | | | | | Fixes Ticket5585 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'c8dcff0cdb17d0aa03ac729eba12d1a20f1f59c8'Clément Bœsch2016-06-12
|\| | | | | | | | | | | | | * commit 'c8dcff0cdb17d0aa03ac729eba12d1a20f1f59c8': h264: factor out calculating the POC count into a separate file Merged-by: Clément Bœsch <u@pkh.me>
| * h264: factor out calculating the POC count into a separate fileAnton Khirnov2016-04-24
| | | | | | | | This will allow decoupling the parser from the decoder.
* | Merge commit '113aeee6aed35cb786a9f6d69b0cb210f498b9da'Clément Bœsch2016-06-12
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '113aeee6aed35cb786a9f6d69b0cb210f498b9da': h264_parser: move the H264DSPContext to the parser context H264Context is kept locally as it is currently needed for logging (h->avctx as log context) and for is_avc and nal_length_size. These later fields will later be obtained when the extradata parsing is decoupled from the decoder. This code will be updated accordingly when that commit is merged. Merged-by: Clément Bœsch <u@pkh.me>
| * h264_parser: move the H264DSPContext to the parser contextAnton Khirnov2016-04-24
| |
* | lavc/h264: remove unused ff_h264_init_dequant_tables prototypeClément Bœsch2016-06-12
| | | | | | | | Unused since 1534ef87 / 3176217c.
* | Merge commit '3176217c60ca7828712985092d9102d331ea4f3d'Clément Bœsch2016-06-12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3176217c60ca7828712985092d9102d331ea4f3d': h264: decouple h264_ps from the h264 decoder Main changes: - a local GetBitContext is created for the various ff_h264_decode_seq_parameter_set() attempts - just like the old code, remove_sps() is adjusted so it doesn't remove the pps. Fixes decode with Ticket #631 http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20111108/dae58f17/attachment.mp4 but see next point as well. - ff_h264_update_thread_context() is updated to work even when SPS isn't set as it breaks current skip_frame code. This makes sure we can still decode the sample from ticket #631 without the need for -flags2 +chunks. (Thanks to Michael) - keep {sps,pps}_ref pointers that stay alive even when the active pps/sps get removed from the available lists (patch by michaelni with additionnal frees in ff_h264_free_context() from mateo) - added a check on sps in avpriv_h264_has_num_reorder_frames() to fix crashes with mpegts_with_dvbsubs.ts from Ticket #4074 http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket4074/mpegts_with_dvbsubs.ts - in h264_parser.c:h264_parse(), after the ff_h264_decode_extradata() is called, the pps and sps from the local parser context are updated with the pps and sps from the used h264context. This fixes fate-flv-demux. - in h264_slice.c, "PPS changed between slices" error is not triggered anymore in one condition as it makes fate-h264-xavc-4389 fails with THREADS=N (Thanks to Michael) Merged-by: Clément Bœsch <clement@stupeflix.com> Merged-by: Michael Niedermayer <michael@niedermayer.cc> Merged-by: Matthieu Bouron <matthieu.bouron@stupeflix.com>
| * h264: decouple h264_ps from the h264 decoderAnton Khirnov2016-04-24
| | | | | | | | | | | | | | | | | | Make the SPS/PPS parsing independent of the H264Context, to allow decoupling the parser from the decoder. The change is modelled after the one done earlier for HEVC. Move the dequant buffers to the PPS to avoid complex checks whether they changed and an expensive copy for frame threads.
* | avcodec/sheervideo: add 10-bit interlaced RGB(A) supportPaul B Mahol2016-06-12
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/utvideodec: add support for UQRG and UQRA formatsPaul B Mahol2016-06-12
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavc/libutvideodec: Do not set bits_per_raw_sample.Carl Eugen Hoyos2016-06-11
| | | | | | | | It is not always 8 but never different from the pix_fmt property.
* | avcodec/utvideodec: fix multiple slices for UQY2 and other issuesPaul B Mahol2016-06-11
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/utvideo: add support for UQY2Paul B Mahol2016-06-11
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/mpc8: Correct end truncationMichael Niedermayer2016-06-11
| | | | | | | | | | | | Fixes Ticket5478 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/videotoolboxenc: set extradata when opening codecRick Kern2016-06-11
| | | | | | | | | | | | | | | | VideoToolbox doesn't supply parameter sets until the first frame is done encoding. This spins up a temporary encoder and encodes a single frame to get this data. Signed-off-by: Rick Kern <kernrj@gmail.com>
* | lavc/videotoolboxenc: fix allocated buffer sizeRick Kern2016-06-11
| | | | | | | | | | | | | | Allocates a buffer with padding, and with enough room for start codes when length codes are smaller. Signed-off-by: Rick Kern <kernrj@gmail.com>
* | vaapi_encode_h26[45]: Reject bitrate targets higher than 2^31Mark Thompson2016-06-10
| |
* | avcodec/cfhd: Set dimensions unconditionallyMichael Niedermayer2016-06-10
| | | | | | | | | | | | | | Fixes Ticket5215 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/sheervideo: add support for 10-bit interlaced YCbCr(A) 4:2:2Paul B Mahol2016-06-10
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/sheervideo: fix argx format supportPaul B Mahol2016-06-10
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/cuvid: add cuvid decoderTimo Rothenpieler2016-06-10
| |
* | avcodec/mpegvideo: Do not clear the parse context during initMichael Niedermayer2016-06-10
| | | | | | | | | | | | | | It is allocated before, this cannot work Fixes Ticket5613 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>