summaryrefslogtreecommitdiff
path: root/libavcodec/bitstream.h
Commit message (Collapse)AuthorAge
* avcodec: add multi vlc readerPaul B Mahol2023-09-07
| | | | | | Heavily based and inspired by Christophe's cache branches. Co-Authored-by: Christophe Gisquet
* lavc/bitstream: avoid UB in bits_{read,peek}_signed(0)Anton Khirnov2023-01-18
| | | | | | | | | | bits_*_signed(0) will currently invoke an undefined shift by 8 * sizeof(int). Add bits_*_signed_nz() that only works for n>0, analogous to bits_read_nz(). Add an explicit check for n=0 in bits_*_signed(). Found-by: James Almer
* lavc/bitstream: templatize for BE/LEAnton Khirnov2023-01-06
| | | | Allows using both BE and LE bitstream readers in the same file.
* lavc: add standalone cached bitstream readerAlexandra Hájková2023-01-06
| | | | | | | | | | | | | | | | | | | | The cached bitstream reader was originally written by Alexandra Hájková for Libav, with significant input from Kostya Shishkov and Luca Barbato. It was then committed to FFmpeg in ca079b09549, by merging it with the implementation of the current bitstream reader. This merge makes the code of get_bits.h significantly harder to read, since it now contains two different bitstream readers interleaved with #ifdefs. Additionally, the code was committed without proper authorship attribution. This commit re-adds the cached bitstream reader as a standalone header, as it was originally developed. It will be made useful in following commits. Integration by Anton Khirnov. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* 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
* Document the 'size' parameter of set_put_bits_buffer_size().Stefano Sabatini2009-04-11
| | | | Originally committed as revision 18448 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Document ff_put_string().Stefano Sabatini2009-04-11
| | | | Originally committed as revision 18447 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename the 'put_zero' parameter of ff_put_string() toStefano Sabatini2009-04-11
| | | | | | 'terminate_string'. Originally committed as revision 18442 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add documentation for skip_put_bytes().Stefano Sabatini2009-04-11
| | | | Originally committed as revision 18441 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Doxygenate ff_copy_bits().Stefano Sabatini2009-04-11
| | | | Originally committed as revision 18440 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize declaration for the two variants of put_bits().Stefano Sabatini2009-04-11
| | | | Originally committed as revision 18439 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Clarify documentation for put_bits_count().Stefano Sabatini2009-04-11
| | | | Originally committed as revision 18432 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Document align_put_bits().Stefano Sabatini2009-04-10
| | | | Originally committed as revision 18427 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Doxygenate flush_put_bits() documentation.Stefano Sabatini2009-04-10
| | | | Originally committed as revision 18426 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Doxygenate put_bits_count() documentation.Stefano Sabatini2009-04-10
| | | | Originally committed as revision 18425 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Doxygenate init_put_bits().Stefano Sabatini2009-04-10
| | | | Originally committed as revision 18423 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a notice telling that the behavior of skip_put_bits() is undefinedStefano Sabatini2009-03-31
| | | | | | if n is 0. Originally committed as revision 18285 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a get_sbits_long() function.Justin Ruggles2009-03-03
| | | | Originally committed as revision 17740 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify show_bits_long and copy the GetBitsContext around only once instead ↵Reimar Döffinger2009-03-02
| | | | | | of twice. Originally committed as revision 17736 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add size_in_bits to PutBitContextMichael Niedermayer2009-02-05
| | | | Originally committed as revision 17006 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 AV_WL32/AV_WB32 in bitstream.hReimar Döffinger2009-01-25
| | | | Originally committed as revision 16778 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace UNALIGNED_STORES_ARE_BAD with !HAVE_FAST_UNALIGNEDMåns Rullgård2008-12-27
| | | | Originally committed as revision 16364 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ARM: replace "armv4l" with "arm"Måns Rullgård2008-12-17
| | | | Originally committed as revision 16179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Convert asm keyword into __asm__.Diego Pettenò2008-10-16
| | | | | | | | | | | | | Neither the asm() nor the __asm__() keyword is part of the C99 standard, but while GCC accepts the former in C89 syntax, it is not accepted in C99 unless GNU extensions are turned on (with -fasm). The latter form is accepted in any syntax as an extension (without requiring further command-line options). Sun Studio C99 compiler also does not accept asm() while accepting __asm__(), albeit reporting warnings that it's not valid C99 syntax. Originally committed as revision 15627 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
* Fix typo.Stefano Sabatini2008-08-29
| | | | Originally committed as revision 15034 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Little-endian bitstream writerBartlomiej Wolowiec2008-08-25
| | | | Originally committed as revision 14965 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove dead code in bitstream.hMåns Rullgård2008-07-15
| | | | Originally committed as revision 14238 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
* Bitstream: use AV_RB16() in LIBMPEG2_BITSTREAM_READERMåns Rullgård2008-07-13
| | | | | | This makes LIBMPEG2_BITSTREAM_READER_HACK redundant, so remove it. Originally committed as revision 14197 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Little helper macro to make the use of INIT_VLC_USE_NEW_STATIC easier.Michael Niedermayer2008-05-30
| | | | Originally committed as revision 13562 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make init_vlc* support proper static tables instead of this broken beyondMichael Niedermayer2008-05-30
| | | | | | imagination alloc_static() trash. Originally committed as revision 13561 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
* constMichael Niedermayer2008-02-04
| | | | Originally committed as revision 11846 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make decode210() common function.Kostya Shishkov2008-01-03
| | | | Originally committed as revision 11382 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
* move get_unary() to its own fileAurelien Jacobs2007-08-26
| | | | Originally committed as revision 10240 to svn://svn.ffmpeg.org/ffmpeg/trunk
* * getting rid of code duplicationRoman Shaposhnik2007-08-08
| | | | Originally committed as revision 9997 to svn://svn.ffmpeg.org/ffmpeg/trunk
* copy get_unary from vc1Alex Beregszaszi2007-08-08
| | | | Originally committed as revision 9994 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2007-08-04
| | | | Originally committed as revision 9894 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: misc typo fixesDiego Biurrun2007-07-28
| | | | Originally committed as revision 9815 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move ff_copy_bits to bitstream.cAurelien Jacobs2007-07-06
| | | | Originally committed as revision 9503 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
* misc spelling fixesDiego Biurrun2007-06-12
| | | | Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add init_vlc_sparse(). faster than init_vlc() if there are lots of holes in ↵Loren Merritt2007-05-24
| | | | | | the tables. Originally committed as revision 9117 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Blackfin is a strictly aligned processor.Marc Hoffman2007-04-21
| | | | | | | | Patch by Marc Hoffman mmh _at_ pleasantst.com Subject: [Ffmpeg-devel] PATCH Blackfin UNALIGNED_STORES_ARE_BAD in bitstream.h Date: Tue, 17 Apr 2007 06:12:02 -0400 Originally committed as revision 8777 to svn://svn.ffmpeg.org/ffmpeg/trunk
* typos/grammarDiego Biurrun2007-04-07
| | | | Originally committed as revision 8641 to svn://svn.ffmpeg.org/ffmpeg/trunk