42 int num_lens, num_codes, num_codes_sum, prefix;
51 for (i = 0; i < num_lens; i++) {
53 num_codes_sum += num_codes;
55 if (num_codes_sum > 256) {
59 "Too many VLCs (%d) to be read.\n", num_codes_sum);
63 for (j = 0; j < num_codes; j++) {
66 codes[count] = prefix++;
75 codes, 2, 2, symbols, 1, 1, 0);
93 pred[0] = top_left[0];
94 pred[1] = top_left[1];
95 pred[2] = top_left[2];
96 pred[3] = top_left[3];
140 top_left[0] = dst[0];
144 top_left[1] = dst[1];
145 top_left[2] = dst[2];
146 top_left[3] = dst[3];
201 for (i = 0; i < 4; i++) {
204 for (j = 0; j <= i; j++)
208 "Could not read code table %d.\n", i);
214 for (i = 0; i < avctx->
height; i++) {
220 for (i = 0; i < 4; i++)
244 for (i = 0; i < 3; i++) {
247 for (j = 0; j <= i; j++)
251 "Could not read code table %d.\n", i);
257 for (i = 0; i < avctx->
height; i++) {
258 for (j = 0; j < 3; j++)
264 for (i = 0; i < 3; i++)
271 int *got_picture_ptr,
AVPacket *avpkt)
276 uint32_t info_tag, info_offset;
279 int coding_type, ret;
289 if (info_tag ==
MKTAG(
'I',
'N',
'F',
'O')) {
290 info_offset =
AV_RL32(src + 4);
291 if (info_offset > UINT32_MAX - 8 || info_offset + 8 > avpkt->
size) {
293 "Invalid INFO header offset: 0x%08X is too large.\n",
304 data_size = (avpkt->
size - info_offset) & ~1;
328 coding_type = (
AV_RL32(src) >> 8) & 0xFF;
331 switch (coding_type) {
371 *got_picture_ptr = 1;