65 for (j = 0; j < 2; j++)
66 memset(dst + j * linesize, v[0], 2);
71 for (j = 0; j < 2; j++)
72 for (i = 0; i < 2; i++)
76 for (j = 0; j < 2; j++)
77 for (i = 0; i < 2; i++)
78 dst[j * linesize + i] =
get_bits(gb, 8);
92 for (j = 0; j < 4; j++)
93 memset(dst + j * linesize, v[0], 4);
98 for (j = 2; j >= 0; j -= 2) {
99 for (i = 0; i < 4; i++)
100 dst[j * linesize + i] = v[
get_bits1(gb)];
101 for (i = 0; i < 4; i++)
102 dst[(j + 1) * linesize + i] = v[
get_bits1(gb)];
106 for (j = 0; j < 4; j += 2)
107 for (i = 0; i < 4; i += 2)
108 decode2x2(gb, dst + j * linesize + i, linesize);
128 for (j = 7; j >= 0; j--)
129 for (i = 0; i < 8; i++)
130 dst[j * linesize + i] = v[
get_bits1(gb)];
133 for (j = 0; j < 8; j += 4)
134 for (i = 0; i < 8; i += 4)
135 decode4x4(gb, dst + j * linesize + i, linesize);
155 if (video_size < 0 || video_size > avpkt->
size - 5) {
162 if (video_type == 0 || video_type == 1) {
166 for (j = 0; j < avctx->
height; j += 8)
167 for (i = 0; i < avctx->
width; i += 8)
173 }
else if (video_type == 2) {
175 for (j = 0; j < avctx->
height; j++)
180 "unsupported frame type %i\n", video_type);
188 s->
palette[i] = 0xFFU << 24 | pal << 2 | ((pal >> 4) & 0x30303);