44 int num_lens, num_codes, num_codes_sum, prefix;
53 for (i = 0; i < num_lens; i++) {
55 num_codes_sum += num_codes;
57 if (num_codes_sum > 256) {
61 "Too many VLCs (%d) to be read.\n", num_codes_sum);
65 for (j = 0; j < num_codes; j++) {
68 codes[
count] = prefix++;
77 codes, 2, 2, symbols, 1, 1, 0);
95 pred[0] = top_left[0];
96 pred[1] = top_left[1];
97 pred[2] = top_left[2];
98 pred[3] = top_left[3];
141 top_left[0] = outbuf[0];
145 top_left[1] = outbuf[1];
146 top_left[2] = outbuf[2];
147 top_left[3] = outbuf[3];
178 *top_left = outbuf[0];
195 for (i = 0; i < ctx->
avctx->
width >> is_chroma; i++) {
206 *top_left = outbuf[0];
230 for (i = 0; i < 4; i++) {
233 for (j = 0; j <= i; j++)
237 "Could not read code table %d.\n", i);
243 for (i = 0; i < avctx->
height; i++) {
249 for (i = 0; i < 4; i++)
273 for (i = 0; i < 3; i++) {
276 for (j = 0; j <= i; j++)
280 "Could not read code table %d.\n", i);
286 for (i = 0; i < avctx->
height; i++) {
287 for (j = 0; j < 3; j++)
293 for (i = 0; i < 3; i++)
313 dst[0] = pic->
data[0];
314 dst[1] = pic->
data[1];
315 dst[2] = pic->
data[2];
326 for (i = 0; i < 2; i++) {
329 for (j = 0; j <= i; j++)
333 "Could not read code table %d.\n", i);
339 for (i = 0; i < avctx->
height; i++) {
344 for (j = 0; j < 3; j++)
348 for (i = 0; i < 2; i++)
355 int *got_picture_ptr,
AVPacket *avpkt)
360 uint32_t info_tag, info_offset;
363 int coding_type,
ret;
368 if (info_tag ==
MKTAG(
'I',
'N',
'F',
'O')) {
369 info_offset =
AV_RL32(src + 4);
370 if (info_offset > UINT32_MAX - 8 || info_offset + 8 > avpkt->
size) {
372 "Invalid INFO header offset: 0x%08"PRIX32
" is too large.\n",
383 data_size = (avpkt->
size - info_offset) & ~1;
407 coding_type = (
AV_RL32(src) >> 8) & 0xFF;
410 switch (coding_type) {
456 *got_picture_ptr = 1;