}
}
+PixelFormat get_srgb_pixelformat(PixelFormat pf)
+{
+ switch(pf)
+ {
+ case RGB: return SRGB;
+ case RGBA: return SRGB_ALPHA;
+ case RGB8: return SRGB8;
+ case RGBA8: return SRGB8_ALPHA8;
+ case LUMINANCE: return SLUMINANCE;
+ case LUMINANCE8: return SLUMINANCE8;
+ case LUMINANCE_ALPHA: return SLUMINANCE_ALPHA;
+ case LUMINANCE_ALPHA8: return SLUMINANCE8_ALPHA8;
+ default: return pf;
+ }
+}
+
unsigned get_component_count(PixelFormat pf)
{
switch(get_base_pixelformat(pf))