X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=image.h;h=08b21f0fbd25dbbd907c37289d363c0e54d99b32;hp=71a5535b16c24c919c27bd9533241a380ba4e254;hb=b2a1ec8cb2a845e6440d0dbc5a9a84464f3deecc;hpb=cba0d8d38b4a7c740e5cc47231b17b3beb648d22 diff --git a/image.h b/image.h index 71a5535b..08b21f0f 100644 --- a/image.h +++ b/image.h @@ -2,6 +2,12 @@ #ifndef IMAGE_H #define IMAGE_H +// swizzle components (even converting number of components) and flip images +// (warning: input must be different than output due to non-linear read/write) +// (tip: inputcomponentindices can contain values | 0x80000000 to tell it to +// store them directly into output, so 255 | 0x80000000 would write 255) +void Image_CopyMux(qbyte *outpixels, const qbyte *inpixels, int width, int height, int flipx, int flipy, int flipdiagonal, int numincomponents, int numoutcomponents, int *inputcomponentindices); + // applies gamma correction to RGB pixels, in can be the same as out void Image_GammaRemapRGB(const qbyte *in, qbyte *out, int pixels, const qbyte *gammar, const qbyte *gammag, const qbyte *gammab);