58 for (j = 0; j < 2; j++)
59 memset(dst + j*linesize, v[0], 2);
64 for (j = 0; j < 2; j++)
65 for (i = 0; i < 2; i++)
69 for (j = 0; j < 2; j++)
70 for (i = 0; i < 2; i++)
71 dst[j*linesize + i] =
get_bits(gb, 8);
85 for (j = 0; j < 4; j++)
86 memset(dst + j*linesize, v[0], 4);
91 for (j = 2; j >= 0; j -= 2) {
92 for (i = 0; i < 4; i++)
94 for (i = 0; i < 4; i++)
95 dst[(j+1)*linesize + i] = v[
get_bits1(gb)];
99 for (j = 0; j < 4; j += 2)
100 for (i = 0; i < 4; i += 2)
101 decode2x2(gb, dst + j*linesize + i, linesize);
120 for (j = 7; j >= 0; j--)
121 for (i = 0; i < 8; i++)
125 for (j = 0; j < 8; j += 4)
126 for (i = 0; i < 8; i += 4)
127 decode4x4(gb, dst + j*linesize + i, linesize);
132 void *
data,
int *got_frame,
148 if (video_size < 0 || video_size > avpkt->
size - 5) {
157 if (video_type == 0 || video_type == 1) {
161 for (j = 0; j < avctx->
height; j += 8)
162 for (i = 0; i < avctx->
width; i += 8)
167 }
else if (video_type == 2) {
169 for (j = 0; j < avctx->
height; j++)
180 s->
palette[i] = 0xFFU << 24 | pal << 2 | ((pal >> 4) & 0x30303);