summaryrefslogtreecommitdiff
path: root/libavcodec/aaccoder.c
Commit message (Collapse)AuthorAge
* aac: add headers needed for log2f()Michael Niedermayer2011-04-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aacenc: reduce the number of loop index variablesYoung Han Lee2011-04-04
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* aacenc: indentationYoung Han Lee2011-03-24
|
* aacenc: fix the side calculation in search_for_msYoung Han Lee2011-03-24
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacenc: cosmetics, indentation, and comment clarificationNathan Caldwell2011-03-16
| | | | | Correct bad indentation in aaccoder Clarify and correct comments in 3GPP psymodel, other cosmetics.
* aaccoder: Change FFMAX for allzero flag to OR bit operationYoung Han Lee2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* aacenc: TLS: Save maximum values for each swb in a table.Alex Converse2010-07-24
| | | | | | This gives an almost 20% speedup. Originally committed as revision 24484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: Remove some commented out code that slipped in.Alex Converse2010-07-24
| | | | Originally committed as revision 24483 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: TLS: Try to preserve some energy in each non-zero band.Alex Converse2010-07-24
| | | | | | | Reduce scalefactors in non-zero bands that underflow by twice as much as those in bands that just fail to hit psy targets. Originally committed as revision 24482 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Prevent premature termination of the two loop search.Alex Converse2010-07-24
| | | | Originally committed as revision 24476 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Favor log2f() and sqrtf() over log2() and sqrt().Alex Converse2010-07-24
| | | | Originally committed as revision 24473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Factorize some scalefactor utilities.Alex Converse2010-07-23
| | | | Originally committed as revision 24472 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Convert if () abort() to assert().Alex Converse2010-07-19
| | | | Originally committed as revision 24336 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: WhitespaceAlex Converse2010-07-19
| | | | Originally committed as revision 24333 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: Add a missing const.Alex Converse2010-07-16
| | | | Originally committed as revision 24274 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Template quantize_and_encode_band_cost().Alex Converse2010-07-16
| | | | Originally committed as revision 24273 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Fill in the estimated codebook for the final computed scalefactor in ↵Alex Converse2010-06-28
| | | | | | the TLS. Originally committed as revision 23869 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Remove an unnecessary division from the TLS.Alex Converse2010-05-28
| | | | Originally committed as revision 23368 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: whitespaceAlex Converse2010-05-28
| | | | Originally committed as revision 23367 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Remove unnecessary variables and scopes in the TLS.Alex Converse2010-05-28
| | | | Originally committed as revision 23366 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix declaration after statementAlex Converse2010-05-25
| | | | Originally committed as revision 23331 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Split find_max_val() from find_min_book() to eliminate duplicate ↵Alex Converse2010-05-25
| | | | | | searches. Originally committed as revision 23322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless costly inf checks from the trellis scalefactor search.Alex Converse2010-05-25
| | | | Originally committed as revision 23319 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Trellis over scalefactors using an estimated codebook rather than ↵Alex Converse2010-05-25
| | | | | | | | every codebook. The minimal codebook to encode the band without clipping is used (as is done in the TLS). Originally committed as revision 23318 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Only trellis over a column of 61 scalefactors (reduced from 256).Alex Converse2010-05-25
| | | | | | This still provides plenty of dynamic range, makes every move legal, and greatly reduces the search space. Originally committed as revision 23317 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Factor out find_min_book so it can be used by multiple coefficient ↵Alex Converse2010-05-25
| | | | | | coders. Originally committed as revision 23316 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fmaxf -> FFMAX to fix pre-C99 systemsAlex Converse2010-05-14
| | | | Originally committed as revision 23138 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Add a rate only trellis for codebook selection for the TLS.Alex Converse2010-05-14
| | | | Originally committed as revision 23136 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Use exact values when quantizing, not fuzzy values.Alex Converse2010-05-14
| | | | | | This requires us to code small escapes; we can't avoid it. Originally committed as revision 23135 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Use an estimated codebook for the TLS (two loop search).Alex Converse2010-05-14
| | | | Originally committed as revision 23134 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: store the result of clipping added in r23035Alex Converse2010-05-06
| | | | Originally committed as revision 23037 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the faac inspired quantizer search make sense for a slightly narrower ↵Alex Converse2010-05-06
| | | | | | definition of "make sense." Originally committed as revision 23035 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
* aacenc: Merge quantize_band_cost() with quantize_and_encode_band().Alex Converse2010-03-24
| | | | | | If these two functions aren't matched results may be unexpected. Originally committed as revision 22655 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Use preprocessor constants for trellis states and stages.Alex Converse2009-09-21
| | | | Originally committed as revision 19948 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Split paths in the scalefactor selection trellis into a 2-D array.Alex Converse2009-09-21
| | | | Originally committed as revision 19947 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Replace cbrt() with cbrtf() when the result is destined for floatAlex Converse2009-09-21
| | | | | | storage. Originally committed as revision 19946 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Multiple distortion by lambda after it's summed and not each individualAlex Converse2009-09-21
| | | | | | term before. Originally committed as revision 19945 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Reindent after r19943.Alex Converse2009-09-21
| | | | Originally committed as revision 19944 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Don't make unnecessary compares to the escape value in tight loops.Alex Converse2009-09-21
| | | | Originally committed as revision 19943 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Re-add search_for_ms to the coefficients encoders to silence warningsAlex Converse2009-08-27
| | | | Originally committed as revision 19733 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Be sure to increment our position in the coefficient array when skipping a zeroAlex Converse2009-07-22
| | | | | | band in the twoloop scalefactor search. Originally committed as revision 19480 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove an unused field from the BandCodingPath struct.Alex Converse2009-07-20
| | | | Originally committed as revision 19473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Actually use all the codebooks we are iterating over in the two-loop ↵Alex Converse2009-07-20
| | | | | | scalefactor search. Originally committed as revision 19472 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix an integer overflow in the AAC encoder.Alex Converse2009-07-20
| | | | Originally committed as revision 19470 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace pow(x, 0.75) with sqrtf(x * sqrtf(x)) for a 33% speedup.Alex Converse2009-07-17
| | | | Originally committed as revision 19459 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Dead code removal in the AAC encoder.Alex Converse2009-07-17
| | | | Originally committed as revision 19457 to svn://svn.ffmpeg.org/ffmpeg/trunk
* When calculating AAC quantized band cost, don't leave garbage in the bit countAlex Converse2009-07-16
| | | | | | for the 0 codebook. Originally committed as revision 19444 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change fminf/fmaxf to FFMIN/FFMAX to fix the build on broken operating systems.Alex Converse2009-07-09
| | | | Originally committed as revision 19391 to svn://svn.ffmpeg.org/ffmpeg/trunk