Statistics
| Branch: | Revision:

ffmpeg / libavcodec / ac3dec.c @ 984ff38a

History | View | Annotate | Download (43.1 KB)

# Date Author Comment
984ff38a 03/25/2008 11:34 PM Justin Ruggles

cosmetics: indentation after last commit

Originally committed as revision 12594 to svn://svn.ffmpeg.org/ffmpeg/trunk

c33a1967 03/25/2008 11:34 PM Justin Ruggles

additional protection from segmentation faults and memory access errors by
copying the input buffer to a local context buffer which is large enough to
hold the largest possible AC3 frame.

Originally committed as revision 12593 to svn://svn.ffmpeg.org/ffmpeg/trunk

4e6eeaf0 03/24/2008 09:25 PM Bartlomiej Wolowiec

using stream type in eac3 parser

Originally committed as revision 12570 to svn://svn.ffmpeg.org/ffmpeg/trunk

98a6fff9 03/21/2008 03:11 AM Zuxy Meng

Apply 'cold' attribute to init/uninit functions in libavcodec

Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk

98f6dfa6 03/10/2008 09:59 PM Justin Ruggles

make input buffer const, as it should be. fixes a warning.

Originally committed as revision 12418 to svn://svn.ffmpeg.org/ffmpeg/trunk

38dae9c3 03/09/2008 05:05 PM Justin Ruggles

downmix before imdct unless different size transforms are used. about 20%
faster 5.1-to-stereo downmixing.

Originally committed as revision 12397 to svn://svn.ffmpeg.org/ffmpeg/trunk

d8870f12 03/01/2008 04:10 PM Justin Ruggles

use scale factor instead of sum for downmix level adjustment. avoids division
inside downmix loop. 7% faster 5.1-to-stereo downmixing.

Originally committed as revision 12287 to svn://svn.ffmpeg.org/ffmpeg/trunk

9d10e6e6 03/01/2008 03:48 PM Justin Ruggles

pre-calculate downmix coefficient sums. 2% faster 5.1-to-stereo downmixing.

Originally committed as revision 12286 to svn://svn.ffmpeg.org/ffmpeg/trunk

a4de6dd2 03/01/2008 04:39 AM Justin Ruggles

Use 24-bit fixed-point transform coefficients until just before MDCT. This
gives 7% faster decoding on average.

Originally committed as revision 12284 to svn://svn.ffmpeg.org/ffmpeg/trunk

3ed546fe 01/13/2008 11:02 AM Robert Swain

Add variable alpha and size of half window for Kaiser-Bessel Derived window
generation. Hard code Bessel I0 approximation iterations to 50.

See thread for discussion:
[FFmpeg-devel] [PATCH] Move Kaiser-Bessel Derived window to mdct.c
Started on the 2008/01/10...

4eb7a735 01/12/2008 11:11 AM Robert Swain

Make the Kaiser-Bessel window generator a common function

Patch by Robert Swain, robert d swain a gmail d com

Originally committed as revision 11514 to svn://svn.ffmpeg.org/ffmpeg/trunk

f34b221b 01/08/2008 11:44 PM Justin Ruggles

used defined name for testing error resilience level

Originally committed as revision 11478 to svn://svn.ffmpeg.org/ffmpeg/trunk

f0b3a7ba 01/07/2008 12:18 AM Justin Ruggles

split out init of downmix coeffs into a separate function that can be called
only when needed

Originally committed as revision 11441 to svn://svn.ffmpeg.org/ffmpeg/trunk

82a6c481 01/06/2008 11:56 PM Justin Ruggles

remove unneeded variable from AC3DecodeContext

Originally committed as revision 11439 to svn://svn.ffmpeg.org/ffmpeg/trunk

4bc829bb 01/06/2008 11:33 PM Justin Ruggles

make sure that the last coupling band stops at the end of the coupling range

Originally committed as revision 11438 to svn://svn.ffmpeg.org/ffmpeg/trunk

b02fbf75 01/06/2008 08:15 PM Justin Ruggles

fix phase flag processing for the case when coupling coordinates are reused
for the right channel, but new for the left channel

Originally committed as revision 11436 to svn://svn.ffmpeg.org/ffmpeg/trunk

646800f7 01/05/2008 06:39 PM Justin Ruggles

move E-AC3 header parsing to ff_ac3_parse_header()

Originally committed as revision 11420 to svn://svn.ffmpeg.org/ffmpeg/trunk

