mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-10-24 12:41:11 +03:00
133 lines
5.2 KiB
C
133 lines
5.2 KiB
C
#ifndef __MODE_H__
|
|
#define __MODE_H__
|
|
|
|
|
|
typedef struct {
|
|
const char * const name;
|
|
} Mode;
|
|
|
|
extern const Mode * const IMAGING_MODE_1;
|
|
extern const Mode * const IMAGING_MODE_CMYK;
|
|
extern const Mode * const IMAGING_MODE_F;
|
|
extern const Mode * const IMAGING_MODE_HSV;
|
|
extern const Mode * const IMAGING_MODE_I;
|
|
extern const Mode * const IMAGING_MODE_L;
|
|
extern const Mode * const IMAGING_MODE_LA;
|
|
extern const Mode * const IMAGING_MODE_LAB;
|
|
extern const Mode * const IMAGING_MODE_La;
|
|
extern const Mode * const IMAGING_MODE_P;
|
|
extern const Mode * const IMAGING_MODE_PA;
|
|
extern const Mode * const IMAGING_MODE_RGB;
|
|
extern const Mode * const IMAGING_MODE_RGBA;
|
|
extern const Mode * const IMAGING_MODE_RGBX;
|
|
extern const Mode * const IMAGING_MODE_RGBa;
|
|
extern const Mode * const IMAGING_MODE_YCbCr;
|
|
|
|
extern const Mode * const IMAGING_MODE_BGR_15;
|
|
extern const Mode * const IMAGING_MODE_BGR_16;
|
|
extern const Mode * const IMAGING_MODE_BGR_24;
|
|
|
|
extern const Mode * const IMAGING_MODE_I_16;
|
|
extern const Mode * const IMAGING_MODE_I_16L;
|
|
extern const Mode * const IMAGING_MODE_I_16B;
|
|
extern const Mode * const IMAGING_MODE_I_16N;
|
|
extern const Mode * const IMAGING_MODE_I_32L;
|
|
extern const Mode * const IMAGING_MODE_I_32B;
|
|
|
|
const Mode * findMode(const char * const name);
|
|
|
|
|
|
typedef struct {
|
|
const char * const name;
|
|
} RawMode;
|
|
|
|
// Non-rawmode aliases.
|
|
extern const RawMode * const IMAGING_RAWMODE_1;
|
|
extern const RawMode * const IMAGING_RAWMODE_CMYK;
|
|
extern const RawMode * const IMAGING_RAWMODE_F;
|
|
extern const RawMode * const IMAGING_RAWMODE_HSV;
|
|
extern const RawMode * const IMAGING_RAWMODE_I;
|
|
extern const RawMode * const IMAGING_RAWMODE_L;
|
|
extern const RawMode * const IMAGING_RAWMODE_LA;
|
|
extern const RawMode * const IMAGING_RAWMODE_LAB;
|
|
extern const RawMode * const IMAGING_RAWMODE_La;
|
|
extern const RawMode * const IMAGING_RAWMODE_P;
|
|
extern const RawMode * const IMAGING_RAWMODE_PA;
|
|
extern const RawMode * const IMAGING_RAWMODE_RGB;
|
|
extern const RawMode * const IMAGING_RAWMODE_RGBA;
|
|
extern const RawMode * const IMAGING_RAWMODE_RGBX;
|
|
extern const RawMode * const IMAGING_RAWMODE_RGBa;
|
|
extern const RawMode * const IMAGING_RAWMODE_YCbCr;
|
|
|
|
// BGR modes.
|
|
extern const RawMode * const IMAGING_RAWMODE_BGR_15;
|
|
extern const RawMode * const IMAGING_RAWMODE_BGR_16;
|
|
extern const RawMode * const IMAGING_RAWMODE_BGR_24;
|
|
extern const RawMode * const IMAGING_RAWMODE_BGR_32;
|
|
|
|
// I;* modes.
|
|
extern const RawMode * const IMAGING_RAWMODE_I_16;
|
|
extern const RawMode * const IMAGING_RAWMODE_I_16L;
|
|
extern const RawMode * const IMAGING_RAWMODE_I_16B;
|
|
extern const RawMode * const IMAGING_RAWMODE_I_16N;
|
|
extern const RawMode * const IMAGING_RAWMODE_I_32L;
|
|
extern const RawMode * const IMAGING_RAWMODE_I_32B;
|
|
|
|
// Rawmodes
|
|
extern const RawMode * const IMAGING_RAWMODE_1_I;
|
|
extern const RawMode * const IMAGING_RAWMODE_1_IR;
|
|
extern const RawMode * const IMAGING_RAWMODE_1_R;
|
|
extern const RawMode * const IMAGING_RAWMODE_A;
|
|
extern const RawMode * const IMAGING_RAWMODE_ABGR;
|
|
extern const RawMode * const IMAGING_RAWMODE_A_16N;
|
|
extern const RawMode * const IMAGING_RAWMODE_B;
|
|
extern const RawMode * const IMAGING_RAWMODE_BGR;
|
|
extern const RawMode * const IMAGING_RAWMODE_BGRA;
|
|
extern const RawMode * const IMAGING_RAWMODE_BGRX;
|
|
extern const RawMode * const IMAGING_RAWMODE_BGRa;
|
|
extern const RawMode * const IMAGING_RAWMODE_B_16N;
|
|
extern const RawMode * const IMAGING_RAWMODE_C;
|
|
extern const RawMode * const IMAGING_RAWMODE_CMYK_I;
|
|
extern const RawMode * const IMAGING_RAWMODE_CMYK_L;
|
|
extern const RawMode * const IMAGING_RAWMODE_Cb;
|
|
extern const RawMode * const IMAGING_RAWMODE_Cr;
|
|
extern const RawMode * const IMAGING_RAWMODE_F_32F;
|
|
extern const RawMode * const IMAGING_RAWMODE_F_32NF;
|
|
extern const RawMode * const IMAGING_RAWMODE_G;
|
|
extern const RawMode * const IMAGING_RAWMODE_G_16N;
|
|
extern const RawMode * const IMAGING_RAWMODE_H;
|
|
extern const RawMode * const IMAGING_RAWMODE_I_32NS;
|
|
extern const RawMode * const IMAGING_RAWMODE_I_32S;
|
|
extern const RawMode * const IMAGING_RAWMODE_K;
|
|
extern const RawMode * const IMAGING_RAWMODE_LA_L;
|
|
extern const RawMode * const IMAGING_RAWMODE_L_16;
|
|
extern const RawMode * const IMAGING_RAWMODE_L_16B;
|
|
extern const RawMode * const IMAGING_RAWMODE_M;
|
|
extern const RawMode * const IMAGING_RAWMODE_PA_L;
|
|
extern const RawMode * const IMAGING_RAWMODE_P_1;
|
|
extern const RawMode * const IMAGING_RAWMODE_P_2;
|
|
extern const RawMode * const IMAGING_RAWMODE_P_4;
|
|
extern const RawMode * const IMAGING_RAWMODE_R;
|
|
extern const RawMode * const IMAGING_RAWMODE_RGBA_L;
|
|
extern const RawMode * const IMAGING_RAWMODE_RGBX_L;
|
|
extern const RawMode * const IMAGING_RAWMODE_RGB_L;
|
|
extern const RawMode * const IMAGING_RAWMODE_R_16N;
|
|
extern const RawMode * const IMAGING_RAWMODE_S;
|
|
extern const RawMode * const IMAGING_RAWMODE_V;
|
|
extern const RawMode * const IMAGING_RAWMODE_X;
|
|
extern const RawMode * const IMAGING_RAWMODE_XBGR;
|
|
extern const RawMode * const IMAGING_RAWMODE_XRGB;
|
|
extern const RawMode * const IMAGING_RAWMODE_Y;
|
|
extern const RawMode * const IMAGING_RAWMODE_YCC_P;
|
|
extern const RawMode * const IMAGING_RAWMODE_YCbCrK;
|
|
extern const RawMode * const IMAGING_RAWMODE_YCbCrX;
|
|
extern const RawMode * const IMAGING_RAWMODE_YCbCr_L;
|
|
extern const RawMode * const IMAGING_RAWMODE_aBGR;
|
|
|
|
const RawMode * findRawMode(const char * const name);
|
|
|
|
|
|
int isModeI16(const Mode * const mode);
|
|
|
|
#endif // __MODE_H__
|