summaryrefslogtreecommitdiffstats
path: root/libavcodec/cabac.c
Commit message (Collapse)AuthorAgeFilesLines
* cabac: split cabac.h into declarations and function definitionsDiego Biurrun2012-01-121-0/+1
| | | | | | | | | | | 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-121-4/+4
|
* cabac: Remove ff_h264_lps_state array.Diego Biurrun2012-01-121-2/+0
| | | | 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-091-73/+0
| | | | | 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-071-0/+25
|
* cabac: drop unused and disabled get_cabac_u() / get_cabac_ueg() functionsDiego Biurrun2012-01-041-15/+0
|
* cabac: drop unused STRICT_LIMITS code branchDiego Biurrun2012-01-041-16/+0
|
* cabac: Move code only used in the cabac test program to cabac.c.Diego Biurrun2011-07-171-0/+134
|
* Remove unused structs and tables.Diego Biurrun2011-07-161-12/+1
|
* cabac: remove BRANCHLESS_CABAC_DECODER switchMans Rullgard2011-06-201-8/+0
| | | | | | 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-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | 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-131-1/+1
| | | | 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-101-3/+3
| | | | Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace random() usage in test programs by av_lfg_*().Diego Biurrun2009-03-201-2/+4
| | | | Originally committed as revision 18070 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | 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-091-1/+1
| | | | 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-231-1/+2
| | | | | | 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-201-2/+2
| | | | Originally committed as revision 11581 to svn://svn.ffmpeg.org/ffmpeg/trunk
* main() --> main(void)Diego Biurrun2007-11-231-1/+1
| | | | 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-191-0/+1
| | | | Originally committed as revision 9755 to svn://svn.ffmpeg.org/ffmpeg/trunk
* license header consistency cosmeticsDiego Biurrun2007-07-051-1/+0
| | | | Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Kill a warning with MSVCJindřich Makovička2006-10-181-3/+3
| | | | | | | | | 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-151-6/+29
| | | | | | 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-131-4/+7
| | | | 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-111-15/+16
| | | | | | 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-111-4/+6
| | | | | | accessing it) Originally committed as revision 6653 to svn://svn.ffmpeg.org/ffmpeg/trunk
* BRANCHLESS_CABAD --> BRANCHLESS_CABAC_DECODERDiego Biurrun2006-10-101-1/+1
| | | | 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-091-12/+12
| | | | Originally committed as revision 6609 to svn://svn.ffmpeg.org/ffmpeg/trunk
* optimize branchless C CABAC decoderMichael Niedermayer2006-10-091-0/+8
| | | | Originally committed as revision 6607 to svn://svn.ffmpeg.org/ffmpeg/trunk
* decrease ff_h264_norm_shift[] sizeMichael Niedermayer2006-10-091-14/+6
| | | | Originally committed as revision 6596 to svn://svn.ffmpeg.org/ffmpeg/trunk
* branchless renormalization (1% faster get_cabac) old branchless ↵Michael Niedermayer2006-10-081-9/+9
| | | | | | 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-081-8/+8
| | | | 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-071-4/+6
| | | | | | 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-121-1/+1
| | | | Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: Remove all trailing whitespace.Diego Biurrun2005-12-171-24/+24
| | | | Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fixing selftestMichael Niedermayer2005-01-111-7/+10
| | | | 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-291-0/+1
| | | | | | common.h -> common.h/bitstream.h Originally committed as revision 3777 to svn://svn.ffmpeg.org/ffmpeg/trunk
* optimizationMichael Niedermayer2004-10-261-6/+29
| | | | Originally committed as revision 3639 to svn://svn.ffmpeg.org/ffmpeg/trunk
* overread fixMichael Niedermayer2004-07-081-0/+1
| | | | 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-181-1/+1
| | | | | | sourceforge dot net>) Originally committed as revision 3140 to svn://svn.ffmpeg.org/ffmpeg/trunk
* h264 - progressive I frame CABAC support patch by (Laurent Aimar <fenrir at ↵Laurent Aimar2004-03-261-1/+1
| | | | | | via dot ecp dot fr>) Originally committed as revision 2932 to svn://svn.ffmpeg.org/ffmpeg/trunk
* removed the obsolete and unused parameters of init_put_bitsAlex Beregszaszi2003-10-121-1/+1
| | | | Originally committed as revision 2366 to svn://svn.ffmpeg.org/ffmpeg/trunk
* FFV1 codec (our very simple lossless intra only codec, compresses much ↵Michael Niedermayer2003-06-091-0/+1
| | | | | | better then huffyuv) Originally committed as revision 1939 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cleanupMichael Niedermayer2003-06-061-1/+1
| | | | Originally committed as revision 1932 to svn://svn.ffmpeg.org/ffmpeg/trunk
* (truncated) unary binerizationMichael Niedermayer2003-05-301-9/+35
| | | | | | unary k-th order exp golomb binarization Originally committed as revision 1920 to svn://svn.ffmpeg.org/ffmpeg/trunk
* CABACMichael Niedermayer2003-05-281-0/+179
note, this is just the CABAC (de)coder not complete h264-cabac support Originally committed as revision 1915 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud