16 #ifndef IMG_FILE_FILTER_FLIP_H
17 #define IMG_FILE_FILTER_FLIP_H
35 const char *className()
const override {
return "IMG_FileFilterFlip"; }
37 void init(
bool flipx,
bool flipy,
bool flop);
39 const void *readPlaneScanline(
int y,
const IMG_Plane &
pi)
override;
41 int writePlaneScanline(
const void *
data,
int y,
50 float *
data)
override;
59 const void *extractScanline(
int y,
const PXL_Raster *p);
61 void finishedScanline(
int scan)
override;
63 void flipHorizontal(
void *dest,
const void *
source,
66 void computeXY(
int &
x,
int &
y);
bool getDeepPixelPlaneData(int x, int y, const IMG_Plane &plane, float *data) override
Describes the format and layout of a single plane in an image The plane specifies the format and name...
int getDeepPixelSamples(int x, int y) override
int isTopFirst() const override
bool getDeepPixelData(int x, int y, float *const *data) override
ImageBuf OIIO_API flop(const ImageBuf &src, ROI roi={}, int nthreads=0)
GLsizei GLsizei GLchar * source
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
void computeCommonData() override
bool writeDeepPixelData(int x, int y, const PXL_DeepSampleListPtr &p) override
bool readDeepPixelData(int x, int y, PXL_DeepSampleList &p) override
constexpr T pi()
Pi constant taken from Boost to match old behaviour.