26 static char unknown_format[20];
68 case IMGFMT_Y8A:
return "Planar Y8 with alpha";
144 snprintf(unknown_format,20,
"Unknown 0x%04x",format);
145 return unknown_format;
154 if ((format & 0xff0000f0) == 0x34000050)
156 if ((format & 0xf00000ff) == 0x50000034) {
157 switch (format >> 24) {
173 switch (format & 0x00ffffff) {
198 }
else switch (format) {
236 if (x_shift) *x_shift = xs;
237 if (y_shift) *y_shift = ys;
238 if (component_bits) *component_bits =
bits;
239 bpp = 8 + ((16 >> xs) >> ys);
242 bpp *= (bits + 7) >> 3;
243 return err ? 0 : bpp;