summaryrefslogtreecommitdiff
path: root/libavcodec/bitstream.c
Commit message (Collapse)AuthorAge
* Move VLC and RL_VLC_ELEM structure definitions to a separate headerAlexandra Hájková2016-05-17
| | | | | | | Use the newly created vlc.h directly instead of including get_bits when needed. The VLC and RL_VLC_ELEM structures are independent from the bitreader. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavc: Replace av_dlog and tprintf with internal macrosVittorio Giovara2015-04-19
|
* avcodec: Don't anonymously typedef structsDiego Biurrun2015-02-14
|
* avcodec: Use av_reallocp where suitableAlexandra Khirnova2013-12-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* bitstream: Check the result of av_malloc()Diego Biurrun2013-10-15
|
* bitstream: forward error values and drop few abort()Luca Barbato2013-06-16
|
* bitstream: K&R formatting cosmeticsLuca Barbato2013-06-16
|
* miscellaneous typo fixesDiego Biurrun2012-12-21
|
* Move av_reverse table to libavcodecDiego Biurrun2012-10-12
| | | | It is only used in that library.
* Rename ff_put_string to avpriv_put_stringMartin Storsjö2012-09-09
| | | | | | | This allows using it from libavformat as well. This will be used by the RTP/JPEG depacketizer. Signed-off-by: Martin Storsjö <martin@martin.st>
* vlc/rl: Add ff_ prefix to the nonstatic symbolsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Remove extra newlines at EOFAlex Converse2012-01-27
|
* Fix a bunch of common typos.Diego Biurrun2011-12-11
|
* lavc: use avpriv_ prefix for ff_copy_bits and align_put_bits.Anton Khirnov2011-10-20
| | | | They are used in lavf.
* put_bits: remove ALT_BITSTREAM_WRITERMans Rullgard2011-07-02
| | | | | | The code for this variant does not compile. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ffv1: fix undefined behavior with insane widths.Michael Niedermayer2011-06-13
| | | | | | | The new tables is large enough to prevent this together with our image size checks. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* bitstream: Properly promote av_reverse values before shifting.Alex Converse2011-06-10
|
* Replace some av_log/printf + #ifdef combinations by av_dlog.Diego Biurrun2011-06-07
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* change a variable-length array to a malloc.Loren Merritt2010-05-12
| | | | Originally committed as revision 23103 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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
* indentLoren Merritt2010-03-29
| | | | Originally committed as revision 22716 to svn://svn.ffmpeg.org/ffmpeg/trunk
* optimize init_vlc().Loren Merritt2010-03-29
| | | | | | | | | | Reduce worst case time from O(N^2) to O(N*log(N)). Speedup average case by a factor of 10 in ffv2 (total decoding speed +4-25%), factor of 1.3 in ffvhuff (total +0.5%), factor of 1.8 in indeo5 (total +1%), factor of 1.1 in mjpeg (total +0.1%). Originally committed as revision 22715 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMåns Rullgård2010-02-21
| | | | Originally committed as revision 21940 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid negative shifts in build_table()Måns Rullgård2010-02-21
| | | | | | | | A shift by a negative amount has undefined behaviour. Even though the result of this shift is never used, the shift itself could cause an exception of some kind. Originally committed as revision 21939 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use more consistent / meaningful parameter names for theStefano Sabatini2009-11-29
| | | | | | ff_copy_bits() function. Originally committed as revision 20663 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove ff_realloc_static, it is no longer used and since it was declaredReimar Döffinger2009-09-24
| | | | | | | static there is no reason to wait for a major version bump, removing it does not change ABI in any way, not even the non-public one. Originally committed as revision 20023 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent.Reimar Döffinger2009-09-24
| | | | Originally committed as revision 20022 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove a piece of code left-over from the removed alloc'd static vlc table code.Reimar Döffinger2009-09-24
| | | | Originally committed as revision 20021 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Completely remove INIT_VLC_USE_STATIC, it is deprecated since ages andReimar Döffinger2009-09-24
| | | | | | finally no longer used anywhere. Originally committed as revision 20013 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix potentially unaligned accesses in ff_copy_bits()Måns Rullgård2009-07-01
| | | | | | | | | | | A pointer should never be assigned a value which may have less than the required alignment of the target type. Compilers may assume pointer values have the required alignment, and emit normal load/store instructions. Unaligned pointers should use a character type or compiler-specific type modifiers. Originally committed as revision 19318 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename pbBufPtr() to put_bits_ptr().Stefano Sabatini2009-04-13
| | | | | | | The new name is more readable and consistent with the FFmpeg naming style. Originally committed as revision 18497 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
* 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
* Remove deprecated functions and structures on next version bump.Diego Biurrun2009-03-21
| | | | Originally committed as revision 18110 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix unaligned access in ff_copy_bits()Måns Rullgård2009-03-09
| | | | Originally committed as revision 17921 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
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_Aurelien Jacobs2009-01-14
| | | | | | and remove all ENABLE_ definitions. Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move ff_log2_run to bitstream.c and reuse in ffv1.cStefan Gehrer2008-06-26
| | | | Originally committed as revision 13989 to svn://svn.ffmpeg.org/ffmpeg/trunk
* unusedMichael Niedermayer2008-05-30
| | | | Originally committed as revision 13572 to svn://svn.ffmpeg.org/ffmpeg/trunk
* As *_static are not deallocated anymore except on program terminationMichael Niedermayer2008-05-30
| | | | | | | we do not need to keep track of them anymore. Fixes CID117 RUN2 and various race conditions. Originally committed as revision 13571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* unusedMichael Niedermayer2008-05-30
| | | | Originally committed as revision 13570 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove non C code.Michael Niedermayer2008-05-30
| | | | Originally committed as revision 13569 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move *_static to bitstream.c which is the only file left which needsMichael Niedermayer2008-05-30
| | | | | | them. Originally committed as revision 13568 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
* Apply 'alloc_size' attribute to ff_realloc_static()Zuxy Meng2008-03-21
| | | | Originally committed as revision 12527 to svn://svn.ffmpeg.org/ffmpeg/trunk
* constMichael Niedermayer2008-02-04
| | | | Originally committed as revision 11846 to svn://svn.ffmpeg.org/ffmpeg/trunk