6 #ifndef INCLUDED_IMF_FLAT_IMAGE_CHANNEL_H
7 #define INCLUDED_IMF_FLAT_IMAGE_CHANNEL_H
51 virtual Slice slice ()
const = 0;
79 virtual void resetBasePointer () = 0;
107 T & operator () (
int x,
int y);
108 const T & operator () (
int x,
int y)
const;
117 T & at (
int x,
int y);
118 const T & at (
int x,
int y)
const;
129 const T *
row (
int r)
const;
185 return _base[(y / ySampling()) * pixelsPerRow() + (x / xSampling())];
193 return _base[(y / ySampling()) * pixelsPerRow() + (x / xSampling())];
202 return _base[(y / ySampling()) * pixelsPerRow() + (x / xSampling())];
211 return _base[(y / ySampling()) * pixelsPerRow() + (x / xSampling())];
219 return _base + r * pixelsPerRow();
227 return _base + n * pixelsPerRow();
230 #ifndef COMPILING_IMF_FLAT_IMAGE_CHANNEL
FlatImageChannel & operator=(const FlatImageChannel &other)=delete
#define IMFUTIL_EXPORT_EXTERN_TEMPLATE
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
#define IMFUTIL_EXPORT_TEMPLATE_TYPE
virtual PixelType pixelType() const =0
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER enum IMF_EXPORT_ENUM PixelType
TypedFlatImageChannel< float > FlatFloatChannel
TypedFlatImageChannel< half > FlatHalfChannel
T & operator()(int x, int y)
virtual void resetBasePointer()=0
virtual IMFUTIL_EXPORT void resize()
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
GLenum GLenum GLsizei void * row
TypedFlatImageChannel< unsigned int > FlatUIntChannel
virtual Slice slice() const =0