summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec.c
Commit message (Collapse)AuthorAge
* Show correct bitrate for VBR MP3 files.Alexander Kojevnikov2010-07-27
| | | | | | Patch by Alexander Kojevnikov, alexander kojevnikov com Originally committed as revision 24539 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ff_dct_init(context) out of if(one time init)Michael Niedermayer2010-07-07
| | | | | | fixes calling a null pointer in issue658 Originally committed as revision 24081 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mpegaudio: move compute_antialias_float() to mpegaudiodec_float.cMåns Rullgård2010-07-01
| | | | | | | | | 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
* mpegaudio: call ff_mpegaudiodec_init_mmx() only from float decoderMåns Rullgård2010-07-01
| | | | | | | | | | | | 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
* adu and mp3on4 functions are also needed by their respective float decodersAurelien Jacobs2010-07-01
| | | | Originally committed as revision 23944 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Altivec-optimized mp{1,2,3} windowingVitor Sessak2010-07-01
| | | | Originally committed as revision 23943 to svn://svn.ffmpeg.org/ffmpeg/trunk
* More mp{1,2,3} 32-point DCT transform to our common DCT framework.Vitor Sessak2010-06-30
| | | | | | Should allow for future SIMD optimizations. Originally committed as revision 23912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use lookup table to avoid division in mp2 decoderVitor Sessak2010-06-28
| | | | Originally committed as revision 23840 to svn://svn.ffmpeg.org/ffmpeg/trunk
* SSE-optimized MP3 floating point windowing functionsVitor Sessak2010-06-24
| | | | Originally committed as revision 23750 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move float-specific function to mpegaudiodec_float.cVitor Sessak2010-06-23
| | | | Originally committed as revision 23743 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove pointless condition in #ifVitor Sessak2010-06-23
| | | | Originally committed as revision 23742 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix breakage in compilation with --disable-mpegaudio-hp introduced inVitor Sessak2010-06-20
| | | | | | r23646. Originally committed as revision 23656 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize the mpegaudio windowing code in a function and call it by aVitor Sessak2010-06-19
| | | | | | function pointer. Should allow for ASM optimizations. Originally committed as revision 23646 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize 1D DCT transform used in MP{1,2,3}. Makes also this function suitableVitor Sessak2010-06-07
| | | | | | for being moved to the shared DCT framework in the future. Originally committed as revision 23514 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 1.0 and the resulting exactly representable value must be marked as float as ↵Michael Niedermayer2010-05-13
| | | | | | | | well, gcc is hopelessly trash. Originally committed as revision 23119 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cast constants to float to avoid gcc converting to and fromMichael Niedermayer2010-05-13
| | | | | | float<->double in every operation. Originally committed as revision 23118 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix compilation with low precission mpeg audio decoding.Michael Niedermayer2010-05-13
| | | | Originally committed as revision 23107 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do the same sign flip optimization to the low freq decoder.Michael Niedermayer2010-05-11
| | | | | | as with the high freq 10-20 cycles faster Originally committed as revision 23099 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize READ_FLIP_SIGN() optimization outMichael Niedermayer2010-05-11
| | | | Originally committed as revision 23098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize decoding high freqs.Michael Niedermayer2010-05-11
| | | | | | | 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
* Make lsf_sf_expand() 4 times faster.Michael Niedermayer2010-05-11
| | | | Originally committed as revision 23096 to svn://svn.ffmpeg.org/ffmpeg/trunk
* float based mp1/mp2/mp3 decoders.Michael Niedermayer2010-05-11
| | | | Originally committed as revision 23095 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused FRAC_RND() macro from mpegaudiodec.c.Michael Niedermayer2010-05-11
| | | | Originally committed as revision 23086 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
* 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
* Make some functions staticMåns Rullgård2010-03-06
| | | | | | | 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
* Remove DECLARE_ALIGNED_{8,16} macrosMåns Rullgård2010-03-06
| | | | | | | 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
* Move array specifiers outside DECLARE_ALIGNED() invocationsMåns Rullgård2010-01-22
| | | | Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use get_bits_left() instead of size_in_bits - get_bits_count().Ronald S. Bultje2009-11-16
| | | | Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reduce stack memory allocation in MP3 decoderVitor Sessak2009-11-04
| | | | Originally committed as revision 20451 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for hardcoding the mpegaudiodec tables.Reimar Döffinger2009-10-28
| | | | | | Reduces .bss size by about 194 kB. Originally committed as revision 20400 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mpegaudiodec, mpc and qdm2 all use the same mpa_synth window, so makeReimar Döffinger2009-10-19
| | | | | | | them use the same variable/global storage. Saves 4 kB in .bss. Originally committed as revision 20314 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Partially revert r20233, exp2f is not available on some BSDs, DOS and AVR32.Reimar Döffinger2009-10-15
| | | | Originally committed as revision 20240 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use cbrtf and exp2f instead of pow to calculate tables for MPEG audio decoding.Reimar Döffinger2009-10-15
| | | | | | | 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
* Set data_size to 0 to avoid having it uninitialized.Michael Niedermayer2009-09-23
| | | | | | based on 31_mp3_outlen.patch by chrome. Originally committed as revision 19988 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check data_size in decode_frame_mp3on4().Michael Niedermayer2009-09-23
| | | | Originally committed as revision 19987 to svn://svn.ffmpeg.org/ffmpeg/trunk
* check data_size in decode_frame()Michael Niedermayer2009-09-23
| | | | Originally committed as revision 19986 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reduce pointless verbosity after seeks in the MP3 decoder.Diego Biurrun2009-09-04
| | | | Originally committed as revision 19759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Drop code that attempts to decode frames that are prefixed by junk.Michael Niedermayer2009-06-30
| | | | | | | | | 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
* mpegaudio: enclose SUM8() macro args in parens when usedMåns Rullgård2009-05-05
| | | | Originally committed as revision 18746 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mpegaudio: avoid unnecessary copy in high-precision modeMåns Rullgård2009-05-05
| | | | Originally committed as revision 18745 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mpegaudio: use av_clip()Måns Rullgård2009-05-05
| | | | Originally committed as revision 18744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not scan for MP3 header after the given buffer and return skippedZdenek Kabelac2009-05-04
| | | | | | | bytes along with consumed bytes on successful decoding. patch by Zdenek Kabelac, zdenek.kabelac gmail com Originally committed as revision 18736 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused variable from decode_init() found by CSA.Michael Niedermayer2009-04-17
| | | | Originally committed as revision 18550 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-13
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-07
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing av_cold in static init/close functions.Daniel Verkamp2009-02-22
| | | | | | Patch by Daniel Verkamp daniel at drv dot nu. Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | 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
* Avoid allocating MPADecodeContext on stack.Andreas Öman2009-01-23
| | | | | | | Instead move relevant fields into MPADecodeHeader and use it where appropriate. Originally committed as revision 16728 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk