summaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3dec.c
Commit message (Collapse)AuthorAgeFilesLines
* Add floating-point sample format support to the ac3, eac3, dca, aac, and vorbisJustin Ruggles2011-05-181-6/+26
| | | | | | decoders. Based on patches by clsid2 in ffdshow-tryout.
* ac3dec: fix processing of delta bit allocation information.Justin Ruggles2011-04-171-2/+2
| | | | | 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-291-1/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3enc: Add codec-specific options for writing AC-3 metadata.Justin Ruggles2011-03-271-10/+0
|
* Get audio_service_type for AC-3 based on bitstream mode in the AC-3 parserJustin Ruggles2011-03-251-0/+5
| | | | and decoder, and vice-versa for the AC-3 encoder.
* Detect byte-swapped AC-3 and support decoding it directly.Reimar Döffinger2011-03-221-0/+5
| | | | | | | This allows the AC-3 decoder to be used directly with RealMedia decoders that unlike the libavformat one do not byte-swap automatically. Since the new code is only used in case we would fail directly otherwise there should be no risk for regressions.
* cosmetics: indentationJustin Ruggles2011-03-221-3/+3
|
* Always copy input data for AC3 decoder.Justin Ruggles2011-03-221-7/+2
| | | | | | | Depending on error_recognition is not correct, low values do certainly not mean it is ok to crash. Based on a patch by Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* Move ff_kbd_window_init() to a separate fileMans Rullgard2011-03-191-0/+1
| | | | | | | 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-191-3/+3
| | | | | | | 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-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Separate format conversion DSP functions from DSPContext.Justin Ruggles2011-02-021-2/+3
| | | | | | | 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-311-2/+2
| | | | | | | | DSPContext.vector_fmul_window() DCADSPContext.lfe_fir() SynthFilterContext.synth_filter_float() Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: indentation and spacingJustin Ruggles2011-01-281-2/+2
|
* Remove the add bias hack for the C version of DSPContext.float_to_int16_*().Justin Ruggles2011-01-281-11/+2
|
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-2/+2
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to ac3_common_init().Justin Ruggles2011-01-261-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-1/+1
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix compilation of AC3 decoder if E-AC3 decoder was disabled.Carl Eugen Hoyos2010-05-131-1/+1
| | | | Originally committed as revision 23131 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: return smaller of buf_size and frame_size instead of always returningJustin Ruggles2010-04-221-1/+1
| | | | | | frame_size. Originally committed as revision 22950 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all remaining occurrences of AVERROR_NOMEM withStefano Sabatini2010-04-031-1/+1
| | | | | | | | | AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-2/+2
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add spectral extension to the E-AC-3 decoder.Carl Eugen Hoyos2010-03-301-10/+109
| | | | | | | Original patch by Justin, updated and resubmitted by Christophe Gisquet, christophe D gisquet A gmail Originally committed as revision 22734 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify error handling by processing header errors separate from CRC andJustin Ruggles2010-01-281-15/+13
| | | | | | buffer size vs. frame size errors. Originally committed as revision 21519 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only check frame size if the header is valid.Justin Ruggles2010-01-241-1/+1
| | | | Originally committed as revision 21439 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use MULH instead of 64x64 multiplication, around 5% overall speedup on Intel ↵Reimar Döffinger2010-01-121-3/+2
| | | | | | | | Atom. Patch by myself and Yuriy Kaminskiy [yumkam mail ru] Originally committed as revision 21175 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: apply dynamic range compression to correct channels in dual-mono mode.Justin Ruggles2009-11-141-1/+1
| | | | Originally committed as revision 20533 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: revert r20089. The change was just wrong. 10l for me.Justin Ruggles2009-11-081-2/+1
| | | | Originally committed as revision 20473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change an error to a warning to support broken AC-3 files known to exist.Justin Ruggles2009-10-011-2/+2
| | | | | | Fixes Issue 1426. Originally committed as revision 20110 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: wrong operation in stereo rematrixingJustin Ruggles2009-09-301-1/+1
| | | | Originally committed as revision 20106 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify stereo rematrixing by only using one temporary variable. It is alsoJustin Ruggles2009-09-301-5/+3
| | | | | | about 1.8% faster on my system. Originally committed as revision 20090 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove unneeded assignment in inner loop. rematrixing bands are contiguous.Justin Ruggles2009-09-301-1/+2
| | | | Originally committed as revision 20089 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rearrange loop structure for approx. 35-50% faster calc_transform_coeffs_cpl()Justin Ruggles2009-09-271-6/+11
| | | | | | depending on content. Originally committed as revision 20055 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move variable declaration to inside of loop.Justin Ruggles2009-09-271-2/+2
| | | | Originally committed as revision 20053 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Rename some variables.Justin Ruggles2009-09-271-12/+12
| | | | Originally committed as revision 20052 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify coupling band loop.Justin Ruggles2009-09-271-1/+2
| | | | Originally committed as revision 20051 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: reindent after last commitJustin Ruggles2009-08-051-1/+1
| | | | Originally committed as revision 19589 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: simplify zero-bit mantissa dithering by calculating itJustin Ruggles2009-08-051-21/+10
| | | | | | | conditionally during mantissa decoding, then only removing it from the coupling range for coupled channels which do not use dithering. Originally committed as revision 19588 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentation and line wrapJustin Ruggles2009-08-051-6/+7
| | | | Originally committed as revision 19587 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics after last commitJustin Ruggles2009-08-051-4/+2
| | | | Originally committed as revision 19586 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Modify decode_band_structure() so that the actual band structure is onlyJustin Ruggles2009-08-051-8/+10
| | | | | | | used within the function. This removes the need to have the coupling band structure stored in the AC3DecodeContext. Originally committed as revision 19585 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use coupling band sizes instead of coupling band structure whenJustin Ruggles2009-08-051-9/+5
| | | | | | calculating coupling transform coefficients. Originally committed as revision 19584 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: add more detailed information to the documentation forJustin Ruggles2009-08-031-0/+4
| | | | | | decode_band_structure(). Originally committed as revision 19577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* refactoring: properly separate AC-3 and E-AC-3 codeDiego Biurrun2009-07-231-2/+5
| | | | Originally committed as revision 19501 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure that eac3_decoder only gets enabled when CONFIG_EAC3_DECODER is set.Diego Biurrun2009-07-231-0/+2
| | | | Originally committed as revision 19500 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename ff_log_missing_feature() to av_log_missing_feature().Ronald S. Bultje2009-06-291-2/+2
| | | | Originally committed as revision 19294 to svn://svn.ffmpeg.org/ffmpeg/trunk
* eac3dec: revert commit r18860. keep the AHT IDCT 24-bit. will make AHT GAQJustin Ruggles2009-05-211-1/+1
| | | | | | dequantization 24-bit in a separate commit. Originally committed as revision 18887 to svn://svn.ffmpeg.org/ffmpeg/trunk
* The AC-3 decoder is now LGPL. Exchange the license header and change referencesDiego Biurrun2009-05-191-9/+4
| | | | | | in the build system and documentation that mark it as GPL. Originally committed as revision 18876 to svn://svn.ffmpeg.org/ffmpeg/trunk
* LGPL version of ac3_decode_transform_coeffs_ch, ~12.4% faster.Jason Garrett-Glaser2009-05-191-55/+54
| | | | Originally committed as revision 18875 to svn://svn.ffmpeg.org/ffmpeg/trunk
* eac3dec: use 16-bit pre-mantissas instead of 24-bit in AHT decoding. it isJustin Ruggles2009-05-171-1/+1
| | | | | | simpler and also fixes a bug in GAQ dequantization. Originally committed as revision 18860 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud