Lines Matching full:bits
61 * Per-channel threshold is 2^(8-bits). If alpha channel bits are zero,
73 static inline int convertChannel (int val, int bits)
75 if (bits == 1)
79 DE_ASSERT(deInRange32(bits, 4, 8));
80 int c = val >> (8-bits);
81 return (c << (8-bits)) | (c >> (2*bits-8));
89 * bits are filled by replicating the upper bits.