summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
Commit message (Collapse)AuthorAge
* use random number generator from libavutilJustin Ruggles2007-07-14
| | | | Originally committed as revision 9678 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l to me. I accidentally removed a word.Justin Ruggles2007-07-14
| | | | Originally committed as revision 9677 to svn://svn.ffmpeg.org/ffmpeg/trunk
* revise license header for simplicity and consistencyJustin Ruggles2007-07-14
| | | | Originally committed as revision 9676 to svn://svn.ffmpeg.org/ffmpeg/trunk
* make ac3dec.c GPL until violations are fixedJustin Ruggles2007-07-14
| | | | Originally committed as revision 9674 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 402, Jul 14 13:45:14 2007 UTC by jbrJustin Ruggles2007-07-14
| | | | | | merge ac3_decoder.h into ac3_decoder.c Originally committed as revision 9673 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 148, Sep 28 18:38:27 2006 UTC by bananLoren Merritt2007-07-14
| | | | | | Enable sse imdct, patch by Loren Merrit. Originally committed as revision 9672 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 109, Sep 22 22:42:54 2006 UTC by bananJustin Ruggles2007-07-14
| | | | | | Cosmetics. Originally committed as revision 9671 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 72, Sep 7 04:20:00 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | fix short block imdct. Originally committed as revision 9670 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 71, Sep 4 09:47:12 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | Redundant code cleanup. Optimized dither generation. Minor optimization in bit allocation. Comments. Originally committed as revision 9669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 70, Aug 31 18:04:23 2006 UTC by bananJustin Ruggles2007-07-14
| | | | | | Cosmetics, white space removal. Originally committed as revision 9668 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 69, Aug 31 07:12:56 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | | | Fix the bugs: 1. The quality of output because of incorrect windowing coefficients. New code for window generation. 2. Dynrng values were reset where dynrng value is present in the first block, but not in the subsequent block. Originally committed as revision 9667 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 58, Aug 19 14:20:45 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | Further optimizations. Originally committed as revision 9666 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 57, Aug 19 12:44:38 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | Optimization as suggested by Benjamin. Originally committed as revision 9665 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 56, Aug 17 14:21:58 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | Acknowledgements. Originally committed as revision 9664 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 55, Aug 17 12:25:24 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | Remove more unnecessary headers. Codec initialization changed to use name => argument notation. Originally committed as revision 9663 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 54, Aug 17 09:13:08 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | Remove unnecessary header files. Originally committed as revision 9662 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 53, Aug 17 08:53:44 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | Converted the window from double to float. Now sound produced is as good as sound produced by liba52. Originally committed as revision 9661 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 52, Aug 16 22:45:07 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | Reset the blksw and dithflag to 0 at the begining of each block. Otherwise blockswitching propagates over multiple frames even if block switching is not enabled for that frame. Also reuse rematflg. Originally committed as revision 9660 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 48, Aug 16 11:27:49 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | | | | | | | | I realized that the bug was not in the imdct routine but in the get_transform_coeffs. Fixed it. Code now uses the ffmpeg's imdct routines. All the mplayer's ac3 samples are decoded successfully. Also improved downmixing. Now all the downmixing coeffcients for channels are normalized such that the sum of coefficients used to construct the output for single channel never exceeds 1.0. Originally committed as revision 9659 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 40, Aug 9 00:10:14 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | | | | | | | More code cleanup. Window is now runtime generated. Fixed the bugs in rematrixing routine and in Decoding AC3 Bitstreams when coupling is in use. Still struggling to find out what affects the quality of the produced sound. Can anybody have a look at the imdct routines do_imdct_256 and do_imdct_512 and tell me whether it is the correctly implemented as described in standard. Originally committed as revision 9658 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 38, Aug 7 00:03:00 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | | | | | major code cleanup. correct implementation of imdct. implemented imdct for block switching also. when coupling is not in use all the ac3 streams are decoded correctly. but when coupling is in use there is a bug. i am currently finding the root of the bug. if anybody can help. Originally committed as revision 9657 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 34, Jul 18 14:27:54 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | working decoder imdct for block switching is to be implemented various other things to do Originally committed as revision 9656 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 33, Jul 17 12:13:40 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | getting weired output but its working Originally committed as revision 9655 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 32, Jul 17 09:37:32 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | | | | | | | | Latest commit. There is no error in parsing and or recovering transform coefficients. Double checked with ac3dec. Getting consistent results with the bit allocation routine and transform coefficients. The code is able to parse valid ac3 bitstreams without error from start to end. I have also implemented the imdct when block switching is not enabled. However, can anybody provide an insight into how to convert float samples to int16_t ? lrint is of no help cuz it produces output -1, 0 or 1 whereas the output should be between -32768 to 32767. Originally committed as revision 9654 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 31, Jul 14 23:53:28 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | | | | | | | | | | | | | | Removed _ from names Removed temporary storage for the exponents Removed ctx->samples Now each transform coefficients are stored in audio block as an array of transform coefficients for each channel added ctx->delay (output of later half of previous block) added audio_block->block_output(output of this block) I am still not able to produce the output. I checked the code twice completely. I am not missing anything in parsing or in bit allocation. Yet it throws error in getting transform coefficients sometimes. Can anyone review a code of get_transform_coeffs and help me debug it further. I think the error is in do_bit_allocation routine cuz get_transform_coeffs is dependent on the bit allocation parameters table. I have checked the bit allocation algorithm thoroughly and it is as defined in the standard. Tried everything and got stuck where to go further. Please help me. Originally committed as revision 9653 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 26, Jul 5 04:55:15 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | Mersenne Twister Dynamic Range Downmixing IMDCT Originally committed as revision 9652 to svn://svn.ffmpeg.org/ffmpeg/trunk
* AC-3 decoder, soc revision 9, Jun 14 03:52:02 2006 UTC by cloud9Justin Ruggles2007-07-14
| | | | | | | | | | initial commit NOTE: This and all subsequent ac3dec.c revisions from the soc repository violate the GPL. This will be fixed after all soc revisions are imported. This file is not compiled yet, so the license compliance of any builds in the meantime will not be affected. Originally committed as revision 9651 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused libac3 AC3 decoding interface.Diego Biurrun2007-02-11
| | | | Originally committed as revision 7923 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun2006-10-07
| | | | | | and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update licensing information: The FSF changed postal address.Diego Biurrun2006-01-12
| | | | Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: tabs --> spaces, some prettyprintingDiego Biurrun2005-12-22
| | | | Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: Remove all trailing whitespace.Diego Biurrun2005-12-17
| | | | Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Compilation fixes part 1 patch by (Arvind R. and Burkhard Plaum, plaum, ipf ↵Michael Niedermayer2005-08-26
| | | | | | uni-stuttgart de) Originally committed as revision 4540 to svn://svn.ffmpeg.org/ffmpeg/trunk
* data_size = 0 cleanupMichael Niedermayer2004-05-21
| | | | Originally committed as revision 3146 to svn://svn.ffmpeg.org/ffmpeg/trunk
* per file doxyMichael Niedermayer2003-03-06
| | | | Originally committed as revision 1634 to svn://svn.ffmpeg.org/ffmpeg/trunk
* * UINTX -> uintx_t INTX -> intx_tZdenek Kabelac2003-02-11
| | | | Originally committed as revision 1578 to svn://svn.ffmpeg.org/ffmpeg/trunk
* license/copyright changeFabrice Bellard2002-05-25
| | | | Originally committed as revision 599 to svn://svn.ffmpeg.org/ffmpeg/trunk
* * minor - slightly modified debug messageZdenek Kabelac2002-04-15
| | | | Originally committed as revision 401 to svn://svn.ffmpeg.org/ffmpeg/trunk
* - Fixed AC3 decoding for 5:1 AC3 streams. Now when calling av_audio_decode forJuanjo2002-04-09
| | | | | | | | | | AC3 set avcodec_context->channels to the desired number channels, if the setting is 0 AC3 decoder will set it to the channels found in the stream. - Changed ffmpeg to cope with the new "way" of AC3 decoding. - ASF muxer now uses Tickers for PTS calculations. Originally committed as revision 393 to svn://svn.ffmpeg.org/ffmpeg/trunk
* * encoding of AC3 with more than 2 channelsZdenek Kabelac2002-04-08
| | | | | | by Takashi Iwai <tiwai@suse.de> Originally committed as revision 383 to svn://svn.ffmpeg.org/ffmpeg/trunk
* win32 fixesFabrice Bellard2001-08-13
| | | | Originally committed as revision 84 to svn://svn.ffmpeg.org/ffmpeg/trunk
* added CONFIG_AC3, CONFIG_MPGLIB, CONFIG_DECODERS and CONFIG_ENCODERS (Arpi: ↵Fabrice Bellard2001-07-23
| | | | | | don't forget to put CONFIG_DECODERS in mplayer) Originally committed as revision 9 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Initial revisionFabrice Bellard2001-07-22
Originally committed as revision 5 to svn://svn.ffmpeg.org/ffmpeg/trunk