11 #ifndef __IMG_FileTTMap__
12 #define __IMG_FileTTMap__
39 virtual void getRes(
int &xres,
int &yres,
40 int &tile_xres,
int &tile_yres)
const = 0;
42 virtual int64 getMemoryUsage(
bool inclusive)
const = 0;
44 virtual void filterPixels(
float *rgba,
int nchan,
45 int first_x,
int first_y,
47 const float *xweights,
48 const float *yweights,
49 int usize,
int vsize) = 0;
51 virtual void getPixel(
float *rgba,
int nchan,
int iu,
int iv,
55 virtual void getPixel(
void *pixel,
int iu,
int iv) = 0;
57 virtual void getScanline(
void *scanline,
58 int y,
int xres,
size_t bpp);
64 int bytes_per_scanline);
70 virtual bool getMinMaxColor(
UT_Vector4 &min_color,
89 const
char *className()
const override {
return "IMG_FileTTMap"; }
92 virtual bool textureEnabled()
const;
94 int getOGLRaster(
void *
data,
int xres,
int yres,
101 bool getMipInfo(
int aov_channel,
104 int &nchannels)
const;
107 bool getMipData(
int aov_channel,
int mip_level,
114 void unfilteredSample(
115 float *
result,
int tuple_size,
float u,
float v,
124 float ua[4] = {u,u,u,u};
125 float va[4] = {
v,
v,
v,v};
127 sample(result, tuple_size,
128 ua, va, 1, info, channel, raster);
141 void sample(
float *
result,
float &visible,
int tuple_size,
142 const float u[4],
const float v[4],
147 const float u[4],
const float v[4],
153 sample(result, visible,
154 tuple_size, u, v, quality,
155 info, channel, raster);
160 void envLookup(
float *
result,
int tuple_size,
164 void envLookup(
float *
result,
int tuple_size,
173 int64 getMemoryUsage(
bool inclusive)
const override;
175 int getChannelTupleSize(
int ch)
const;
186 int findChannelIndex(
const char *
name)
const;
193 {
return myTTChannels(i).get(); }
199 int closeFile()
override;
211 void initScaleAndSize();
221 int getMipOffset(
int aov,
int image,
int mip=0)
const
247 return (aov+image)*myMipCount + mip;
264 int myDSMComponentCount;
265 int myDepthComplexityPlane;
266 bool myFixMipFilterWidth;
SYS_FORCE_INLINE IMG_TTChannel * getTTChannel(exint i)
const UT_StringHolder & swrapMode() const
virtual int isReflMap() const
SIM_API const UT_StringHolder angle
virtual int getNumChannels() const
GLenum GLenum GLsizei void * image
**But if you need a result
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
virtual int getRasterCount() const
fpreal getVPixelSize() const
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
HUSD_API const char * raster()
GLuint const GLchar * name
OPENVDB_API void initialize()
Global registration of native Grid, Transform, Metadata and Point attribute types. Also initializes blosc (if enabled).
A map of string to various well defined value types.
virtual void closeChannel()
This method is called when the channel is destroyed.
void sample(float *result, int tuple_size, const float u[4], const float v[4], float quality, const IMG_TextureFilter &info, int channel, int raster)
const IMG_TTChannel * getChannel(exint i) const
fpreal getUPixelSize() const
void sample(float *result, int tuple_size, float u, float v, const IMG_TextureFilter &info, int channel, int raster)
IMG_ColorSpace
Modes for how to translate colors in images for texture lookups.
virtual int getDefaultChannelIndex() const
SYS_FORCE_INLINE exint numTTChannels() const
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)
const UT_StringHolder & twrapMode() const
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter