summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1.c
Commit message (Collapse)AuthorAge
* Drop pointless assert.h #includesDiego Biurrun2016-05-03
|
* ffv1: Explicitly name the coder typeVittorio Giovara2015-11-16
| | | | | | | | | | | | | | | | 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>
* ffv1: Pass correct pointers to av_free()Diego Biurrun2015-04-20
| | | | Bug-Id: CID 1295124
* ffv1: Check memory allocationsVittorio Giovara2015-04-13
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ffv1: Drop bogus dependency on dsputilDiego Biurrun2014-03-13
| | | | ffv1 does not use any part of the dsputil framework.
* ffv1: use the AVFrame API properly.Anton Khirnov2013-11-16
|
* ffv1: Make sure at least one slice context is initializedMartin Storsjö2013-09-17
| | | | | | | | | This avoids crashes when initializing the range coder for the first slice context. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-04
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-26
|
* ffv1: update to ffv1 version 3Luca Barbato2012-10-20
| | | | Based on code from Carl Eugen Hoyos, Michael Niedermayer and Paul B Mahol.
* ffv1: split decoder and encoderLuca Barbato2012-10-20
|
* ffv1: K&R formatting cosmeticsLuca Barbato2012-10-16
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* avcodec: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-01
|
* avcodec: Drop silly and/or broken printf debug outputDiego Biurrun2012-10-01
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* ffv1: Fix size mismatch in encode_line.Alex Converse2012-04-12
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Consistently place static, inline and av_cold attributes/keywords.Diego Biurrun2012-04-04
|
* ffv1enc: switch to encode2().Anton Khirnov2012-02-23
|
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ffv1: Fixed size given to init_get_bits() in decoder.Laurent Aimar2011-09-09
| | | | | | | init_get_bits() takes a number of bits and not a number of bytes as its size argument. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* ffv1: remove unused tablesMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ffv1: fix undefined behavior with insane widths.Michael Niedermayer2011-06-13
| | | | | | | The new tables is large enough to prevent this together with our image size checks. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace int_fast integer types with their sized standard posix counterparts.Diego Biurrun2011-05-12
| | | | | The _fast integer types provide no realworld benefits, but may introduce portability issues and are just plain ugly.
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Introduce slice threads flag.Ronald S. Bultje2011-04-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ffv1: allocate correct size for sample bufferMans Rullgard2011-03-20
| | | | | | | This fixes a typo in the size calculation for the sample buffer introduced in cbabccc367424. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix indention of one forgotten line in ffv1.cMichael Niedermayer2010-12-12
| | | | Originally committed as revision 25935 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix FFv1 decoder buffer releasing.Stefano Sabatini2010-11-04
| | | | | | | Previously it was releasing the buffer which was returned to the user, which was resulting in a crash in case of direct rendering. Originally committed as revision 25678 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix 10l leak in ffv1.Michael Niedermayer2010-10-28
| | | | Originally committed as revision 25595 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Try to find a bit better initial states in ffv1 2pass.Michael Niedermayer2010-10-28
| | | | | | | | | | | | Difference in filesizes to foreman ffv1 version=2, context=1 coder=1 18637016 adv-pass2-g300.avi 18638806 adv-pass1-g300.avi 18640534 ref-pass2-g300.avi 18918214 adv-pass2-g1.avi 18982048 ref-pass2-g1.avi 21516230 adv-pass1-g1.avi Originally committed as revision 25594 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Keep track of how many slices*gops where encoded in ffv1 2 pass.Michael Niedermayer2010-10-28
| | | | Originally committed as revision 25593 to svn://svn.ffmpeg.org/ffmpeg/trunk
* factorize variable declaration in ffv1.Michael Niedermayer2010-10-28
| | | | Originally committed as revision 25592 to svn://svn.ffmpeg.org/ffmpeg/trunk
* FFV1 initial state 2pass code.Michael Niedermayer2010-10-26
| | | | Originally committed as revision 25584 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Read & write initial_states for ffv1Michael Niedermayer2010-10-26
| | | | Originally committed as revision 25583 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add initial_states array to ffv1.Michael Niedermayer2010-10-26
| | | | Originally committed as revision 25582 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add rc_stat2 to ffv1 this will be needed for finding good initial contexts ↵Michael Niedermayer2010-10-26
| | | | | | in 2 pass mode. Originally committed as revision 25581 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize state initialization in ffv1 clear_state().Michael Niedermayer2010-10-26
| | | | Originally committed as revision 25580 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only allocate stats_out when needed in ffv1Michael Niedermayer2010-10-26
| | | | Originally committed as revision 25579 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize litteral constents in ffv1 into STATS_OUT_SIZE.Michael Niedermayer2010-10-26
| | | | Originally committed as revision 25578 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make 1pass statistic collection in ffv1 put_symbol_inline() conditional to ↵Michael Niedermayer2010-10-26
| | | | | | avoid slowdown when more statistic collection code is added. Originally committed as revision 25577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Increase ffv1 encoding speed from 65 to 80 fps by forcing some inlining.Michael Niedermayer2010-10-26
| | | | Originally committed as revision 25571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add quant_table_index to ffv1 PlaneContext and use it instead of duplicating ↵Michael Niedermayer2010-10-26
| | | | | | the currents implementation of calculating it. Originally committed as revision 25570 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ffv1 state transition table sorting to its own function.Michael Niedermayer2010-10-24
| | | | Originally committed as revision 25563 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix the case with swaping states 127 and 129 in ffv1Michael Niedermayer2010-10-24
| | | | Originally committed as revision 25562 to svn://svn.ffmpeg.org/ffmpeg/trunk