Commit fcbc799c authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

make reverse[] non static

Originally committed as revision 4084 to svn://
parent a8a15e9d
......@@ -63,7 +63,7 @@ static const uint8_t scantab[64]={
static const uint8_t reverse[256]={
const uint8_t ff_reverse[256]={
......@@ -155,11 +155,11 @@ static void init_vlcs(ASV1Context *a){
//FIXME write a reversed bitstream reader to avoid the double reverse
static inline int asv2_get_bits(GetBitContext *gb, int n){
return reverse[ get_bits(gb, n) << (8-n) ];
return ff_reverse[ get_bits(gb, n) << (8-n) ];
static inline void asv2_put_bits(PutBitContext *pb, int n, int v){
put_bits(pb, n, reverse[ v << (8-n) ]);
put_bits(pb, n, ff_reverse[ v << (8-n) ]);
static inline int asv1_get_level(GetBitContext *gb){
......@@ -427,7 +427,7 @@ static int decode_frame(AVCodecContext *avctx,
int i;
for(i=0; i<buf_size; i++)
a->bitstream_buffer[i]= reverse[ buf[i] ];
a->bitstream_buffer[i]= ff_reverse[ buf[i] ];
init_get_bits(&a->gb, a->bitstream_buffer, buf_size*8);
......@@ -528,7 +528,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
int i;
for(i=0; i<4*size; i++)
buf[i]= reverse[ buf[i] ];
buf[i]= ff_reverse[ buf[i] ];
return size*4;
......@@ -14,6 +14,8 @@
extern const uint8_t ff_reverse[256];
#if defined(ARCH_X86) || defined(ARCH_X86_64)
// avoid +32 for shift optimization (gcc should do that ...)
static inline int32_t NEG_SSR32( int32_t a, int8_t s){
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment