Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-14libavcodec, libpostproc: Remove outcommented START/STOP_TIMERAndreas Rheinhardt
as well as includes of libavutil/timer.h. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-09-28avcodec/ffv1enc: Fix out-of-bounds-array accessAndreas Rheinhardt
libavcodec/ffv1enc.c accessed an array of uint8_t [32] via array[0][j] in order to loop over all the uint8_t in this array of arrays. Of course this implied an out-of-bounds access for array[0] and UBSan complained about this. So replace this with nested loops; furthermore, factor this out into a function of its own to easily break out of the nested loops. This affected the FATE-tests vsynth1-ffv1, vsynth1-ffv1-v3-yuv420p, vsynth1-ffv1-v3-yuv422p10, vsynth1-ffv1-v3-yuv444p16, vsynth1-ffv1-v3-bgr0, vsynth1-ffv1-ffv1-v3-rgb48 as well as the corresponding vsynth2-*, vsynth3-* and the vsynth_lena-* tests. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-12-31avcodec/rangecoder: factorize termination version codeMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-06-23libavcodec/ffv1enc: minor cosmetic fixMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-04-30Use AV_PIX_FMT_FLAG_ALPHA for detecting transparency where nb_components was ↵Marton Balint
used Temporarily keep the old method for ffmpeg_filters.c choose_pix_fmt and avfiltergraph.c pick_format() until a paletted pixel format without alpha is introduced. Signed-off-by: Marton Balint <cus@passwd.hu>
2018-04-24avcodec/ffv1enc: Check that the crc + version combination is supportedMichael Niedermayer
The crc flag is only stored since version 3 thus before this crcs do not work. We increase the version as needed same as we do with pix_fmts Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-03-10avcodec/ffv1: support of more pix_fmtJérôme Martinez
Without direct support of such pix_fmt, content is padded to 16-bit and it is not possible to know that the source file was with a smaller bit depth so framemd5 is different Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-03-09avcodec/ffv1enc: remove warning about transparencyJérôme Martinez
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-02-15avcodec/ffv1: Support for GBRAP10 and GBRAP12Jérôme Martinez
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-02-07avcodec/ffv1: Support for RGBA64 and GBRAP16Jérôme Martinez
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-02-03avcodec/ffv1enc: mark RGB48 support as non-experimentalJérôme Martinez
Remove the 2nd mark, 1st mark was removed in 58e16a4 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-01-12avcodec/ffv1enc: mark RGB48 support as non-experimentalJérôme Martinez
Resulting bitstream was tested with a conformance checker using the last draft of FFV1 specifications. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Also the files are already in the wild, and decoder support is thus needed. And with decoders widely supporting it, there is no advantage in not allowing it in the encoder. The exact bitstream format may change in future versions of the spec, if improvments are found.
2017-11-07avcodec: remove remaining uses of avcodec_get_chroma_sub_sampleMartin Vignali
Replace them with av_pix_fmt_get_chroma_sub_sample. Signed-off-by: James Almer <jamrial@gmail.com>
2017-06-27avcodec/ffv1enc: compute the max number of slices and limit by thatMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-27avcodec/ffv1enc: Allow less than 2 rows of slices for low vertical resolutionMichael Niedermayer
Fixes: Ticket5548 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-26avcodec/ffv1enc: Try to choose slice count so that slice packet sizes are ↵Michael Niedermayer
within the supported size Fixes assertion failure Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-19Merge commit '17cb56b35672a2cd6ad7abe926e6cc772b8f4710'Clément Bœsch
* commit '17cb56b35672a2cd6ad7abe926e6cc772b8f4710': ffv1: Remove broken disabled cruft Merged-by: Clément Bœsch <u@pkh.me>
2016-12-09avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be ↵Michael Niedermayer
allocated We are checking during encoding if there is enough space as version 4 needs that check. Fixes Ticket6005 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-09avcodec/ffv1enc: Fix size of first sliceMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-21lavc/ffv1: Support YUV4xxP12 and GRAY12.Carl Eugen Hoyos
2016-11-17lavc/ffv1enc: Support pix_fmt GRAY10.Carl Eugen Hoyos
2016-10-25avcodec/ffv1enc: Fix storing RGB48 without explicitly set levelMichael Niedermayer
the bps value is only stored with level >= 1, using rgb48 with level 0 requires the user app to keep track of the bps by external means, which does not always happen also we force level >= 1 for other 16bps formats, so this is consistent. Found-by: Jerome Martinez <jerome@mediaarea.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-17ffv1: Remove broken disabled cruftDiego Biurrun
2016-08-17avcodec/ffv1enc: Add RGB48 supportMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-17avcodec/ffv1enc: do not offset null pointersMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-17avcodec/ffv1enc: Factor rice high depth check outMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-08avcodec/ffv1: add AV_PIX_FMT_GBRP16 supportMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-08avcodec/ffv1: template functions to allow data types different from int16_tMichael Niedermayer
This is required for >= 16bit RGB support I tried it without templates but its too much duplicated code Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-06avcodec/ffv1enc: Fix assertion failure with non zero bits per sampleMichael Niedermayer
Fixes Ticket5736 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-29ffv1: Remove version 2 and mark version 3 as non-experimentalLuca Barbato
The encoder produces bitstream compatible with the current specification and version 2 is set as reserved (non-standardizable).
2016-06-21Merge commit '5c31eaa9998b2185e0aa04d11adff128498dc14a'Clément Bœsch
* commit '5c31eaa9998b2185e0aa04d11adff128498dc14a': Remove unnecessary get_bits.h #includes and add missing headers where needed. Merged-by: Clément Bœsch <clement@stupeflix.com>
2016-06-17avcodec/ffv1enc: silence warning about deprecated coded_frameJames Almer
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
2016-05-04Remove unnecessary get_bits.h #includes and add missing headers where needed.Alexandra Hájková
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2016-01-28Merge commit '96c373c7704aeb1cc1d2c275fbb5d71777665589'Derek Buitenhuis
* commit '96c373c7704aeb1cc1d2c275fbb5d71777665589': lavc: Move context_model to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis
Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-21lavc: Move context_model to codec private optionsVittorio Giovara
This option is only used by ffv1 and ffvhuff. It is a very codec-specific option, so deprecate the global variant. Improve documentation a little. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2016-01-11lavu: add AV_CEIL_RSHIFT and use it in various placesClément Bœsch
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2016-01-01avcodec/ffv1enc: Support AV_PIX_FMT_YA8Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-19avcodec/ffv1enc: Fix 2 pass mode with the default rc tableMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-18avcodec/ffv1enc: unbreak -coder optionMichael Niedermayer
This fixes a segfault caused by moving the coder option and changing its semantics Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-18Merge commit 'be00ec832c519427cd92218abac77dafdc1d5487'Hendrik Leppkes
* commit 'be00ec832c519427cd92218abac77dafdc1d5487': lavc: Deprecate coder_type and its symbols Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-12-07lavc: Deprecate coder_type and its symbolsVittorio Giovara
Most option values are simply unused or ignored and in practice the majory of codecs only need to check whether to enable rle or not. Add appropriate codec private options which better expose the allowed features. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-12-04avcodec: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch
2015-11-22Merge commit '4bb1070c154e49d35805fbcdac9c9e92f702ef96'Derek Buitenhuis
* commit '4bb1070c154e49d35805fbcdac9c9e92f702ef96': ffv1: Explicitly name the coder type Conflicts: libavcodec/ffv1.h libavcodec/ffv1dec.c libavcodec/ffv1enc.c Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2015-11-16ffv1: Explicitly name the coder typeVittorio Giovara
FFv1 uses two types of coders, golomb and range with two different tables. This is exposed this in a rather convoluted way, for example mentioning to set coder type 1 while initializing the variable 'ac' to 2, because encoder does not use range coder with default table. Appropriate internal coder type values have been added and used in any check rather than using raw numbers. Initialization of avctx.coder_type in ffv1dec is removed because this field is encoder only. An unneeded validation check in the encoder is dropped too. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-09-25avcodec/ffv1: seperate slice_count from max_slice_countMichael Niedermayer
Fix segfault with too large slice_count Fixes Ticket4879 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-09-15avcodec/ffv1enc: Fix error message when the requested version does not ↵Michael Niedermayer
support the requested features Found-by: "Peter B." <pb@das-werkstatt.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-09-08Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes
2015-08-22ffv1: Add missing ff_ prefixesTimothy Gu
2015-07-28Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba'Michael Niedermayer
* 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>