13 #ifndef IMG_FILE_FILTER_CONVERT_H
14 #define IMG_FILE_FILTER_CONVERT_H
21 class img_PlaneConvert;
31 const char *className()
const override {
return "IMG_FileFilterConvert"; }
39 const char *plane_name);
41 const void *readPlaneScanline(
int y,
const IMG_Plane &
pi)
override;
43 int writePlaneScanline(
const void *
data,
int y,
46 void convertPlane(
int pindex,
52 void convertData(
void *dest,
const void *
source,
int pindex,
int y);
54 void splitAlphaFromColor(
void *dest,
const void *
alpha,
int pindex,
56 void writeAlphaToColor(
void *dest,
const void *
alpha,
int pindex);
58 bool findAlphaPlane(
const IMG_Stat &stat,
int &aindex,
int &acomp);
66 const char *plane_name);
74 const char *plane_name);
Describes the format and layout of a single plane in an image The plane specifies the format and name...
GLsizei GLsizei GLchar * source
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
GLdouble GLdouble GLint GLint order
GLfloat GLfloat GLfloat alpha
Contains the details of a specific image file, used by IMG_File. This class contains all the high-lev...
constexpr T pi()
Pi constant taken from Boost to match old behaviour.