32 { 0, 0, 0, 0, 0, 0, 0, 0 },
33 { 2, 0, 0, 0, 0, 0, 0, 0 },
34 { 5, 7, 0, 0, 0, 0, 0, 0 },
35 { 5, 0, 0, 0, 0, 0, 0, 0 },
36 { 6, 0, 0, 0, 0, 0, 0, 0 },
37 { 5, 7, 5, 7, 0, 0, 0, 0 },
38 { 5, 7, 5, 0, 0, 0, 0, 0 },
39 { 5, 7, 6, 0, 0, 0, 0, 0 },
40 { 5, 5, 0, 0, 0, 0, 0, 0 },
41 { 3, 0, 0, 0, 0, 0, 0, 0 },
42 { 6, 6, 0, 0, 0, 0, 0, 0 },
43 { 2, 4, 0, 0, 0, 0, 0, 0 },
44 { 2, 4, 5, 7, 0, 0, 0, 0 },
45 { 2, 4, 5, 0, 0, 0, 0, 0 },
46 { 2, 4, 6, 0, 0, 0, 0, 0 },
47 { 2, 4, 5, 7, 5, 7, 0, 0 }
69 for (i = 0; i < 4; i++)
93 for (i = 0; i < 4; i++) {
109 y = ((a & 0x3F) << 1) | (b >> 7 & 1);
111 return y * 2 * avctx->
width + x * 2;
119 for (i = 0; i < 4; i++) {
129 for (i = 0; i < 4; i++) {
130 if ((mask >> 4) & (1 << (3 - i)))
132 if ((mask & 15) & (1 << (3 - i)))
141 for (i = 0; i < 4; i++) {
142 if ((mask >> 4) & (1 << (3 - i)))
144 if ((mask & 15) & (1 << (3 - i)))
145 dst[avctx->
width + i] = src[avctx->
width + i];
152 uint32_t opcode_size,
offset;
157 i = bytestream2_get_byte(&c->
gb);
167 a = bytestream2_get_byte(&c->
gb);
168 b = bytestream2_get_byte(&c->
gb);
172 offset = (b & 0x7F) * 2;
173 j = bytestream2_get_le16(&c->
gb) +
offset;
177 if (dst + 3 * avctx->
width + 4 > dend)
180 if ((offset & 0x3F) == 0)
181 dst += avctx->
width * 3;
183 }
while (offset < j);
190 a = bytestream2_get_byte(&c->
gb);
191 b = bytestream2_get_byte(&c->
gb);
195 if ((src + 3 * avctx->
width + 4 > send) ||
196 (dst + 3 * avctx->
width + 4 > dend))
201 dst += avctx->
width * 3;
205 opcode_size = bytestream2_get_le16(&c->
gb);
216 for (i = 0; i < avctx->
height; i += 4, dst += avctx->
width * 3) {
217 for (j = 0; j < avctx->
width; j += 4, dst += 4) {
223 opcode = opcodes[x] & 15;
226 opcode = opcodes[x] >> 4;
231 offset = avctx->
width * 2;
238 color = bytestream2_get_byte(&c->
gb);
240 mask = bytestream2_get_byte(&c->
gb);
246 a = bytestream2_get_byte(&c->
gb);
247 b = bytestream2_get_byte(&c->
gb);
252 if (src + offset + avctx->
width + 4 > send)
254 mask = bytestream2_get_byte(&c->
gb);
277 code = bytestream2_get_byte(&c->
gb);
279 for (i = 0; i < 4; i++)
295 index = bytestream2_get_byte(&c->
gb);
296 count = bytestream2_get_byte(&c->
gb) + 1;
298 if (index +
count > 256)
304 for (i = 0; i <
count; i++) {
307 r = bytestream2_get_byteu(&c->
gb);
309 g = bytestream2_get_byteu(&c->
gb);
311 b = bytestream2_get_byteu(&c->
gb);
313 *out++ = 0xFF
U << 24 | r << 16 | g << 8 |
b;
318 switch (code & 0x0F) {
331 frame = bytestream2_get_byte(&c->
gb);
350 code = bytestream2_get_byteu(&c->
gb);
351 count =
FFABS(code) + 1;
353 if (dst + count > end)
356 memset(dst, bytestream2_get_byteu(&c->
gb), count);
369 for (i = 0; i < avctx->
height; i++) {
370 memcpy(dst, src, avctx->
width);
402 int16_t *output_samples;
404 int frames,
ret, i, j, k;
414 output_samples = (int16_t *)frame->
data[0];
415 for (i = 0; i < frames; i++) {
416 t = buf + 256 *
sizeof(uint16_t);
418 for (k = 0; k < 2; k++) {
419 *output_samples++ =
AV_RL16(buf + *t * 2);