26 static char unknown_format[20];
66 case IMGFMT_Y8A:
return "Planar Y8 with alpha";
141 snprintf(unknown_format,20,
"Unknown 0x%04x",format);
142 return unknown_format;
151 if ((format & 0xff0000f0) == 0x34000050)
153 if ((format & 0xf00000ff) == 0x50000034) {
154 switch (format >> 24) {
170 switch (format & 0x00ffffff) {
195 }
else switch (format) {
225 if (x_shift) *x_shift = xs;
226 if (y_shift) *y_shift = ys;
227 if (component_bits) *component_bits =
bits;
228 bpp = 8 + ((16 >> xs) >> ys);
231 bpp *= (bits + 7) >> 3;
232 return err ? 0 : bpp;