comparison nuv.c @ 6218:dfdff1ca78a7 libavcodec

consts I have underestimated this a little, and these are just some ...
author michael
date Fri, 01 Feb 2008 03:26:31 +0000
parents d540c7d88344
children 930ac362be5a
comparison
equal deleted inserted replaced
6217:f838213ca91b 6218:dfdff1ca78a7
127 rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq); 127 rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq);
128 return 1; 128 return 1;
129 } 129 }
130 130
131 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, 131 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
132 uint8_t *buf, int buf_size) { 132 const uint8_t *buf, int buf_size) {
133 NuvContext *c = avctx->priv_data; 133 NuvContext *c = avctx->priv_data;
134 AVFrame *picture = data; 134 AVFrame *picture = data;
135 int orig_size = buf_size; 135 int orig_size = buf_size;
136 enum {NUV_UNCOMPRESSED = '0', NUV_RTJPEG = '1', 136 enum {NUV_UNCOMPRESSED = '0', NUV_RTJPEG = '1',
137 NUV_RTJPEG_IN_LZO = '2', NUV_LZO = '3', 137 NUV_RTJPEG_IN_LZO = '2', NUV_LZO = '3',