Mercurial > libavcodec.hg
comparison indeo2.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 | 8a137661f31e |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10500:6d653bb57c58 | 10501:bdf4a9ca162a |
---|---|
25 */ | 25 */ |
26 #define ALT_BITSTREAM_READER_LE | 26 #define ALT_BITSTREAM_READER_LE |
27 #include "avcodec.h" | 27 #include "avcodec.h" |
28 #include "get_bits.h" | 28 #include "get_bits.h" |
29 #include "indeo2data.h" | 29 #include "indeo2data.h" |
30 #include "libavutil/common.h" | |
30 | 31 |
31 typedef struct Ir2Context{ | 32 typedef struct Ir2Context{ |
32 AVCodecContext *avctx; | 33 AVCodecContext *avctx; |
33 AVFrame picture; | 34 AVFrame picture; |
34 GetBitContext gb; | 35 GetBitContext gb; |
158 s->decode_delta = buf[18]; | 159 s->decode_delta = buf[18]; |
159 | 160 |
160 /* decide whether frame uses deltas or not */ | 161 /* decide whether frame uses deltas or not */ |
161 #ifndef ALT_BITSTREAM_READER_LE | 162 #ifndef ALT_BITSTREAM_READER_LE |
162 for (i = 0; i < buf_size; i++) | 163 for (i = 0; i < buf_size; i++) |
163 buf[i] = ff_reverse[buf[i]]; | 164 buf[i] = av_reverse[buf[i]]; |
164 #endif | 165 #endif |
165 start = 48; /* hardcoded for now */ | 166 start = 48; /* hardcoded for now */ |
166 | 167 |
167 init_get_bits(&s->gb, buf + start, buf_size - start); | 168 init_get_bits(&s->gb, buf + start, buf_size - start); |
168 | 169 |