comparison vp56.h @ 6297:1b91ce6c758c libavcodec

const
author michael
date Fri, 01 Feb 2008 16:16:40 +0000
parents 1d83e9c34641
children 7fa807dd7958
comparison
equal deleted inserted replaced
6296:8624c08b6c54 6297:1b91ce6c758c
41 vp56_mv_t mv, int mask, int select, int luma); 41 vp56_mv_t mv, int mask, int select, int luma);
42 typedef void (*vp56_parse_coeff_t)(vp56_context_t *s); 42 typedef void (*vp56_parse_coeff_t)(vp56_context_t *s);
43 typedef void (*vp56_default_models_init_t)(vp56_context_t *s); 43 typedef void (*vp56_default_models_init_t)(vp56_context_t *s);
44 typedef void (*vp56_parse_vector_models_t)(vp56_context_t *s); 44 typedef void (*vp56_parse_vector_models_t)(vp56_context_t *s);
45 typedef void (*vp56_parse_coeff_models_t)(vp56_context_t *s); 45 typedef void (*vp56_parse_coeff_models_t)(vp56_context_t *s);
46 typedef int (*vp56_parse_header_t)(vp56_context_t *s, uint8_t *buf, 46 typedef int (*vp56_parse_header_t)(vp56_context_t *s, const uint8_t *buf,
47 int buf_size, int *golden_frame); 47 int buf_size, int *golden_frame);
48 48
49 typedef struct { 49 typedef struct {
50 int high; 50 int high;
51 int bits; 51 int bits;
52 uint8_t *buffer; 52 const uint8_t *buffer;
53 unsigned long code_word; 53 unsigned long code_word;
54 } vp56_range_coder_t; 54 } vp56_range_coder_t;
55 55
56 typedef struct { 56 typedef struct {
57 uint8_t not_null_dc; 57 uint8_t not_null_dc;
170 170
171 void vp56_init(AVCodecContext *avctx, int flip, int has_alpha); 171 void vp56_init(AVCodecContext *avctx, int flip, int has_alpha);
172 int vp56_free(AVCodecContext *avctx); 172 int vp56_free(AVCodecContext *avctx);
173 void vp56_init_dequant(vp56_context_t *s, int quantizer); 173 void vp56_init_dequant(vp56_context_t *s, int quantizer);
174 int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size, 174 int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
175 uint8_t *buf, int buf_size); 175 const uint8_t *buf, int buf_size);
176 176
177 177
178 /** 178 /**
179 * vp56 specific range coder implementation 179 * vp56 specific range coder implementation
180 */ 180 */
181 181
182 static inline void vp56_init_range_decoder(vp56_range_coder_t *c, 182 static inline void vp56_init_range_decoder(vp56_range_coder_t *c,
183 uint8_t *buf, int buf_size) 183 const uint8_t *buf, int buf_size)
184 { 184 {
185 c->high = 255; 185 c->high = 255;
186 c->bits = 8; 186 c->bits = 8;
187 c->buffer = buf; 187 c->buffer = buf;
188 c->code_word = bytestream_get_be16(&c->buffer); 188 c->code_word = bytestream_get_be16(&c->buffer);