summaryrefslogtreecommitdiff
path: root/libavcodec/cabac.c
Commit message (Collapse)AuthorAge
* Remove unnecessary get_bits.h #includes and add missing headers where needed.Alexandra Hájková2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Drop empty comment linesDiego Biurrun2016-02-18
|
* cabac: Make CABAC states hardcodedAnton Khirnov2015-10-08
| | | | | | | There is not much reason to generate such a small table at runtime. Signed-off-by: Derek Buitenhuis <derekb@vimeo.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* cabac: remove leftovers from the cabac encoderJanne Grunau2014-01-14
| | | | | | The cabac encoder was only used by the removed cabac test. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* h264: do not reinitialize the global cabac tables at each slice headerAnton Khirnov2013-09-24
|
* cabac: remove write-only h264_mps_state[]Anton Khirnov2013-09-24
|
* cabac: remove unused argument of ff_init_cabac_states()Michael Niedermayer2013-03-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Drop broken and unused CABAC test program.Diego Biurrun2012-11-14
|
* h264: use one table instead of several for cabac functionsRoland Scheidegger2012-04-28
| | | | | | | | | | | | | The reason is this is easier for PIC code (in particular on darwin...). Keep the old names as pointers (static in cabac_functions.h so gcc knows these are just immediate offsets) so the c code can nicely stay the same (alternatively could use offsets directly in the functions needing the tables). This should produce the same code as before with non-pic and better code (confirmed) with pic. The assembly uses the new table but still won't work for PIC case. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cabac: split cabac.h into declarations and function definitionsDiego Biurrun2012-01-12
| | | | | | | | | | | This fixes standalone compilation of some decoders with --disable-optimizations. cabac.h defines some inline functions that use symbols from cabac.c. Without optimizations these inline functions are not eliminated and linking fails with references to non-existing symbols. Splitting the inline functions off into their own header and only #including it in the places where the inline functions are used allows #including cabac.h from anywhere without ill effects.
* cabac: Mark ff_h264_mps_state array as static, it is only used within cabac.c.Diego Biurrun2012-01-12
|
* cabac: Remove ff_h264_lps_state array.Diego Biurrun2012-01-12
| | | | It was only ever used in the cabac test program, but never initialized.
* cabac: remove put_cabac_u/ueg from cabac-test.Diego Biurrun2012-01-09
| | | | | The functions are not used in any part of Libav, therefore testing them in the cabac-test is unnecessary. Since this makes them unused, remove the functions.
* cabac: Move code only used within the CABAC test program into the test program.Diego Biurrun2012-01-07
|
* cabac: drop unused and disabled get_cabac_u() / get_cabac_ueg() functionsDiego Biurrun2012-01-04
|
* cabac: drop unused STRICT_LIMITS code branchDiego Biurrun2012-01-04
|
* cabac: Move code only used in the cabac test program to cabac.c.Diego Biurrun2011-07-17
|
* Remove unused structs and tables.Diego Biurrun2011-07-16
|
* cabac: remove BRANCHLESS_CABAC_DECODER switchMans Rullgard2011-06-20
| | | | | | The code does not compile without this set. 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>
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-13
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).Diego Biurrun2009-04-10
| | | | Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace random() usage in test programs by av_lfg_*().Diego Biurrun2009-03-20
| | | | Originally committed as revision 18070 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix test program compilation: Add missing #include and update the callDiego Biurrun2008-01-23
| | | | | | of ff_init_cabac_states() to account for API changes. Originally committed as revision 11602 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Consistently use TEST as the preprocessor condition to enable test code.Diego Biurrun2008-01-20
| | | | Originally committed as revision 11581 to svn://svn.ffmpeg.org/ffmpeg/trunk
* main() --> main(void)Diego Biurrun2007-11-23
| | | | Originally committed as revision 11079 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix the self tests which are contained in some codecs and are using random().Panagiotis Issaris2007-07-19
| | | | Originally committed as revision 9755 to svn://svn.ffmpeg.org/ffmpeg/trunk
* license header consistency cosmeticsDiego Biurrun2007-07-05
| | | | Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Kill a warning with MSVCJindřich Makovička2006-10-18
| | | | | | | | | Patch by Jindrich Makovicka makovick A gmail P com Original thread: Date: 08:21 AM Subject Re: [Ffmpeg-devel] Weird line in cabac.h Originally committed as revision 6726 to svn://svn.ffmpeg.org/ffmpeg/trunk
* shift CABACContext.range right, this reduces the number of shifts needed in ↵Michael Niedermayer2006-10-15
| | | | | | get_cabac() and is slightly faster on P3 (and should be much faster on P4 as the P4 except the more recent variants lacks an integer shifter and so shifts have ~10 times longer latency then simple operations like adds) Originally committed as revision 6702 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dehack *ps_state indexing in the branchless decoderMichael Niedermayer2006-10-13
| | | | Originally committed as revision 6683 to svn://svn.ffmpeg.org/ffmpeg/trunk
* make state transition tables global as they are constant and the code is ↵Michael Niedermayer2006-10-11
| | | | | | slightly faster that way Originally committed as revision 6655 to svn://svn.ffmpeg.org/ffmpeg/trunk
* make lps_range a global table its constant anyway (saves 1 addition for ↵Michael Niedermayer2006-10-11
| | | | | | accessing it) Originally committed as revision 6653 to svn://svn.ffmpeg.org/ffmpeg/trunk
* BRANCHLESS_CABAD --> BRANCHLESS_CABAC_DECODERDiego Biurrun2006-10-10
| | | | Originally committed as revision 6623 to svn://svn.ffmpeg.org/ffmpeg/trunk
* reverse remainder of the failed attempt to optimize *state=c->mps_state[s]Michael Niedermayer2006-10-09
| | | | Originally committed as revision 6609 to svn://svn.ffmpeg.org/ffmpeg/trunk
* optimize branchless C CABAC decoderMichael Niedermayer2006-10-09
| | | | Originally committed as revision 6607 to svn://svn.ffmpeg.org/ffmpeg/trunk
* decrease ff_h264_norm_shift[] sizeMichael Niedermayer2006-10-09
| | | | Originally committed as revision 6596 to svn://svn.ffmpeg.org/ffmpeg/trunk
* branchless renormalization (1% faster get_cabac) old branchless ↵Michael Niedermayer2006-10-08
| | | | | | renormalization wasnt faster because gcc was scared of the shift variable (missusing bit variable now) Originally committed as revision 6587 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 5% faster get_cabac()Michael Niedermayer2006-10-08
| | | | Originally committed as revision 6586 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun2006-10-07
| | | | | | and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update licensing information: The FSF changed postal address.Diego Biurrun2006-01-12
| | | | Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: Remove all trailing whitespace.Diego Biurrun2005-12-17
| | | | Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fixing selftestMichael Niedermayer2005-01-11
| | | | Originally committed as revision 3820 to svn://svn.ffmpeg.org/ffmpeg/trunk
* common.c -> bitstream.c (and the single non bitstream func -> utils.c)Michael Niedermayer2004-12-29
| | | | | | common.h -> common.h/bitstream.h Originally committed as revision 3777 to svn://svn.ffmpeg.org/ffmpeg/trunk
* optimizationMichael Niedermayer2004-10-26
| | | | Originally committed as revision 3639 to svn://svn.ffmpeg.org/ffmpeg/trunk
* overread fixMichael Niedermayer2004-07-08
| | | | Originally committed as revision 3294 to svn://svn.ffmpeg.org/ffmpeg/trunk
* some of the warning fixes by (Michael Roitzsch <mroi at users dot ↵Michael Niedermayer2004-05-18
| | | | | | sourceforge dot net>) Originally committed as revision 3140 to svn://svn.ffmpeg.org/ffmpeg/trunk