Michael Niedermayer
babb611d35
libavcodec/mpegaudio: change CONFIG_FLOAT to USE_FLOAT
...
The CONFIG_ name-space is set by configure, so its better to use a
different prefix here.
This also unifies the encoder & decoder define that is used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
571572fcdd
mp3dec: adjust IMDCT scaling to avoid overflows
...
Fixes ticket268
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
0199e00bc8
mpegaudio: move all header parsing to mpegaudiodecheader.[ch]
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
c2a16e44f8
mpegaudio: remove unused version of SAME_HEADER_MASK
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
c7bbc6cd7a
mpegaudio: merge two #if CONFIG_FLOAT blocks
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
918d0584a4
mpegaudio: move some struct definitions from mpegaudio.h
...
These structs are only used in mpegaudiodec.c, so move them there
and remove no longer needed #include lines from mpegaudio.h.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
c4f5c2d6f4
Move some mpegaudio functions to new mpegaudiodsp subsystem
...
This separation allows these functions to be used in a cleaner
fashion from other codecs (e.g. qdm2) and simplifies creating
optimised versions of them.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
4bac1bbc3b
mpegaudio: add _fixed suffix to some names
...
This adds a _fixed suffix to the fixed-point versions of things
with both float and fixed-point variants. This makes it more
consistent with other dual-implementation things, e.g. fft.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
bdefbf3e88
mpegaudio: move OUT_FMT macro to mpegaudiodec.c
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
92ea249d7d
mpegaudio: remove OUT_MIN/MAX macros
...
These macros are no longer needed after the s32 output was removed.
Change the relevant code to use av_clip_int16() instead of using
explicit limits.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Reimar Döffinger
3d929a607a
mpegaudio: remove frame_count variable and its only usage, it is always 0.
14 years ago
Mans Rullgard
6bb6fb05ba
mpegaudio: remove CONFIG_MPEGAUDIO_HP option
...
The low quality mode is off by default and never tested. The high
quality mode is also plenty fast enough.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
3a2e80ecbc
mpegaudio: remove CONFIG_AUDIO_NONSHORT
...
This fake option cannot be enabled by normal means, and the
floating-point decoder should provide the higher quality this
option presumably was intended for.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
0aded9484d
Move dct and rdft definitions to separate files
...
This leaves fft.h with only the core FFT and MDCT definitions
thus making it more managable.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
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
Vitor Sessak
060dd93000
Altivec-optimized mp{1,2,3} windowing
...
Originally committed as revision 23943 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
06d01188e9
More mp{1,2,3} 32-point DCT transform to our common DCT framework.
...
Should allow for future SIMD optimizations.
Originally committed as revision 23912 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
bc2b368215
SSE-optimized MP3 floating point windowing functions
...
Originally committed as revision 23750 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
4d49a5a785
Factorize the mpegaudio windowing code in a function and call it by a
...
function pointer. Should allow for ASM optimizations.
Originally committed as revision 23646 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
b91d46614d
float based mp1/mp2/mp3 decoders.
...
Originally committed as revision 23095 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
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
15 years ago
Måns Rullgård
84dc2d8afa
Remove DECLARE_ALIGNED_{8,16} macros
...
These macros are redundant. All uses are replaced with the generic
DECLARE_ALIGNED macro instead.
Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
c67278098d
Move array specifiers outside DECLARE_ALIGNED() invocations
...
Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
c902340599
Reduce stack memory allocation in MP3 decoder
...
Originally committed as revision 20451 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
9adcccde0c
mpegaudiodec, mpc and qdm2 all use the same mpa_synth window, so make
...
them use the same variable/global storage.
Saves 4 kB in .bss.
Originally committed as revision 20314 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
20e7c8ae0a
Remove some unnecessary alignment specifiers
...
None of these arrays are used in ways requiring extra alignment.
Originally committed as revision 19715 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Andreas Öman
cf92cec7d8
Avoid allocating MPADecodeContext on stack.
...
Instead move relevant fields into MPADecodeHeader and use it
where appropriate.
Originally committed as revision 16728 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
8b192330d5
explicitly disable CONFIG_AUDIO_NONSHORT
...
Originally committed as revision 16620 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
49cdad8d78
simplify: group all the AUDIO_NONSHORT parameters in the same place
...
Originally committed as revision 16602 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
0f6a659ddf
Replace #ifdef CONFIG_ preprocessor check by #if CONFIG_.
...
CONFIG_ changed semantics and is always defined now.
Originally committed as revision 16598 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
ad1eebe360
Use CONFIG_MPEGAUDIO_HP directly instead of USE_HIGHPRECISION indirection.
...
Originally committed as revision 16594 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
c96bd21227
Change mpeg audio parser so it only sets frame_size, channels and bit_rate
...
after it has a few valid frames.
Fixes issue762
Originally committed as revision 16259 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
047599a4ba
Rename error_resilience to error_recognition.
...
Originally committed as revision 15270 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
987903826b
Globally rename the header inclusion guard names.
...
Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.' to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_".
Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
5b21bdabe4
Add FFMPEG_ prefix to all multiple inclusion guards.
...
Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
c2d08dc0d7
move a couple of macros and structs to mpegaudio.h
...
Originally committed as revision 9343 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Aurelien Jacobs
08aa2c9bd2
remove dependency of mpeg audio encoder over mpeg audio decoder
...
Originally committed as revision 9082 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Aurelien Jacobs
ca6e50afc1
add a ff_ prefix to some mpegaudio funcs
...
Originally committed as revision 9081 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Aurelien Jacobs
4bd8e17c8d
loosen dependencies over mpegaudiodec
...
Originally committed as revision 9080 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Aurelien Jacobs
b57eed12da
move mp3_header_decompress bitstream filter in its own file
...
Originally committed as revision 9062 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Aurelien Jacobs
4991c0516d
move some common mpeg audio tables from mpegaudiodectab.h to mpegaudiodata.c
...
Originally committed as revision 9060 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
498c544ad2
dont set the sampling rate just because 1 mp3 packet header says so (fixes playback speed on some old mencoder generated avis which where then dumped to mp3)
...
Originally committed as revision 6837 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
b78e7197a8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
...
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
04d7f60143
Add official LGPL license headers to the files that were missing them.
...
Originally committed as revision 6219 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
bb270c0896
COSMETICS: tabs --> spaces, some prettyprinting
...
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
115329f160
COSMETICS: Remove all trailing whitespace.
...
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Roberto Togni
d9b1c197e5
QDM2 compatible decoder
...
Originally committed as revision 4649 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago