Lines Matching defs:colour_depth
2379 int i, size, colour_count, colour_channels, colour_depth[3];
2383 colour_depth[0] = (bytestream2_get_byteu(&s->g) & 0x7f) + 1;
2384 colour_depth[1] = (bytestream2_get_byteu(&s->g) & 0x7f) + 1;
2385 colour_depth[2] = (bytestream2_get_byteu(&s->g) & 0x7f) + 1;
2386 size = (colour_depth[0] + 7 >> 3) * colour_count +
2387 (colour_depth[1] + 7 >> 3) * colour_count +
2388 (colour_depth[2] + 7 >> 3) * colour_count;
2391 colour_depth[0] > 16 ||
2392 colour_depth[1] > 16 ||
2393 colour_depth[2] > 16 ||
2402 if (colour_depth[0] <= 8) {
2403 r = bytestream2_get_byteu(&s->g) << 8 - colour_depth[0];
2404 r |= r >> colour_depth[0];
2406 r = bytestream2_get_be16u(&s->g) >> colour_depth[0] - 8;
2408 if (colour_depth[1] <= 8) {
2409 g = bytestream2_get_byteu(&s->g) << 8 - colour_depth[1];
2410 g |= g >> colour_depth[1];
2412 g = bytestream2_get_be16u(&s->g) >> colour_depth[1] - 8;
2414 if (colour_depth[2] <= 8) {
2415 b = bytestream2_get_byteu(&s->g) << 8 - colour_depth[2];
2416 b |= b >> colour_depth[2];
2418 b = bytestream2_get_be16u(&s->g) >> colour_depth[2] - 8;