Mans Rullgard
a88ef93b4a
mpegaudiodec: group #includes more sanely
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
0d849074a4
mpegaudio: remove #if 0 blocks
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
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
Anton Khirnov
6f3d3eacf6
lavc: add missing audioconvert includes
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Kieran Kunhya
f4a86bc981
Set channel_layout for mpegaudio
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Clément Bœsch
437fb1c87d
Remove a few if (p) av_free(p) forms
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Luca Barbato
dfd2a005eb
Replace dprintf with av_dlog
...
dprintf clashes with POSIX.1-2008
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
Clément Bœsch
045b80e52d
Move ID3v1 skip from decoder to demuxer
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Clément Bœsch
c19a216af3
Handle ID3v1 tag while decoding mp[123] frames
...
patch by Clément Bœsch (ubitux at gmail)
Originally committed as revision 26297 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Alexander Kojevnikov
49d7ef282d
Show correct bitrate for VBR MP3 files.
...
Patch by Alexander Kojevnikov, alexander kojevnikov com
Originally committed as revision 24539 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
69b56ed7a6
Move ff_dct_init(context) out of if(one time init)
...
fixes calling a null pointer in issue658
Originally committed as revision 24081 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
59bebb11e0
mpegaudio: move compute_antialias_float() to mpegaudiodec_float.c
...
Also put compute_antialias_integer() under !CONFIG_FLOAT and change
forward declarations to declare only the relevant one of these.
Fixes warnings about unused functions and pointer type mismatches.
Originally committed as revision 23950 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
35d597d556
mpegaudio: call ff_mpegaudiodec_init_mmx() only from float decoder
...
The mmx code is floating-point only, and this function does not know
from which decoder it is called. Without this change, the integer
decoder only "works" because the size of the context struct is smaller
in this case, and the mmx init function writes the function pointer
outside the allocated context.
Fixes issue 2054.
Originally committed as revision 23949 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
956dae9e77
adu and mp3on4 functions are also needed by their respective float decoders
...
Originally committed as revision 23944 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 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
186d02150e
Use lookup table to avoid division in mp2 decoder
...
Originally committed as revision 23840 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
47ba787442
Move float-specific function to mpegaudiodec_float.c
...
Originally committed as revision 23743 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
9dac6dbb22
Remove pointless condition in #if
...
Originally committed as revision 23742 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
4233ce315c
Fix breakage in compilation with --disable-mpegaudio-hp introduced in
...
r23646.
Originally committed as revision 23656 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
Vitor Sessak
525ac37fd2
Optimize 1D DCT transform used in MP{1,2,3}. Makes also this function suitable
...
for being moved to the shared DCT framework in the future.
Originally committed as revision 23514 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
40914d97cc
1.0 and the resulting exactly representable value must be marked as float as well,
...
gcc is hopelessly trash.
Originally committed as revision 23119 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
0628f3e8cf
Cast constants to float to avoid gcc converting to and from
...
float<->double in every operation.
Originally committed as revision 23118 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
bfbdc58e52
Fix compilation with low precission mpeg audio decoding.
...
Originally committed as revision 23107 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
3b7117b73a
Do the same sign flip optimization to the low freq decoder.
...
as with the high freq 10-20 cycles faster
Originally committed as revision 23099 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
4b070a7a61
Factorize READ_FLIP_SIGN() optimization out
...
Originally committed as revision 23098 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
0c0d88aed5
Optimize decoding high freqs.
...
this is 10-20cpu cycles faster on duron (whole is about 50-60 cpu cylses)
I wonder why gcc isnt doing this on its own ...
Originally committed as revision 23097 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
fd9451c68f
Make lsf_sf_expand() 4 times faster.
...
Originally committed as revision 23096 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
Michael Niedermayer
86433cc6f5
Remove unused FRAC_RND() macro from mpegaudiodec.c.
...
Originally committed as revision 23086 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
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
Måns Rullgård
da0ac0ee64
Make some functions static
...
These functions are not used outside their respective files, and they
lack a prototype in a header.
Originally committed as revision 22259 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
Ronald S. Bultje
6e44ba1550
Use get_bits_left() instead of size_in_bits - get_bits_count().
...
Originally committed as revision 20543 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
eadaa00c6f
Add support for hardcoding the mpegaudiodec tables.
...
Reduces .bss size by about 194 kB.
Originally committed as revision 20400 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
Reimar Döffinger
a57afd2943
Partially revert r20233, exp2f is not available on some BSDs, DOS and AVR32.
...
Originally committed as revision 20240 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
686884da9d
Use cbrtf and exp2f instead of pow to calculate tables for MPEG audio decoding.
...
This hopefully is fast enough so that it is reasonable to use the same formula
directly instead of the table for CONFIG_SMALL.
Originally committed as revision 20233 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
45a014d75e
Set data_size to 0 to avoid having it uninitialized.
...
based on 31_mp3_outlen.patch by chrome.
Originally committed as revision 19988 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
f7304e99d4
Check data_size in decode_frame_mp3on4().
...
Originally committed as revision 19987 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
0d31833d04
check data_size in decode_frame()
...
Originally committed as revision 19986 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
83614f2df9
Reduce pointless verbosity after seeks in the MP3 decoder.
...
Originally committed as revision 19759 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
822d0a6e0c
Drop code that attempts to decode frames that are prefixed by junk.
...
Too often it ends up decoding random data into noise without detecting
it (for example after seeking of some MP3 data with oddly often occurring
startcode emulation).
Fixes issue1154.
Originally committed as revision 19302 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago