Lines Matching refs:bpp
27 int ff_rle_count_pixels(const uint8_t *start, int len, int bpp, int same) in ff_rle_count_pixels() argument
32 for (pos = start + bpp; count < FFMIN(127, len); pos += bpp, count++) { in ff_rle_count_pixels()
33 if (same != !memcmp(pos - bpp, pos, bpp)) { in ff_rle_count_pixels()
38 if (bpp == 1 && count + 1 < FFMIN(127, len) && *pos != *(pos + 1)) in ff_rle_count_pixels()
52 int ff_rle_encode(uint8_t *outbuf, int out_size, const uint8_t *ptr, int bpp, in ff_rle_encode() argument
60 if ((count = ff_rle_count_pixels(ptr, w - x, bpp, 1)) > 1) { in ff_rle_encode()
61 if (out + bpp + 1 > outbuf + out_size) in ff_rle_encode()
65 memcpy(out, ptr, bpp); in ff_rle_encode()
66 out += bpp; in ff_rle_encode()
69 count = ff_rle_count_pixels(ptr, w - x, bpp, 0); in ff_rle_encode()
70 if (out + bpp * count >= outbuf + out_size) in ff_rle_encode()
74 memcpy(out, ptr, bpp * count); in ff_rle_encode()
75 out += bpp * count; in ff_rle_encode()
78 ptr += count * bpp; in ff_rle_encode()