comparison ac3dec.c @ 5315:31033309ebc9 libavcodec

AC-3 decoder, soc revision 55, Aug 17 12:25:24 2006 UTC by cloud9 Remove more unnecessary headers. Codec initialization changed to use name => argument notation.
author jbr
date Sat, 14 Jul 2007 16:01:14 +0000
parents 7da10ff9dab1
children a09b700fcfca
comparison
equal deleted inserted replaced
5314:7da10ff9dab1 5315:31033309ebc9
22 #include <math.h> 22 #include <math.h>
23 #include <string.h> 23 #include <string.h>
24 24
25 #define ALT_BITSTREAM_READER 25 #define ALT_BITSTREAM_READER
26 26
27 #include "avcodec.h"
27 #include "ac3tab.h" 28 #include "ac3tab.h"
28 #include "ac3_decoder.h" 29 #include "ac3_decoder.h"
29 #include "avcodec.h"
30 #include "bitstream.h" 30 #include "bitstream.h"
31 #include "dsputil.h" 31 #include "dsputil.h"
32 #include "avutil.h"
33 #include "common.h"
34 32
35 #define N 512 /* constant for IMDCT Block size */ 33 #define N 512 /* constant for IMDCT Block size */
36 34
37 #define MAX_CHANNELS 6 35 #define MAX_CHANNELS 6
38 #define BLOCK_SIZE 256 36 #define BLOCK_SIZE 256
1977 { 1975 {
1978 return 0; 1976 return 0;
1979 } 1977 }
1980 1978
1981 AVCodec lgpl_ac3_decoder = { 1979 AVCodec lgpl_ac3_decoder = {
1982 "ac3", 1980 .name = "ac3",
1983 CODEC_TYPE_AUDIO, 1981 .type = CODEC_TYPE_AUDIO,
1984 CODEC_ID_AC3, 1982 .id = CODEC_ID_AC3,
1985 sizeof (AC3DecodeContext), 1983 .priv_data_size = sizeof (AC3DecodeContext),
1986 ac3_decode_init, 1984 .init = ac3_decode_init,
1987 NULL, 1985 .close = ac3_decode_end,
1988 ac3_decode_end, 1986 .decode = ac3_decode_frame,
1989 ac3_decode_frame,
1990 }; 1987 };
1991 1988