51 dst = dst + height *
stride;
54 code = bytestream2_get_byte(&qctx->
buffer);
59 c0 = bytestream2_get_byte(&qctx->
buffer);
60 c1 = bytestream2_get_byte(&qctx->
buffer);
61 run = ((code & 0x7) << 16) + (c0 << 8) + c1 + 2;
62 }
else if (code >= 0xF0) {
63 c0 = bytestream2_get_byte(&qctx->
buffer);
64 run = ((code & 0xF) << 8) + c0 + 2;
65 }
else if (code >= 0xE0) {
66 run = (code & 0x1F) + 2;
67 }
else if (code >= 0xC0) {
68 c0 = bytestream2_get_byte(&qctx->
buffer);
69 c1 = bytestream2_get_byte(&qctx->
buffer);
70 copy = ((code & 0x3F) << 16) + (c0 << 8) + c1 + 1;
71 }
else if (code >= 0x80) {
72 c0 = bytestream2_get_byte(&qctx->
buffer);
73 copy = ((code & 0x7F) << 8) + c0 + 1;
82 p = bytestream2_get_byte(&qctx->
buffer);
83 for(i = 0; i <
run; i++) {
85 if (filled >= width) {
94 for(i = 0; i <
copy; i++) {
95 dst[filled++] = bytestream2_get_byte(&qctx->
buffer);
96 if (filled >= width) {
109 { 0x00, 0x20, 0x20, 0x20, 0x18, 0x10, 0x10, 0x20, 0x10, 0x08, 0x18, 0x08, 0x08, 0x18, 0x10, 0x04};
111 { 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(refdata + (i * width), dst + (i * stride), width);
130 dst = dst + height *
stride;
133 code = bytestream2_get_byte(&qctx->
buffer);
137 while((code & 0xF0) == 0xF0) {
140 int me_w, me_h, me_x, me_y;
150 corr = bytestream2_get_byte(&qctx->
buffer);
163 if ((me_x + filled < 0) || (me_x + me_w + filled > width) ||
164 (height - me_y - me_h < 0) || (height - me_y > orig_height) ||
165 (filled + me_w > width) || (height - me_h < 0))
167 me_x, me_y, me_w, me_h, filled, height);
170 me_plane = refdata + (filled + me_x) + (height - me_y) *
width;
171 for(j = 0; j < me_h; j++) {
172 for(i = 0; i < me_w; i++)
173 dst[filled + i - (j * stride)] = me_plane[i - (j *
width)];
177 code = bytestream2_get_byte(&qctx->
buffer);
187 p = bytestream2_get_byte(&qctx->
buffer);
188 for(i = 0; i <= code; i++) {
190 if(filled >= width) {
198 }
else if(code >= 0xC0) {
201 for(i = 0; i <= code; i++) {
202 dst[filled++] = bytestream2_get_byte(&qctx->
buffer);
203 if(filled >= width) {
211 }
else if(code >= 0x80) {
218 skip = bytestream2_get_byte(&qctx->
buffer) + 64;
220 skip = bytestream2_get_byte(&qctx->
buffer) + 320;
224 while( filled >= width) {
234 dst[filled++] = ctable[code & 0x7F];
238 if(filled >= width) {
248 void *
data,
int *got_frame,
258 if (avpkt->
size < 0x86) {
268 outdata = p->
data[0];
273 delta = bytestream2_get_byte(&a->
buffer);