39 for(pos = start + bpp; count <
FFMIN(127, len); pos += bpp, count ++) {
40 if(same != !memcmp(pos-bpp, pos, bpp)) {
44 if(bpp == 1 && count + 1 <
FFMIN(127, len) && *pos != *(pos+1))
59 int add_rep,
int xor_rep,
int add_raw,
int xor_raw)
64 for(x = 0; x < w; x +=
count) {
67 if(out + bpp + 1 > outbuf + out_size)
return -1;
68 *out++ = (count ^ xor_rep) + add_rep;
69 memcpy(out, ptr, bpp);
74 if(out + bpp*count >= outbuf + out_size)
return -1;
75 *out++ = (count ^ xor_raw) + add_raw;
77 memcpy(out, ptr, bpp * count);