comparison loco.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 2b72f9bc4f06
children 48759bfbd073
comparison
equal deleted inserted replaced
6217:f838213ca91b 6218:dfdff1ca78a7
114 114
115 return mid_pred(a, a + b - c, b); 115 return mid_pred(a, a + b - c, b);
116 } 116 }
117 117
118 static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int height, 118 static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int height,
119 int stride, uint8_t *buf, int buf_size, int step) 119 int stride, const uint8_t *buf, int buf_size, int step)
120 { 120 {
121 RICEContext rc; 121 RICEContext rc;
122 int val; 122 int val;
123 int i, j; 123 int i, j;
124 124
155 return ((get_bits_count(&rc.gb) + 7) >> 3); 155 return ((get_bits_count(&rc.gb) + 7) >> 3);
156 } 156 }
157 157
158 static int decode_frame(AVCodecContext *avctx, 158 static int decode_frame(AVCodecContext *avctx,
159 void *data, int *data_size, 159 void *data, int *data_size,
160 uint8_t *buf, int buf_size) 160 const uint8_t *buf, int buf_size)
161 { 161 {
162 LOCOContext * const l = avctx->priv_data; 162 LOCOContext * const l = avctx->priv_data;
163 AVFrame * const p= (AVFrame*)&l->pic; 163 AVFrame * const p= (AVFrame*)&l->pic;
164 int decoded; 164 int decoded;
165 165