comparison vqavideo.c @ 6295:d256d072f23d libavcodec

const
author michael
date Fri, 01 Feb 2008 16:13:16 +0000
parents 2b72f9bc4f06
children 931ca319f2fe
comparison
equal deleted inserted replaced
6294:67e4586d3c1b 6295:d256d072f23d
102 102
103 AVCodecContext *avctx; 103 AVCodecContext *avctx;
104 DSPContext dsp; 104 DSPContext dsp;
105 AVFrame frame; 105 AVFrame frame;
106 106
107 unsigned char *buf; 107 const unsigned char *buf;
108 int size; 108 int size;
109 109
110 uint32_t palette[PALETTE_COUNT]; 110 uint32_t palette[PALETTE_COUNT];
111 111
112 int width; /* width of a frame */ 112 int width; /* width of a frame */
200 av_log(NULL, AV_LOG_ERROR, " VQA video: current dest_index = %d, count = %d, dest_size = %d\n", \ 200 av_log(NULL, AV_LOG_ERROR, " VQA video: current dest_index = %d, count = %d, dest_size = %d\n", \
201 dest_index, count, dest_size); \ 201 dest_index, count, dest_size); \
202 return; \ 202 return; \
203 } 203 }
204 204
205 static void decode_format80(unsigned char *src, int src_size, 205 static void decode_format80(const unsigned char *src, int src_size,
206 unsigned char *dest, int dest_size, int check_size) { 206 unsigned char *dest, int dest_size, int check_size) {
207 207
208 int src_index = 0; 208 int src_index = 0;
209 int dest_index = 0; 209 int dest_index = 0;
210 int count; 210 int count;
565 } 565 }
566 } 566 }
567 567
568 static int vqa_decode_frame(AVCodecContext *avctx, 568 static int vqa_decode_frame(AVCodecContext *avctx,
569 void *data, int *data_size, 569 void *data, int *data_size,
570 uint8_t *buf, int buf_size) 570 const uint8_t *buf, int buf_size)
571 { 571 {
572 VqaContext *s = avctx->priv_data; 572 VqaContext *s = avctx->priv_data;
573 573
574 s->buf = buf; 574 s->buf = buf;
575 s->size = buf_size; 575 s->size = buf_size;