64 for (j = 0; j < 2; j++)
65 memset(dst + j*linesize, v[0], 2);
70 for (j = 0; j < 2; j++)
71 for (i = 0; i < 2; i++)
75 for (j = 0; j < 2; j++)
76 for (i = 0; i < 2; i++)
77 dst[j*linesize + i] =
get_bits(gb, 8);
91 for (j = 0; j < 4; j++)
92 memset(dst + j*linesize, v[0], 4);
97 for (j = 2; j >= 0; j -= 2) {
98 for (i = 0; i < 4; i++)
100 for (i = 0; i < 4; i++)
101 dst[(j+1)*linesize + i] = v[
get_bits1(gb)];
105 for (j = 0; j < 4; j += 2)
106 for (i = 0; i < 4; i += 2)
107 decode2x2(gb, dst + j*linesize + i, linesize);
126 for (j = 7; j >= 0; j--)
127 for (i = 0; i < 8; i++)
131 for (j = 0; j < 8; j += 4)
132 for (i = 0; i < 8; i += 4)
133 decode4x4(gb, dst + j*linesize + i, linesize);
138 void *
data,
int *got_frame,
154 if (video_size < 0 || video_size > avpkt->
size - 5) {
161 if (video_type == 0 || video_type == 1) {
165 for (j = 0; j < avctx->
height; j += 8)
166 for (i = 0; i < avctx->
width; i += 8)
171 }
else if (video_type == 2) {
173 for (j = 0; j < avctx->
height; j++)
184 s->
palette[i] = 0xFFU << 24 | pal << 2 | ((pal >> 4) & 0x30303);