summaryrefslogtreecommitdiff
path: root/libavcodec/golomb.h
Commit message (Collapse)AuthorAge
* get_bits: Drop some TRACE-level debug codeDiego Biurrun2016-05-22
| | | | It will not be provided by the new bit reader anyway.
* get_bits: Rename HAVE_BITS_REMAINING --> BITS_AVAILABLEDiego Biurrun2014-09-02
| | | | The HAVE_ prefix is reserved for macros set by configure.
* golomb: Fix the implementation of get_se_golomb_longMartin Storsjö2014-03-30
| | | | | | | | | | | | | | | This was only used in hevc muxing code so far. This makes the return values match what get_se_golomb returns for the same bitstream reader instances. The logic for producing a signed golomb code out of an unsigned one was based on the corresponding code in get_se_golomb, which operated directly on the bitstream reader buffer - not on the equivalent return value from get_ue_golomb. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* golomb: Add a get_se_golomb_longLuca Barbato2014-03-10
| | | | Useful in libavformat mostly.
* golomb: reduce scope of a few variablesVittorio Giovara2013-10-24
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* golomb: K&R formatting cosmeticsVittorio Giovara2013-10-23
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* golomb: use unsigned arithmetics in svq3_get_ue_golomb()Janne Grunau2012-12-08
| | | | | | | | | | This prevents undefined behaviour of signed left shift if the coded value is larger than 2^31. Large values are most likely invalid and caused errors or by feeding random. Validate every use of svq3_get_ue_golomb() and changed the place there the return value was compared with negative numbers. dirac.c was clean, fixed rv30 and svq3.
* avcodec: Drop some silly commented-out av_log() invocationsDiego Biurrun2012-10-01
|
* golomb: const correctness for get_ue()/get_se() function argumentsDiego Biurrun2012-09-27
|
* golomb: check remaining bits during unary decoding in get_ur_golomb_jpegls()Justin Ruggles2012-06-12
| | | | | | | | | Fixes infinite loop in FLAC decoding in case of a truncated bitstream due to the safe bitstream reader returning 0's at the end. Fixes Bug 310. CC:libav-stable@libav.org
* golomb: use HAVE_BITS_REMAINING() macro to prevent infloop on EOF.Ronald S. Bultje2012-02-24
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* flac: fix infinite loops on all-zero input or end-of-stream.Ronald S. Bultje2012-02-16
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* golomb: avoid infinite loop on all-zero input (or end of buffer).Ronald S. Bultje2012-02-16
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* h264: fix HRD parameters parsingMans Rullgard2011-10-11
| | | | | | | | | | The bit_rate_value_minus1 and cpb_size_value_minus1 elements allow a wider range than get_ue_golomb() supports. This adds a get_ue_golomb_long() function supporting up to 31 leading zeros, which is the maximum for these syntax elements, and uses it in decode_hrd_parameters(). 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
* Make get_ur_golomb capable of reading 16 bit values.Lars Täuber2009-09-11
| | | | | | Patch by Lars Täuber: firstname taeuber gmx net Originally committed as revision 19821 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
* Split bitstream.h, put the bitstream writer stuff in the new fileStefano Sabatini2009-04-12
| | | | | | put_bits.h. Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix get_ur_golomb_jpegls() with A32_BITSTREAM_READERMåns Rullgård2009-02-24
| | | | | | | | If k==0, log==0 can indicate that the coded value uses more than MIN_CACHE_BITS bits. With MIN_CACHE_BITS==32, the fast branch is incorrectly taken in this case unless explicitly forbidden. Originally committed as revision 17550 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Clarify get_ue_golomb_31() behavior with >31.Michael Niedermayer2009-02-18
| | | | Originally committed as revision 17429 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
* Add get_ue_golomb_31()Michael Niedermayer2008-12-23
| | | | Originally committed as revision 16298 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix regression test failure caused by golomb limit not being consideredMichael Niedermayer2008-09-16
| | | | | | in r15334. Originally committed as revision 15338 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Correct the threshold of get_ur_golomb_jpegls() at which the optimizedMichael Niedermayer2008-09-15
| | | | | | | case is used. Fix issue245. Originally committed as revision 15334 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Globally rename the header inclusion guard names.Stefano Sabatini2008-08-31
| | | | | | | | | Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_". Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bitstream: move put_sbits() from flacenc.c to bitstream.h and use itRamiro Polla2008-07-13
| | | | | | throughout libavcodec. Originally committed as revision 14204 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add FFMPEG_ prefix to all multiple inclusion guards.Diego Biurrun2007-10-17
| | | | Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the Golomb decoder work for DiracMarco Gerards2007-08-15
| | | | Originally committed as revision 10119 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
* add a comment to indicate which #endif belong to which #defineGuillaume Poirier2007-06-17
| | | | Originally committed as revision 9356 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add multiple inclusion guards to headersMåns Rullgård2007-06-17
| | | | Originally committed as revision 9345 to svn://svn.ffmpeg.org/ffmpeg/trunk
* include all prerequisites in header filesMåns Rullgård2007-06-16
| | | | Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk
* handle limit>32 for set_ur_golomb_jpegls()Kostya Shishkov2006-10-22
| | | | Originally committed as revision 6754 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
* first rudimentary version of (Justin Ruggles jruggle earthlink net) flac ↵Michael Niedermayer2006-06-24
| | | | | | encoder Originally committed as revision 5514 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: tabs --> spaces, some prettyprintingDiego Biurrun2005-12-22
| | | | Originally committed as revision 4764 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
* set_se_golomb can only write 16bits, add a note about this (ok, maybe it's ↵Alex Beregszaszi2005-10-12
| | | | | | brain dead using it with more than 16bits, but..) Originally committed as revision 4635 to svn://svn.ffmpeg.org/ffmpeg/trunk
* shorten decoder by (Jeff Muizelaar <jrmuizel gmail com>)Michael Niedermayer2005-02-26
| | | | Originally committed as revision 3984 to svn://svn.ffmpeg.org/ffmpeg/trunk
* svq3_get_se_golomb() fixMichael Niedermayer2005-01-19
| | | | Originally committed as revision 3849 to svn://svn.ffmpeg.org/ffmpeg/trunk
* compile with TRACE define patch by (Loic <lll+ffmpeg m4x org>)Loïc Le Loarer2005-01-19
| | | | Originally committed as revision 3848 to svn://svn.ffmpeg.org/ffmpeg/trunk
* get/set_sr_golomb() cleanupMichael Niedermayer2004-09-10
| | | | Originally committed as revision 3451 to svn://svn.ffmpeg.org/ffmpeg/trunk
* new signed golomb routinesAlex Beregszaszi2004-09-08
| | | | Originally committed as revision 3444 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 1000l to the ffsvq3 author, our default bitstream reader is only guranteed ↵Michael Niedermayer2004-06-19
| | | | | | to be able to read 25bit at a time Originally committed as revision 3237 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flac fixes:Michael Niedermayer2004-02-18
| | | | | | | | | | | | | | | fix data types of residual&decoded fix twos complement bitfields fix utf8 (no, utf8 is not the same as the simple and compact uvlc used in nut) add truncated bitstream support, both ogg and flac demuxers in mplayer cvs provide incomplete frames, and furthermore it isnt possible to find frameboundaries in flac without decoding it completly add escape-less golomb rice decoder (=flac style golomb rice) (ultra efficient, the longest vlc code is just 2^32-1 bits) printf->av_log fix bps for non independant channels fix a few +-1 bugs fix sample order for independant channels fix data_size Originally committed as revision 2791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10lMichael Niedermayer2003-07-13
| | | | Originally committed as revision 2041 to svn://svn.ffmpeg.org/ffmpeg/trunk
* golomb rice code cleanup / simplify (~0.5% compression gain and slightly faster)Michael Niedermayer2003-07-13
| | | | | | jpegls style golomb rice coder Originally committed as revision 2040 to svn://svn.ffmpeg.org/ffmpeg/trunk
* golomb rice codesMichael Niedermayer2003-06-13
| | | | | | | | use gradients instead of prediction errors as context model store independant quantization tables for each point merge contexts with opposit sign Originally committed as revision 1957 to svn://svn.ffmpeg.org/ffmpeg/trunk