summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.c
Commit message (Collapse)AuthorAge
...
* aacdec: Use float instead of int16_t for ltp_state to avoid needless rounding.Justin Ruggles2011-05-15
|
* aacdec: remove sf_scale and sf_offset.Alex Converse2011-04-27
| | | | | | | Instead, scalefactors are adjusted by the offset amount, removing the need for sf_scale, and the MDCT scales are adjusted to compensate for the higher scalefactors. Floating-point output will be handled by modifying the MDCT scales.
* aacdec: use a scale of 2 in the LTP MDCT rather than doubling the coefficientJustin Ruggles2011-04-27
| | | | table values from the spec.
* Define POW_SF2_ZERO in aac.h and use for ff_aac_pow2sf_tabp[] offsets insteadAlex Converse2011-04-27
| | | | of hardcoding 200 everywhere.
* Large intensity stereo and PNS indices are legal. Clip them instead ofAlex Converse2011-04-27
| | | | | | | erroring out. A magnitude of 100 corresponds to 2^25 so the will most likely result in clipped output anyway. None of the conformance streams fall in the range that need to be clipped.
* Add some debug log messages to AAC extradataAlex Converse2011-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Wed, Apr 20, 2011 at 11:39 AM, Justin Ruggles <justin.ruggles@gmail.com> wrote: > On 04/20/2011 02:26 PM, Alex Converse wrote: > >> --- >>  libavcodec/aacdec.c |   10 +++++++++- >>  1 files changed, 9 insertions(+), 1 deletions(-) >> >> >> >> 0002-Add-some-Debug-log-messages-to-AAC-extradata.patch >> >> >> diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c >> index c9761a1..3ec274f 100644 >> --- a/libavcodec/aacdec.c >> +++ b/libavcodec/aacdec.c >> @@ -79,7 +79,6 @@ >>             Parametric Stereo. >>   */ >> >> - >>  #include "avcodec.h" >>  #include "internal.h" >>  #include "get_bits.h" > > > stray whitespace change > oops, fixed >From 94e8d0eea77480630f84368c97646cabc0f50628 Mon Sep 17 00:00:00 2001 From: Alex Converse <aconverse@google.com> Date: Wed, 20 Apr 2011 11:23:34 -0700 Subject: [PATCH] Add some debug log messages to AAC extradata MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1" This is a multi-part message in MIME format. --------------1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit
* aacdec: indentation cosmeticsYoung Han Lee2011-04-22
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Convert some undefined 1<<31 shifts into 1U<<31.Alex Converse2011-04-11
| | | | | | | | | | | According to ISO 9899:1999 S 6.5.7/4: The result of E1 << E2 is E1 left-shifted E2 bit positions; vacated bits are filled with zeros. If E1 has an unsigned type, the value of the result is E1× 2^E2, reduced modulo one more than the maximum value representable in the result type. If E1 has a signed type and nonnegative value, and E1× 2^E2 is representable in the result type, then that is the resulting value; otherwise, the behavior is undefined.
* Revert "aac_latm_dec: use aac context and aac m4ac"Janne Grunau2011-04-05
| | | | | This reverts commit 36864ac3540445c513484017aa9927e942fac24a since it breaks LATM decoding in ffplay.
* Move sine windows to a separate fileMans Rullgard2011-03-20
| | | | | | | These windows do not really belong in fft/mdct files and were easily confused with the similarly named tables used by rdft. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move ff_kbd_window_init() to a separate fileMans Rullgard2011-03-19
| | | | | | | This function is not tightly coupled to mdct, and it's in the way of making a fixed-point mdct implementation. Signed-off-by: Mans Rullgard <mans@mansr.com>
* fft: remove inline wrappers for function pointersMans Rullgard2011-03-19
| | | | | | | This removes the rather pointless wrappers (one not even inline) for calling the fft_calc and related function pointers. 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>
* aac_latm_dec: use aac context and aac m4acThadeu Lima de Souza Cascardo2011-03-07
| | | | | | | | | | | When decoding latm config, use the corresponding aac context and its m4ac instead of using NULL and a local variable. This fixes decoding of audio in MPEG TS from SBTVD (the Brazillian Digital TV Sytem), when there is no extradata. This is the case when using the decoder with gst-ffmpeg and a GStreamer mpegts demuxer. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* aacdec: Reduce the size of buf_mdct.Young Han Lee2011-02-21
| | | | | It was doubled in size for the LTP implementation. This brings it back down to its original size.
* aacdec: dsputilize the scalar multiplication in intensity stereoYoung Han Lee2011-02-19
|
* aacdec: Implement LTP support.Young Han Lee2011-02-14
| | | | Ported from gsoc svn.
* Replace remaining occurrences of CODEC_TYPE_* with AVMEDIA_TYPE*Anton Khirnov2011-02-03
| | | | | | Tested to compile with lavc major bump. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Separate format conversion DSP functions from DSPContext.Justin Ruggles2011-02-02
| | | | | | | This will be beneficial for use with the audio conversion API without requiring it to depend on all of dsputil. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove unneeded add bias from 3 functions.Justin Ruggles2011-01-31
| | | | | | | | DSPContext.vector_fmul_window() DCADSPContext.lfe_fir() SynthFilterContext.synth_filter_float() Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacdec: Convert some loop copies into memcpy()s.Alex Converse2011-01-28
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: indentation and spacingJustin Ruggles2011-01-28
|
* Remove the add bias hack for the C version of DSPContext.float_to_int16_*().Justin Ruggles2011-01-28
|
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove redundant checks against MIN_CACHE_BITSMans Rullgard2011-01-23
| | | | | | | With the removal of the libmpeg2 bitstream reader, MIN_CACHE_BITS is always >= 25, so tests against smaller values can be removed. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-12
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aaclatm: Eliminate dummy packets due to muxlength calculation.Alex Converse2010-11-07
| | | | | | | | | | Muxlength does not include the 3 bytes of AudioSyncStream() before the AudioMuxElement(). If these three bytes are not accounted for the last three bytes of the LATM packet are sent back to the decoder again. Fixes issue244/mux2.share.ts Originally committed as revision 25685 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: consume the audio specific config during LATM parsingJanne Grunau2010-11-04
| | | | | | | Spotted by Alex after Carl Eugen found errors some samples. There no errors or noticeable artifacts in the samples I used during development. Originally committed as revision 25676 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: change type of data in decode_audio_specific_config parametersJanne Grunau2010-11-02
| | | | | | AVCodecContext.extradata is uint8_t*, silence a warning Originally committed as revision 25644 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add single stream LATM/LOAS decoderJanne Grunau2010-11-02
| | | | | | | The decoder is just a wrapper around the AAC decoder. based on patch by Paul Kendall { paul <ät> kcbbs gen nz } Originally committed as revision 25642 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: pass avctx as logging context for decode_audio_specific_configJanne Grunau2010-11-02
| | | | | | | | Use avctx in all called functions. This allows passing a NULL AACContext for LATM since the AACContext is only used in output_configure() which is skipped for LATM parsing. Originally committed as revision 25641 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: refactor the actual aac decoding code into its own functionJanne Grunau2010-11-02
| | | | | | | | aac_decode_frame() remains as AVPacket handling a wrapper. The actual decoding function takes a GetBitContext as input and will be used be the AAC LATM decoder to avoid copying the unaligned AAC bitstream. Originally committed as revision 25640 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: return consumed bits in decode_audio_specific_configJanne Grunau2010-11-02
| | | | Originally committed as revision 25639 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: add MPEG4AudioConfig as parameter for decode_audio_specific_configJanne Grunau2010-11-02
| | | | | | | This will be used by the latm decoder to avoid AACContext changes during audio specific config parsing. Originally committed as revision 25638 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: Rework channel mapping compatibility hacks.Alex Converse2010-09-10
| | | | | | | | | | For a PCE based configuration map the channels solely based on tags. For an indexed configuration map the channels solely based on position. This works with all known exotic samples including al17, elem_id0, bad_concat, and lfe_is_sce. Originally committed as revision 25098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: Only load and write each predictor variable once.Alex Converse2010-07-24
| | | | | | This is slightly faster and opens the door for further optimization. Originally committed as revision 24475 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: 4% faster main profile decoding.Alex Converse2010-07-24
| | | | Originally committed as revision 24474 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: Eliminate the use of doubles in the MAIN predictor.Alex Converse2010-07-12
| | | | Originally committed as revision 24226 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: Eliminate the use of doubles in decode_cce().Alex Converse2010-07-12
| | | | Originally committed as revision 24225 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: Use a LUT to generate CCE scale.Alex Converse2010-07-12
| | | | Originally committed as revision 24224 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split the ADTS header decoder off of the ADTS parser.Alex Converse2010-07-12
| | | | | | | The AAC decoder and ADTS-to-ASC BSF both require the header decoder but not full parsing capabilities. Originally committed as revision 24217 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: Remove the warning about non-meaningful window transitions.Alex Converse2010-07-12
| | | | | | | | It created false positives on seeks and where the first frame is STOP or SHORT. It failed to warn in illegal SHORT->LONG transitions. In general it created much confusion and many junk bug reports from the users. Originally committed as revision 24214 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: remove checks for impossible error conditionsMåns Rullgård2010-07-07
| | | | Originally committed as revision 24097 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove non-existing stray arguments from Doxygen function documentation.Diego Biurrun2010-07-02
| | | | Originally committed as revision 23976 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aactab: Tablegenify ff_aac_pow2sf_tab.Alex Converse2010-06-23
| | | | Originally committed as revision 23740 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: cosmetics: (more) whitespaceAlex Converse2010-06-21
| | | | Originally committed as revision 23676 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: cosmetics: whitespaceAlex Converse2010-06-21
| | | | Originally committed as revision 23675 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: Factorize if (elem_type < TYPE_DSE).Alex Converse2010-06-21
| | | | Originally committed as revision 23674 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: Handle the first frame being empty case.Alex Converse2010-06-21
| | | | Originally committed as revision 23673 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add HE-AAC v2 support to the AAC decoder.Alex Converse2010-06-19
| | | | Originally committed as revision 23647 to svn://svn.ffmpeg.org/ffmpeg/trunk