50 dst = dst + height * stride;
53 code = bytestream2_get_byte(&qctx->
buffer);
58 c0 = bytestream2_get_byte(&qctx->
buffer);
59 c1 = bytestream2_get_byte(&qctx->
buffer);
60 run = ((code & 0x7) << 16) + (c0 << 8) + c1 + 2;
61 }
else if (code >= 0xF0) {
62 c0 = bytestream2_get_byte(&qctx->
buffer);
63 run = ((code & 0xF) << 8) + c0 + 2;
64 }
else if (code >= 0xE0) {
65 run = (code & 0x1F) + 2;
66 }
else if (code >= 0xC0) {
67 c0 = bytestream2_get_byte(&qctx->
buffer);
68 c1 = bytestream2_get_byte(&qctx->
buffer);
69 copy = ((code & 0x3F) << 16) + (c0 << 8) + c1 + 1;
70 }
else if (code >= 0x80) {
71 c0 = bytestream2_get_byte(&qctx->
buffer);
72 copy = ((code & 0x7F) << 8) + c0 + 1;
81 p = bytestream2_get_byte(&qctx->
buffer);
82 for(i = 0; i <
run; i++) {
84 if (filled >= width) {
93 for(i = 0; i <
copy; i++) {
94 dst[filled++] = bytestream2_get_byte(&qctx->
buffer);
95 if (filled >= width) {
108 { 0x00, 0x20, 0x20, 0x20, 0x18, 0x10, 0x10, 0x20, 0x10, 0x08, 0x18, 0x08, 0x08, 0x18, 0x10, 0x04};
110 { 0x00, 0x20, 0x18, 0x08, 0x18, 0x10, 0x20, 0x10, 0x08, 0x10, 0x20, 0x20, 0x08, 0x10, 0x18, 0x04};
125 for (i = 0; i <
height; i++)
126 memcpy(dst + (i * stride), refdata + (i * stride), width);
133 dst = dst + height * stride;
136 code = bytestream2_get_byte(&qctx->
buffer);
143 int me_w, me_h, me_x, me_y;
153 corr = bytestream2_get_byte(&qctx->
buffer);
166 if ((me_x + filled < 0) || (me_x + me_w + filled > width) ||
167 (height - me_y - me_h < 0) || (height - me_y >= orig_height) ||
168 (filled + me_w > width) || (height - me_h < 0))
170 me_x, me_y, me_w, me_h, filled, height);
173 me_plane = refdata + (filled + me_x) + (height - me_y) * stride;
174 for(j = 0; j < me_h; j++) {
175 for(i = 0; i < me_w; i++)
176 dst[filled + i - (j * stride)] = me_plane[i - (j * stride)];
180 code = bytestream2_get_byte(&qctx->
buffer);
190 p = bytestream2_get_byte(&qctx->
buffer);
191 for(i = 0; i <= code; i++) {
193 if(filled >= width) {
201 }
else if(code >= 0xC0) {
207 for(i = 0; i <= code; i++) {
208 dst[filled++] = bytestream2_get_byte(&qctx->
buffer);
209 if(filled >= width) {
217 }
else if(code >= 0x80) {
224 skip = bytestream2_get_byte(&qctx->
buffer) + 64;
226 skip = bytestream2_get_byte(&qctx->
buffer) + 320;
230 while( filled >= width) {
240 dst[filled++] = ctable[code & 0x7F];
244 if(filled >= width) {
254 void *
data,
int *got_frame,
265 if (avpkt->
size < 0x86) {
277 outdata = p->
data[0];
282 delta = bytestream2_get_byte(&a->
buffer);
312 for (i=0; i<pal_size/4; i++)