summaryrefslogtreecommitdiffstats
path: root/libavcodec/golomb.h
Commit message (Collapse)AuthorAgeFilesLines
* golomb: Simplify get_ur_golomb_jpeglsLuca Barbato2017-04-131-8/+4
| | | | | The loop always consumes the bit read and the new bitstream reader can read 0 bits just fine.
* golomb: Convert to the new bitstream readerDiego Biurrun2017-01-311-117/+73
|
* golomb: Replace __PRETTY_FUNCTION__ with __func__ for tracingDiego Biurrun2016-11-151-4/+4
| | | | The former is a GNU extension while the latter is C99.
* golomb: Drop disabled cruftDiego Biurrun2016-08-171-16/+0
|
* golomb: Give svq3_get_se_golomb()/svq3_get_ue_golomb() better namesDiego Biurrun2016-05-251-3/+3
|
* get_bits: Drop some TRACE-level debug codeDiego Biurrun2016-05-221-6/+0
| | | | It will not be provided by the new bit reader anyway.
* get_bits: Rename HAVE_BITS_REMAINING --> BITS_AVAILABLEDiego Biurrun2014-09-021-2/+2
| | | | The HAVE_ prefix is reserved for macros set by configure.
* golomb: Fix the implementation of get_se_golomb_longMartin Storsjö2014-03-301-2/+2
| | | | | | | | | | | | | | | 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-101-0/+12
| | | | Useful in libavformat mostly.
* golomb: reduce scope of a few variablesVittorio Giovara2013-10-241-12/+6
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* golomb: K&R formatting cosmeticsVittorio Giovara2013-10-231-136/+178
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* golomb: use unsigned arithmetics in svq3_get_ue_golomb()Janne Grunau2012-12-081-2/+3
| | | | | | | | | | 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-011-2/+0
|
* golomb: const correctness for get_ue()/get_se() function argumentsDiego Biurrun2012-09-271-2/+6
|
* golomb: check remaining bits during unary decoding in get_ur_golomb_jpegls()Justin Ruggles2012-06-121-1/+1
| | | | | | | | | 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-241-1/+1
| | | | | 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-161-1/+1
| | | | | 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-161-2/+2
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* h264: fix HRD parameters parsingMans Rullgard2011-10-111-0/+14
| | | | | | | | | | 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-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
* Make get_ur_golomb capable of reading 16 bit values.Lars Täuber2009-09-111-2/+6
| | | | | | 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-131-1/+1
| | | | 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-121-0/+1
| | | | | | 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-241-1/+1
| | | | | | | | 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-181-1/+2
| | | | Originally committed as revision 17429 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
* Add get_ue_golomb_31()Michael Niedermayer2008-12-231-0/+17
| | | | 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-161-1/+1
| | | | | | 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-151-1/+1
| | | | | | | 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-311-3/+3
| | | | | | | | | 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-131-1/+1
| | | | | | 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-171-3/+3
| | | | Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the Golomb decoder work for DiracMarco Gerards2007-08-151-11/+32
| | | | Originally committed as revision 10119 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
* add a comment to indicate which #endif belong to which #defineGuillaume Poirier2007-06-171-1/+1
| | | | Originally committed as revision 9356 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add multiple inclusion guards to headersMåns Rullgård2007-06-171-0/+5
| | | | Originally committed as revision 9345 to svn://svn.ffmpeg.org/ffmpeg/trunk
* include all prerequisites in header filesMåns Rullgård2007-06-161-0/+3
| | | | Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk
* handle limit>32 for set_ur_golomb_jpegls()Kostya Shishkov2006-10-221-0/+4
| | | | 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-071-4/+6
| | | | | | 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-241-0/+4
| | | | | | encoder Originally committed as revision 5514 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: tabs --> spaces, some prettyprintingDiego Biurrun2005-12-221-2/+2
| | | | Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: Remove all trailing whitespace.Diego Biurrun2005-12-171-42/+42
| | | | 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-121-1/+3
| | | | | | 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-261-0/+21
| | | | Originally committed as revision 3984 to svn://svn.ffmpeg.org/ffmpeg/trunk
* svq3_get_se_golomb() fixMichael Niedermayer2005-01-191-2/+5
| | | | 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-191-3/+3
| | | | Originally committed as revision 3848 to svn://svn.ffmpeg.org/ffmpeg/trunk
* get/set_sr_golomb() cleanupMichael Niedermayer2004-09-101-26/+3
| | | | Originally committed as revision 3451 to svn://svn.ffmpeg.org/ffmpeg/trunk
* new signed golomb routinesAlex Beregszaszi2004-09-081-5/+66
| | | | Originally committed as revision 3444 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud