Lines Matching refs:bpp
68 sample (uint8_t * raw, int offs, int bpp, int endian)
73 switch (bpp) {
93 raw += (offs >> 8) * bpp;
94 return (raw[bpp] - raw[0]) * frac + (raw[0] << 8);
104 uint8_t * buf, int bpp, int endian)
114 if (bpp == 14)
116 else if (bpp == 15)
118 else if (bpp == 16)
121 for (i = d->cri_bytes; i > 0; raw += (bpp >= 14 && bpp <= 16) ? 2 : bpp, i--) {
122 if (bpp >= 14 && bpp <= 16) {
127 ((bpp == 15) ? 2 : 3);
131 d->thresh += ((int) raw[0] - tr) * (int) ABS (raw[bpp] - raw[0]);
154 c = c * 2 + (sample (raw, i, bpp, endian) >= tr);
168 c += (sample (raw, i, bpp, endian) >= tr) << 7;
180 c = c * 2 + (sample (raw, i, bpp, endian) >= tr);
194 c += (sample (raw, i, bpp, endian) >= tr) << 7;
206 c = c * 2 + (sample (raw, i, bpp, endian) >= tr);
224 if (bpp >= 14 && bpp <= 16) {
228 t += raw[bpp];