Mercurial > libavcodec.hg
comparison ac3enc.c @ 10501:bdf4a9ca162a libavcodec
Move ff_reverse in libavcodec to av_reverse in libavutil.
Patch by Francesco Lavra, francescolavra interfree it
author | cehoyos |
---|---|
date | Mon, 09 Nov 2009 09:11:35 +0000 |
parents | 7955db355703 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10500:6d653bb57c58 | 10501:bdf4a9ca162a |
---|---|
25 */ | 25 */ |
26 //#define DEBUG | 26 //#define DEBUG |
27 //#define DEBUG_BITALLOC | 27 //#define DEBUG_BITALLOC |
28 #include "libavutil/crc.h" | 28 #include "libavutil/crc.h" |
29 #include "avcodec.h" | 29 #include "avcodec.h" |
30 #include "get_bits.h" // for ff_reverse | 30 #include "libavutil/common.h" /* for av_reverse */ |
31 #include "put_bits.h" | 31 #include "put_bits.h" |
32 #include "ac3.h" | 32 #include "ac3.h" |
33 #include "audioconvert.h" | 33 #include "audioconvert.h" |
34 | 34 |
35 typedef struct AC3EncodeContext { | 35 typedef struct AC3EncodeContext { |
136 | 136 |
137 np = 1 << ln; | 137 np = 1 << ln; |
138 | 138 |
139 /* reverse */ | 139 /* reverse */ |
140 for(j=0;j<np;j++) { | 140 for(j=0;j<np;j++) { |
141 int k = ff_reverse[j] >> (8 - ln); | 141 int k = av_reverse[j] >> (8 - ln); |
142 if (k < j) | 142 if (k < j) |
143 FFSWAP(IComplex, z[k], z[j]); | 143 FFSWAP(IComplex, z[k], z[j]); |
144 } | 144 } |
145 | 145 |
146 /* pass 0 */ | 146 /* pass 0 */ |