summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
Commit message (Collapse)AuthorAge
* ac3dec: add a drc_scale private optionAnton Khirnov2011-07-10
| | | | | | Deprecate corresponding AVCodecContext option. This is the first test of decoder private options.
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-20
| | | | av_get_bits_per_sample_fmt() is deprecated.
* Add floating-point sample format support to the ac3, eac3, dca, aac, and vorbisJustin Ruggles2011-05-18
| | | | | | decoders. Based on patches by clsid2 in ffdshow-tryout.
* 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>
* ac3enc: Add codec-specific options for writing AC-3 metadata.Justin Ruggles2011-03-27
|
* Get audio_service_type for AC-3 based on bitstream mode in the AC-3 parserJustin Ruggles2011-03-25
| | | | and decoder, and vice-versa for the AC-3 encoder.
* Detect byte-swapped AC-3 and support decoding it directly.Reimar Döffinger2011-03-22
| | | | | | | 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-22
|
* Always copy input data for AC3 decoder.Justin Ruggles2011-03-22
| | | | | | | 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-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>
* 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>
* 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>
* Add ff_ prefix to ac3_common_init().Justin Ruggles2011-01-26
| | | | 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
* Fix compilation of AC3 decoder if E-AC3 decoder was disabled.Carl Eugen Hoyos2010-05-13
| | | | 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-22
| | | | | | frame_size. Originally committed as revision 22950 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all remaining occurrences of AVERROR_NOMEM withStefano Sabatini2010-04-03
| | | | | | | | | 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-30
| | | | | | 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-30
| | | | | | | 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-28
| | | | | | 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-24
| | | | 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-12
| | | | | | | | 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-14
| | | | 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-08
| | | | 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-01
| | | | | | Fixes Issue 1426. Originally committed as revision 20110 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: wrong operation in stereo rematrixingJustin Ruggles2009-09-30
| | | | 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-30
| | | | | | 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-30
| | | | 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-27
| | | | | | 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-27
| | | | Originally committed as revision 20053 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Rename some variables.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20052 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify coupling band loop.Justin Ruggles2009-09-27
| | | | Originally committed as revision 20051 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: reindent after last commitJustin Ruggles2009-08-05
| | | | Originally committed as revision 19589 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ac3dec: simplify zero-bit mantissa dithering by calculating itJustin Ruggles2009-08-05
| | | | | | | 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-05
| | | | Originally committed as revision 19587 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics after last commitJustin Ruggles2009-08-05
| | | | 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-05
| | | | | | | 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-05
| | | | | | 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-03
| | | | | | 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-23
| | | | 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-23
| | | | 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-29
| | | | 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-21
| | | | | | 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-19
| | | | | | in the build system and documentation that mark it as GPL. Originally committed as revision 18876 to svn://svn.ffmpeg.org/ffmpeg/trunk