86ad4c7e 01/05/2008 05:04 PM Justin Ruggles

remove unneeded variables from AC3HeaderInfo

Originally committed as revision 11419 to svn://svn.ffmpeg.org/ffmpeg/trunk

2816d323 01/05/2008 03:23 PM Justin Ruggles

cosmetics: indentation

Originally committed as revision 11416 to svn://svn.ffmpeg.org/ffmpeg/trunk

95283c17 01/05/2008 03:22 PM Justin Ruggles

check for request_channels at codec init

Originally committed as revision 11415 to svn://svn.ffmpeg.org/ffmpeg/trunk

3abe5fbd 01/04/2008 11:09 PM Aurelien Jacobs

improve CRC API
- don't export any global var
- provide either generated or hardcoded tables

Originally committed as revision 11409 to svn://svn.ffmpeg.org/ffmpeg/trunk

7564658b 01/04/2008 12:39 AM Justin Ruggles

cosmetics: indentation and add a TODO comment

Originally committed as revision 11389 to svn://svn.ffmpeg.org/ffmpeg/trunk

471db688 01/03/2008 11:05 PM Justin Ruggles

only check ac3 crc if AVCodecContext.error_resilience > 0

Originally committed as revision 11388 to svn://svn.ffmpeg.org/ffmpeg/trunk

d6939960 01/03/2008 02:26 AM Justin Ruggles

add crc check to ac3 decoder

Originally committed as revision 11379 to svn://svn.ffmpeg.org/ffmpeg/trunk

12eaa3b7 12/30/2007 10:58 PM Justin Ruggles

simplify

Originally committed as revision 11360 to svn://svn.ffmpeg.org/ffmpeg/trunk

b35c67e5 12/30/2007 10:28 PM Justin Ruggles

pass an AC3DecodeContext to ac3_downmix() instead of multiple arguments

Originally committed as revision 11359 to svn://svn.ffmpeg.org/ffmpeg/trunk

866181e5 12/30/2007 09:26 PM Justin Ruggles

cosmetics: rename sampling_rate to sample_rate

Originally committed as revision 11358 to svn://svn.ffmpeg.org/ffmpeg/trunk

0345fade 12/30/2007 09:24 PM Justin Ruggles

do not need to cast a (void *)

Originally committed as revision 11357 to svn://svn.ffmpeg.org/ffmpeg/trunk

1b70d88b 12/30/2007 09:09 PM Justin Ruggles

cosmetics: vertical realignment after last commit

Originally committed as revision 11356 to svn://svn.ffmpeg.org/ffmpeg/trunk

d802d7ca 12/30/2007 08:58 PM Justin Ruggles

cosmetics: rename all AC3DecodeContext variables from ctx to s

Originally committed as revision 11355 to svn://svn.ffmpeg.org/ffmpeg/trunk

23c8cb89 12/30/2007 08:47 PM Justin Ruggles

cosmetics: rename GetBitContext gb to gbc

Originally committed as revision 11354 to svn://svn.ffmpeg.org/ffmpeg/trunk

005ab694 12/30/2007 03:10 AM Justin Ruggles

remove unused context variable

Originally committed as revision 11353 to svn://svn.ffmpeg.org/ffmpeg/trunk

1408352a 12/20/2007 12:55 AM Justin Ruggles

Add option for user to scale the amount of dynamic range compression which is
applied by the audio decoder, and use that option in the AC3 decoder.

Originally committed as revision 11280 to svn://svn.ffmpeg.org/ffmpeg/trunk

03726b70 12/17/2007 01:09 AM Justin Ruggles

Skip dialog normalization. It shouldn't be used by the decoder, and there is
not currently a clean way to pass the value to the user.

Originally committed as revision 11246 to svn://svn.ffmpeg.org/ffmpeg/trunk

224bc440 12/17/2007 01:03 AM Justin Ruggles

Revert commit made in revision 11228. I'm getting some strange results in the
downmixed output that I can't quite figure out.

Originally committed as revision 11245 to svn://svn.ffmpeg.org/ffmpeg/trunk

b40211ff 12/16/2007 04:25 AM Justin Ruggles

downmix before the IMDCT if no block switching is used

Originally committed as revision 11228 to svn://svn.ffmpeg.org/ffmpeg/trunk

6708eefe 12/15/2007 07:00 AM Andreas Ă–man

Make AC3 decoder honor avctx->request_channels

Originally committed as revision 11220 to svn://svn.ffmpeg.org/ffmpeg/trunk

