Reimar Döffinger
c9f6eab184
Detect byte-swapped AC-3 (aka DNET) and support decoding it directly.
...
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.
The "buf" pointer needs to be overwritten since otherwise the CRC check fails.
14 years ago
Justin Ruggles
fe2ff6d247
Separate format conversion DSP functions from DSPContext.
...
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>
(cherry picked from commit c73d99e672
)
14 years ago
Justin Ruggles
c73d99e672
Separate format conversion DSP functions from DSPContext.
...
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>
14 years ago
Justin Ruggles
a8ae4e0e7b
Remove unneeded add bias from 3 functions.
...
DSPContext.vector_fmul_window()
DCADSPContext.lfe_fir()
SynthFilterContext.synth_filter_float()
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 80ba1ddb58
)
14 years ago
Justin Ruggles
80ba1ddb58
Remove unneeded add bias from 3 functions.
...
DSPContext.vector_fmul_window()
DCADSPContext.lfe_fir()
SynthFilterContext.synth_filter_float()
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
79ce107847
cosmetics: indentation and spacing
...
(cherry picked from commit b5ec638343
)
14 years ago
Justin Ruggles
733dbe7d18
Remove the add bias hack for the C version of DSPContext.float_to_int16_*().
...
(cherry picked from commit 9d06d7bce3
)
14 years ago
Diego Elio Pettenò
e7e2df27f8
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d36beb3f69
)
14 years ago
Justin Ruggles
dff80041e3
Add ff_ prefix to ac3_common_init().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4c57cde942
)
14 years ago
Justin Ruggles
b5ec638343
cosmetics: indentation and spacing
14 years ago
Justin Ruggles
9d06d7bce3
Remove the add bias hack for the C version of DSPContext.float_to_int16_*().
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
4c57cde942
Add ff_ prefix to ac3_common_init().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Carl Eugen Hoyos
eb0a4d3222
Fix compilation of AC3 decoder if E-AC3 decoder was disabled.
...
Originally committed as revision 23131 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
cc8538ff93
ac3dec: return smaller of buf_size and frame_size instead of always returning
...
frame_size.
Originally committed as revision 22950 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
2874c81cc8
Replace all remaining occurrences of AVERROR_NOMEM with
...
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
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
ca6e7708b4
Add spectral extension to the E-AC-3 decoder.
...
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
15 years ago
Justin Ruggles
2c2cdc0bfb
Simplify error handling by processing header errors separate from CRC and
...
buffer size vs. frame size errors.
Originally committed as revision 21519 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
008f872f61
Only check frame size if the header is valid.
...
Originally committed as revision 21439 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
1460c79097
Use MULH instead of 64x64 multiplication, around 5% overall speedup on Intel Atom.
...
Patch by myself and Yuriy Kaminskiy [yumkam mail ru]
Originally committed as revision 21175 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
7934cbb3be
ac3dec: apply dynamic range compression to correct channels in dual-mono mode.
...
Originally committed as revision 20533 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
187bc061e4
ac3dec: revert r20089. The change was just wrong. 10l for me.
...
Originally committed as revision 20473 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
535497f193
Change an error to a warning to support broken AC-3 files known to exist.
...
Fixes Issue 1426.
Originally committed as revision 20110 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
3fdccca091
10l: wrong operation in stereo rematrixing
...
Originally committed as revision 20106 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
2ed4439658
Simplify stereo rematrixing by only using one temporary variable. It is also
...
about 1.8% faster on my system.
Originally committed as revision 20090 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
16c91d2b23
remove unneeded assignment in inner loop. rematrixing bands are contiguous.
...
Originally committed as revision 20089 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
8b11b44ea7
Rearrange loop structure for approx. 35-50% faster calc_transform_coeffs_cpl()
...
depending on content.
Originally committed as revision 20055 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
3b6c5ad2f6
Move variable declaration to inside of loop.
...
Originally committed as revision 20053 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
025873738f
Cosmetics: Rename some variables.
...
Originally committed as revision 20052 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
b5f4639b13
Simplify coupling band loop.
...
Originally committed as revision 20051 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
a521aadfe8
cosmetics: reindent after last commit
...
Originally committed as revision 19589 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
25dcd1823c
ac3dec: simplify zero-bit mantissa dithering by calculating it
...
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
16 years ago
Justin Ruggles
b972c06a8f
cosmetics: indentation and line wrap
...
Originally committed as revision 19587 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
c36ea0600c
cosmetics after last commit
...
Originally committed as revision 19586 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
3f93716809
Modify decode_band_structure() so that the actual band structure is only
...
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
16 years ago
Justin Ruggles
603139022d
Use coupling band sizes instead of coupling band structure when
...
calculating coupling transform coefficients.
Originally committed as revision 19584 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
eb98cdfa8d
cosmetics: add more detailed information to the documentation for
...
decode_band_structure().
Originally committed as revision 19577 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
d15153244f
refactoring: properly separate AC-3 and E-AC-3 code
...
Originally committed as revision 19501 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
89547cfb36
Make sure that eac3_decoder only gets enabled when CONFIG_EAC3_DECODER is set.
...
Originally committed as revision 19500 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
ce863d7f36
Rename ff_log_missing_feature() to av_log_missing_feature().
...
Originally committed as revision 19294 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
ae04de316f
eac3dec: revert commit r18860. keep the AHT IDCT 24-bit. will make AHT GAQ
...
dequantization 24-bit in a separate commit.
Originally committed as revision 18887 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
1754fe4d30
The AC-3 decoder is now LGPL. Exchange the license header and change references
...
in the build system and documentation that mark it as GPL.
Originally committed as revision 18876 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jason Garrett-Glaser
d869a460db
LGPL version of ac3_decode_transform_coeffs_ch, ~12.4% faster.
...
Originally committed as revision 18875 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
9a7a71ed4c
eac3dec: use 16-bit pre-mantissas instead of 24-bit in AHT decoding. it is
...
simpler and also fixes a bug in GAQ dequantization.
Originally committed as revision 18860 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
1ac7d1ac50
ac3dec: fix coupling range check. the start subband must be less than
...
the end subband.
Originally committed as revision 18857 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Siarhei Siamashka
7d485f165f
Support for getting (i)MDCT output multiplied by a constant scaling factor.
...
Scaling (i)MDCT output has no runtime overhead and can be used to improve
performance of audio codecs. All the changes are only needed in
'ff_mdct_init' function and slow down initialization a bit.
Originally committed as revision 18855 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
778bc09bbe
cosmetics: line wrap and vertical alignment
...
Originally committed as revision 18752 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
396b73c7f7
ac3dec: Remove unneeded context variable, num_cpl_subbands. It is also
...
not needed for spectral extension or enhanced coupling since it is
redundant information, so I am removing it from decode_band_structure()
as well.
Originally committed as revision 18751 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago