summaryrefslogtreecommitdiff
path: root/libavcodec/ac3.c
Commit message (Collapse)AuthorAge
* ac3dec: fix processing of delta bit allocation information.Justin Ruggles2011-04-17
| | | | | The number of dba segments is the coded value + 1. The coupling dba offset starts at the first coupling band, not at zero.
* ac3: move ff_ac3_bit_alloc_calc_bap to ac3dspMans Rullgard2011-03-29
| | | | 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>
* Add ff_ prefix to ac3_common_init().Justin Ruggles2011-01-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3: Remove ff_ac3_critical_band_size_tab.Justin Ruggles2011-01-26
| | | | | | | It is only used to generate band_start_tab, which about the same size, at runtime, so it's simpler just to always hardcode band_start_tab. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move ff_ac3_critical_band_size_tab in ac3.c for non-hardcoded tables.Diego Elio Pettenò2011-01-25
| | | | | | | This symbol is only ever used to calculate the non-hardcoded tables, so only enable it in that case, and static to the source unit that uses it. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove unused ac3_parametric_bit_allocation function.Diego Elio Pettenò2011-01-25
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use AC3_MAX_COEFS instead of 256 in a couple places in ac3.cJustin Ruggles2010-12-14
| | | | Originally committed as revision 25968 to svn://svn.ffmpeg.org/ffmpeg/trunk
* define AC3_CRITICAL_BANDS and use it in the AC-3 encoder and decoder.Justin Ruggles2010-12-14
| | | | Originally committed as revision 25967 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 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
* Change code so it uses 2 adds instead of one FFABS.Reimar Döffinger2010-01-14
| | | | | | | | About 1% faster ff_ac3_bit_alloc_calc_psd on Intel Atom, overall speedup not measurable though. Should have a bigger effect on systems without cmov or with very slow cmov. Originally committed as revision 21214 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify AC-3 critical band end calculation (correctly this time).Justin Ruggles2009-11-03
| | | | Originally committed as revision 20438 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert r20050, which caused decoding errors with at least one valid AC-3 file.Justin Ruggles2009-11-03
| | | | Originally committed as revision 20437 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded table lookup.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20050 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Rename some variables to be more descriptive of their use.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20049 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move some variable declarations to inside of loops.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20048 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded variable.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20047 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Rename some variables to be more descriptive of their use.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20046 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove some unneeded variables.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Rename some variablesJustin Ruggles2009-09-27
| | | | Originally committed as revision 20044 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplify 2 lines into 1 using FFMINJustin Ruggles2009-09-27
| | | | Originally committed as revision 20043 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Do some basic pretty-printing.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20042 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify by combining increment with array access.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20041 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Rename some variables to be more descriptive of their use. Do someJustin Ruggles2009-09-27
| | | | | | pretty-printing as well. Originally committed as revision 20040 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move 2 variable declarations to inside of loop.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20039 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplify by combining increment with array accessJustin Ruggles2009-09-27
| | | | Originally committed as revision 20038 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded variableJustin Ruggles2009-09-27
| | | | Originally committed as revision 20037 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Hardcode AC-3 critical band tables when CONFIG_HARDCODED_TABLES is set.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20036 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
* 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
* cosmetics: alignment after last commitJustin Ruggles2008-12-08
| | | | Originally committed as revision 16035 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3: detect dba errors and prevent writing past end of arrayJustin Ruggles2008-12-08
| | | | Originally committed as revision 16034 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: make all references to AC-3 capitalized and hyphenatedJustin Ruggles2008-08-03
| | | | Originally committed as revision 14523 to svn://svn.ffmpeg.org/ffmpeg/trunk
* pass bap table to ff_ac3_bit_alloc_calc_bap()Justin Ruggles2008-06-07
| | | | Originally committed as revision 13694 to svn://svn.ffmpeg.org/ffmpeg/trunk
* prevent crash when dba params are invalidJustin Ruggles2008-06-03
| | | | Originally committed as revision 13653 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Apply 'cold' attribute to init/uninit functions in libavcodecZuxy Meng2008-03-21
| | | | Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: rename ac3 bit allocation variablesJustin Ruggles2007-12-09
| | | | Originally committed as revision 11194 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: rename ac3 tablesJustin Ruggles2007-12-09
| | | | Originally committed as revision 11193 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move some common values to ac3.h and utilize themJustin Ruggles2007-07-15
| | | | Originally committed as revision 9679 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move ac3 tables from a .h to a .cAurelien Jacobs2007-04-25
| | | | Originally committed as revision 8816 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move AC3 header parsing code together with the rest of the AC3 parsing code.Diego Biurrun2007-04-15
| | | | Originally committed as revision 8739 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix handling of special case for lowest snroffset. regressions are unaffected.Justin Ruggles2007-03-20
| | | | Originally committed as revision 8450 to svn://svn.ffmpeg.org/ffmpeg/trunk
* split ac3_parametric_bit_allocation into 3 separate functionsJustin Ruggles2007-03-18
| | | | Originally committed as revision 8442 to svn://svn.ffmpeg.org/ffmpeg/trunk
* hardcode ff_ac3_frame_sizes tableJustin Ruggles2007-03-18
| | | | Originally committed as revision 8435 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move AC-3 header parsing to ac3.cJustin Ruggles2007-03-11
| | | | Originally committed as revision 8323 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove redundancy in AC-3 parser by using common tables from ac3tab.hJustin Ruggles2007-03-11
| | | | Originally committed as revision 8318 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Create ac3.c which will be used for AC-3 common code.Justin Ruggles2007-03-09
Originally committed as revision 8305 to svn://svn.ffmpeg.org/ffmpeg/trunk