e2270b4e 12/09/2007 03:28 AM Justin Ruggles

cosmetics: rename ac3 decoder variables

Originally committed as revision 11197 to svn://svn.ffmpeg.org/ffmpeg/trunk

e59cc205 12/09/2007 03:27 AM Justin Ruggles

cosmetics: rename common ac3 variables

Originally committed as revision 11196 to svn://svn.ffmpeg.org/ffmpeg/trunk

5ce21342 12/09/2007 03:23 AM Justin Ruggles

cosmetics: rename ac3 bit allocation variables

Originally committed as revision 11194 to svn://svn.ffmpeg.org/ffmpeg/trunk

66ecf18e 12/09/2007 03:21 AM Justin Ruggles

cosmetics: rename ac3 tables

Originally committed as revision 11193 to svn://svn.ffmpeg.org/ffmpeg/trunk

56cc85a0 12/02/2007 03:43 PM Diego Biurrun

Misc spelling fixes, prefer American over British English.

Originally committed as revision 11126 to svn://svn.ffmpeg.org/ffmpeg/trunk

a135bea5 09/15/2007 02:44 AM Justin Ruggles

skip incomplete frames

Originally committed as revision 10497 to svn://svn.ffmpeg.org/ffmpeg/trunk

3df88093 09/15/2007 02:41 AM Justin Ruggles

better AC3 header error reporting

Originally committed as revision 10496 to svn://svn.ffmpeg.org/ffmpeg/trunk

d5b7144e 09/15/2007 12:43 AM Justin Ruggles

fix random dithering of zero-bit mantissas

Originally committed as revision 10495 to svn://svn.ffmpeg.org/ffmpeg/trunk

bfcf690c 09/15/2007 12:19 AM Justin Ruggles

cosmetics: rename variables. tbl->tab for consistency with other AC3 tables

Originally committed as revision 10494 to svn://svn.ffmpeg.org/ffmpeg/trunk

396a6ee5 09/15/2007 12:00 AM Justin Ruggles

fix decoding of DolbyNet AC3

Originally committed as revision 10493 to svn://svn.ffmpeg.org/ffmpeg/trunk

222ae64c 08/09/2007 12:39 AM Justin Ruggles

cosmetics: vertical alignment

Originally committed as revision 10002 to svn://svn.ffmpeg.org/ffmpeg/trunk

5066f515 08/09/2007 12:36 AM Justin Ruggles

comments modification: add, clean up, Doxygenize, and reword

Originally committed as revision 10001 to svn://svn.ffmpeg.org/ffmpeg/trunk

f5cefb21 08/05/2007 09:48 PM Justin Ruggles

cosmetics: blank lines, remove some comments

Originally committed as revision 9955 to svn://svn.ffmpeg.org/ffmpeg/trunk

82758fd6 08/05/2007 09:34 PM Justin Ruggles

add pointer to the parent context for use with av_log()

Originally committed as revision 9954 to svn://svn.ffmpeg.org/ffmpeg/trunk

77416325 08/05/2007 09:10 PM Justin Ruggles

use array for dynamic range scaling factors

Originally committed as revision 9953 to svn://svn.ffmpeg.org/ffmpeg/trunk

01f35453 08/05/2007 07:36 PM Justin Ruggles

add dialogue normalization

Originally committed as revision 9948 to svn://svn.ffmpeg.org/ffmpeg/trunk

3bbb0bf8 08/04/2007 10:32 PM Justin Ruggles

add support for downmixing to stereo or mono

Originally committed as revision 9916 to svn://svn.ffmpeg.org/ffmpeg/trunk

4e092320 08/04/2007 08:59 PM Justin Ruggles

use dsputil for float to signed 16-bit sample conversion

Originally committed as revision 9914 to svn://svn.ffmpeg.org/ffmpeg/trunk

775369e0 08/04/2007 08:32 PM Justin Ruggles

cosmetics: indentation

Originally committed as revision 9911 to svn://svn.ffmpeg.org/ffmpeg/trunk

7b4076a7 08/04/2007 07:19 PM Justin Ruggles

consolidate decoding of lfe and coupling channels with decoding of full-bandwidth channels.

Originally committed as revision 9910 to svn://svn.ffmpeg.org/ffmpeg/trunk

5e61de0c 08/04/2007 03:01 PM Justin Ruggles

there are only 4 rematrixing bands

Originally committed as revision 9908 to svn://svn.ffmpeg.org/ffmpeg/trunk

