summaryrefslogtreecommitdiff
path: root/libavcodec/dca.c
Commit message (Collapse)AuthorAge
* dca: set AVCodecContext frame_size for DTS audioJohn Stebbins2011-07-04
| | | | | | | | | | | Set the frame size when decoding DTS audio. This has the side effect of fixing the computation of timestamps for DTS-HD in compute_pkt_fields. Since frame_size is not currently set, the duration of a frame is being guessed based on the streams bitrate. But for DTS-HD, the bitrate currently used is the rate of the DTS core which is much different than the whole DTS-HD stream and leads to a wildly inaccurate frame duration estimate. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: fix some then/than typosDiego Biurrun2011-06-30
|
* 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.
* Remove unused variablesMans Rullgard2011-06-02
|
* 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.
* Add AVX FFT implementation.Vitor Sessak2011-04-26
| | | | Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Replace more FFmpeg instances by Libav or ffmpeg.Diego Biurrun2011-04-23
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: use EXT_AUDIO_ID field to determine core extensionsAnssi Hannula2011-02-24
| | | | | | | | | This avoids the core substream extensions scan when the EXT_AUDIO_ID field indicates no extensions or only unsupported extensions. The scan is done only if the value of EXT_AUDIO_ID is unknown or indicates a present XCh extension which we can decode. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Replace remaining occurrences of deprecated CH_* with AV_CH_*Anton Khirnov2011-02-06
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.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>
* dca: avoid C99 declaration in for() expressionGianluigi Tiesi2011-02-01
| | | | 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>
* dca: add profile namesAnssi Hannula2011-01-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: consider a stream with XXCh/X96 in ExSS as DTS-HD HRAAnssi Hannula2011-01-21
| | | | | | | | | | | DTS-HD HRA streams do not always have an XBR extension in the extension substream. Instead they can have only XXCh and X96 extensions in there and still be considered DTS-HD HRA. This is also confirmed with Onkyo TX-SR607 receiver which recognizes such a stream as HiRes Audio. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: reindentJustin Ruggles2011-01-18
|
* Add check for changing number of channels in DCA.Daniel Kang2011-01-18
| | | | Fixes issue 2505.
* Fix reading over the end of the allocated buffer.Anssi Hannula2011-01-09
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26291 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export dca profile information.Anssi Hannula2011-01-06
| | | | | | Patch by Anssi Hannula anssi d hannula a iki d fi Originally committed as revision 26250 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Verify FSIZE96 when encountering X96 sync code.Anssi Hannula2011-01-06
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26249 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use the new libavcore audio channel API.Stefano Sabatini2010-11-21
| | | | | | | This also allows to remove a linking dependency of libavfilter on libavcodec. Originally committed as revision 25789 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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
* Add the CODEC_CAP_CHANNEL_CONF capability code and addBenjamin Larsson2010-10-02
| | | | | | | | | that flag to the dca codec. This capability when set will make sure the codec will initialize the channel configuration instead of trusting the container. This fixes issue 2137 and issue 850. Originally committed as revision 25320 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dca: fix dynrange coefficient in xchNick Brereton2010-07-31
| | | | | | Patch by Nick Brereton Originally committed as revision 24637 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: fix multichannel -> 2 channel downmix.Nick Brereton2010-07-27
| | | | | | Patch by Nick Brereton Originally committed as revision 24555 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Setup correct channel value when downmixing is required.Nick Brereton2010-07-27
| | | | | | Patch by Nick Brereton Originally committed as revision 24554 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use math constant instead of hardcoded rounded value for sqrt(0.5).Christophe Gisquet2010-07-12
| | | | | | Patch by Christophe.Gisquet (gmail) Originally committed as revision 24213 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix side channels when XCh extension is present.Nick Brereton2010-07-12
| | | | | | Patch by Nick Brereton $name AT n$surname DOT net Originally committed as revision 24210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move XCH parameters into context structure.Nick Brereton2010-07-12
| | | | | | Patch by Nick Brereton $name AT n$surname DOT net Originally committed as revision 24209 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-10
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: Occasionally a false XCH sync word can turn up after the core DTS data,Nick Brereton2010-07-05
| | | | | | | | | to verify the sync word the extension fsize field should be compared to the core data length field. Patch by nick.nbrereton@net Originally committed as revision 24054 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: *_bits() -> *_bits_long() where needed, half fix for broken bitstream ↵Benjamin Larsson2010-07-05
| | | | | | parsing Originally committed as revision 24051 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support DTS-ES extension (XCh) in dca: Cosmetic cleanupNick Brereton2010-06-22
| | | | | | Patch by Nick Brereton, nick at nbrereton dot net Originally committed as revision 23698 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support DTS-ES extension (XCh) in dca: add code to handle DTS-ES extensionNick Brereton2010-06-22
| | | | | | Patch by Nick Brereton, nick at nbrereton dot net Originally committed as revision 23697 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support DTS-ES extension (XCh) in dca: update and add channel mapping tables ↵Nick Brereton2010-06-22
| | | | | | | | for DTS-ES mappings Patch by Nick Brereton, nick at nbrereton dot net Originally committed as revision 23696 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support DTS-ES extension (XCh) in dca: move original code around to allow ↵Nick Brereton2010-06-22
| | | | | | | | reused by DTS-ES code Patch by Nick Brereton, nick at nbrereton dot net Originally committed as revision 23695 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support DTS-ES extension (XCh) in dca: move subband_samples into context ↵Nick Brereton2010-06-22
| | | | | | | | structure Patch by Nick Brereton, nick at nbrereton dot net Originally committed as revision 23694 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix typo in macro name.Nick Brereton2010-06-20
| | | | | | Patch by Nick Brereton, nick nbrereton net Originally committed as revision 23668 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
* DCA: indentMåns Rullgård2010-04-13
| | | | Originally committed as revision 22872 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: optimise dca_subsubframe()Måns Rullgård2010-04-13
| | | | | | 8% faster overall on Cortex-A8. Originally committed as revision 22871 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: break out lfe_interpolation_fir() inner loops to a functionMåns Rullgård2010-04-12
| | | | | | This enables SIMD optimisations of this function. Originally committed as revision 22861 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: use FASTDIV in decode_blockcode()Måns Rullgård2010-04-12
| | | | Originally committed as revision 22855 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: simplify lfe_interpolation_fir()Måns Rullgård2010-04-12
| | | | | | | | | | This reorders the lfe_fir tables, and drops the mirrored half, such that the loops in lfe_interpolation_fir() can be simplified. The new loop structure should be easier to implement with SIMD. Static data size is reduced by 2kB. 3% faster on Cortex-A8. Originally committed as revision 22849 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: use a local variable for loop boundaryMåns Rullgård2010-04-12
| | | | | | | This prevents gcc reloading the value from memory on each iteration of the loop. Originally committed as revision 22848 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DCA: use some type-punning in qmf_32_subbands()Måns Rullgård2010-04-12
| | | | Originally committed as revision 22847 to svn://svn.ffmpeg.org/ffmpeg/trunk