75b9b036 08/04/2007 01:52 PM Justin Ruggles

cosmetics: use more appropriate names for iterator variables.

Originally committed as revision 9907 to svn://svn.ffmpeg.org/ffmpeg/trunk

8e2eb3b6 08/04/2007 01:30 PM Justin Ruggles

move some variables to a more local scope.

Originally committed as revision 9905 to svn://svn.ffmpeg.org/ffmpeg/trunk

0bff58a5 08/04/2007 01:26 PM Justin Ruggles

make exponent decoding consistent (prepare for merging coupling and lfe code with normal channel code).

Originally committed as revision 9904 to svn://svn.ffmpeg.org/ffmpeg/trunk

eaf84d97 08/04/2007 12:04 PM Justin Ruggles

cosmetics: use braces when it makes the code easier to read.

Originally committed as revision 9893 to svn://svn.ffmpeg.org/ffmpeg/trunk

fc59010b 08/04/2007 11:55 AM Justin Ruggles

change AC3DecodeContext variable to local variable

Originally committed as revision 9892 to svn://svn.ffmpeg.org/ffmpeg/trunk

6d96d626 08/04/2007 11:39 AM Justin Ruggles

use array instead of bitmask

Originally committed as revision 9891 to svn://svn.ffmpeg.org/ffmpeg/trunk

3357ff33 08/04/2007 03:27 AM Justin Ruggles

use table for converting dynamic range codes to scale factors

Originally committed as revision 9889 to svn://svn.ffmpeg.org/ffmpeg/trunk

5aefe3eb 08/04/2007 03:21 AM Justin Ruggles

use floating-point mantissa dequantization tables

Originally committed as revision 9888 to svn://svn.ffmpeg.org/ffmpeg/trunk

04ac5cad 08/04/2007 01:14 AM Justin Ruggles

cosmetics: indentation

Originally committed as revision 9887 to svn://svn.ffmpeg.org/ffmpeg/trunk

60f07fad 08/04/2007 01:13 AM Justin Ruggles

dither zero-bit mantissas by default. remove dithering only if it's explicitly turned off.

Originally committed as revision 9886 to svn://svn.ffmpeg.org/ffmpeg/trunk

d63f6fea 08/04/2007 12:12 AM Justin Ruggles

simplify coefficient decoding

Originally committed as revision 9884 to svn://svn.ffmpeg.org/ffmpeg/trunk

285bf28c 08/04/2007 12:04 AM Justin Ruggles

merge decoding of coupling channel coefficients and regular channel coefficients

Originally committed as revision 9883 to svn://svn.ffmpeg.org/ffmpeg/trunk

d7dc7ad0 08/03/2007 11:53 PM Justin Ruggles

split out coupling coefficient reconstruction into a separate function

Originally committed as revision 9882 to svn://svn.ffmpeg.org/ffmpeg/trunk

dfd57c36 08/01/2007 01:13 AM Justin Ruggles

align array used in mdct. fixes segfault.

Originally committed as revision 9848 to svn://svn.ffmpeg.org/ffmpeg/trunk

8b60bbbf 07/29/2007 12:58 AM Justin Ruggles

simplify stereo rematrixing

Originally committed as revision 9824 to svn://svn.ffmpeg.org/ffmpeg/trunk

b6acc57f 07/29/2007 12:35 AM Justin Ruggles

change 2 fields from context to local variables

Originally committed as revision 9823 to svn://svn.ffmpeg.org/ffmpeg/trunk

8fbb368d 07/28/2007 08:50 PM Justin Ruggles

BLOCK_SIZE is not used properly, just use numbers instead to avoid confusion

Originally committed as revision 9822 to svn://svn.ffmpeg.org/ffmpeg/trunk

7bfd22f2 07/28/2007 07:33 PM Justin Ruggles

remove broken downmixing. will add new implementation later.

Originally committed as revision 9821 to svn://svn.ffmpeg.org/ffmpeg/trunk

4611b64e 07/24/2007 02:08 AM Justin Ruggles

simplify snr offset and bit allocation

Originally committed as revision 9784 to svn://svn.ffmpeg.org/ffmpeg/trunk

e9a38248 07/24/2007 01:43 AM Justin Ruggles

only use sized data types when necessary

Originally committed as revision 9783 to svn://svn.ffmpeg.org/ffmpeg/trunk

8f58a4c9 07/24/2007 01:35 AM Justin Ruggles

set bit allocation parameters directly instead of copying

Originally committed as revision 9782 to svn://svn.ffmpeg.org/ffmpeg/trunk

e2cd6686 07/23/2007 10:47 PM Justin Ruggles

use enum value instead of numerical value for acmod

Originally committed as revision 9781 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc8edb7e 07/23/2007 10:23 PM Justin Ruggles

use consistent data type for exponents. needs to be int8_t to pass to bit allocation.

Originally committed as revision 9780 to svn://svn.ffmpeg.org/ffmpeg/trunk

878c40a1 07/23/2007 10:16 PM Justin Ruggles

change some bit masks to arrays

Originally committed as revision 9779 to svn://svn.ffmpeg.org/ffmpeg/trunk

bec37145 07/21/2007 05:03 PM Justin Ruggles

cosmetics: indentation

Originally committed as revision 9774 to svn://svn.ffmpeg.org/ffmpeg/trunk

9fc1ab72 07/21/2007 04:28 PM Justin Ruggles

Use shared AC-3 header parsing. Move some initializations to block parsing function.

Originally committed as revision 9773 to svn://svn.ffmpeg.org/ffmpeg/trunk

9ef60390 07/21/2007 01:56 PM Justin Ruggles

don't need to synchronize in the decoder. the parser does that already.

Originally committed as revision 9772 to svn://svn.ffmpeg.org/ffmpeg/trunk

de34875c 07/21/2007 11:54 AM Justin Ruggles

get rid of an ugly macro

Originally committed as revision 9771 to svn://svn.ffmpeg.org/ffmpeg/trunk

614e9b24 07/19/2007 02:21 AM Justin Ruggles

don't need to define ALT_BITSTREAM_READER

Originally committed as revision 9752 to svn://svn.ffmpeg.org/ffmpeg/trunk

36266421 07/19/2007 02:16 AM Justin Ruggles

update license header. add copyright for myself. correct and complete the statement about liba52.

Originally committed as revision 9751 to svn://svn.ffmpeg.org/ffmpeg/trunk

3bb004fc 07/19/2007 02:09 AM Justin Ruggles

revise comment for exponent decoding function

Originally committed as revision 9750 to svn://svn.ffmpeg.org/ffmpeg/trunk

4415076f 07/19/2007 02:04 AM Justin Ruggles

new implementation of exponent decoding

Originally committed as revision 9749 to svn://svn.ffmpeg.org/ffmpeg/trunk

d699d383 07/19/2007 12:51 AM Justin Ruggles

cosmetics: indentation

Originally committed as revision 9748 to svn://svn.ffmpeg.org/ffmpeg/trunk

0ce66801 07/19/2007 12:50 AM Justin Ruggles

remove portions of bit allocation which are no longer needed since they are shared with the encoder

Originally committed as revision 9747 to svn://svn.ffmpeg.org/ffmpeg/trunk

0de73a46 07/15/2007 02:47 PM Justin Ruggles

fix the 256-point MDCT

Originally committed as revision 9685 to svn://svn.ffmpeg.org/ffmpeg/trunk

623b7943 07/15/2007 01:53 PM Justin Ruggles

use shared ac3 bit allocation function

Originally committed as revision 9684 to svn://svn.ffmpeg.org/ffmpeg/trunk

fa67992d 07/15/2007 01:38 AM Justin Ruggles

no need for the decoder to have the license as a prefix

Originally committed as revision 9682 to svn://svn.ffmpeg.org/ffmpeg/trunk

76d357fd 07/15/2007 01:35 AM Justin Ruggles

remove a debugging function and variable, and remove the commented-out code which uses them.

Originally committed as revision 9681 to svn://svn.ffmpeg.org/ffmpeg/trunk

a39532b0 07/15/2007 01:32 AM Justin Ruggles

ABS -> FFABS

Originally committed as revision 9680 to svn://svn.ffmpeg.org/ffmpeg/trunk

cc2a8443 07/15/2007 01:31 AM Justin Ruggles

move some common values to ac3.h and utilize them

Originally committed as revision 9679 to svn://svn.ffmpeg.org/ffmpeg/trunk

cb503702 07/14/2007 11:57 PM Justin Ruggles

use random number generator from libavutil

Originally committed as revision 9678 to svn://svn.ffmpeg.org/ffmpeg/trunk

9d109601 07/14/2007 10:17 PM Justin Ruggles

10l to me. I accidentally removed a word.

Originally committed as revision 9677 to svn://svn.ffmpeg.org/ffmpeg/trunk