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);
83 const
char *className()
const override {
return "IMG_FileTTMap"; }
86 virtual bool textureEnabled()
const;
88 int getOGLRaster(
void *
data,
int xres,
int yres,
95 bool getMipInfo(
int aov_channel,
98 int &nchannels)
const;
101 bool getMipData(
int aov_channel,
int mip_level,
108 void unfilteredSample(
109 float *
result,
int tuple_size,
float u,
float v,
118 float ua[4] = {u,u,u,u};
119 float va[4] = {
v,
v,
v,v};
121 sample(result, tuple_size,
122 ua, va, 1, info, channel, raster);
135 void sample(
float *
result,
float &visible,
int tuple_size,
136 const float u[4],
const float v[4],
141 const float u[4],
const float v[4],
147 sample(result, visible,
148 tuple_size, u, v, quality,
149 info, channel, raster);
154 void envLookup(
float *
result,
int tuple_size,
158 void envLookup(
float *
result,
int tuple_size,
167 int64 getMemoryUsage(
bool inclusive)
const override;
169 int getChannelTupleSize(
int ch)
const;
180 int findChannelIndex(
const char *
name)
const;
187 {
return myTTChannels(i).get(); }
193 int closeFile()
override;
205 void initScaleAndSize();
215 int getMipOffset(
int aov,
int image,
int mip=0)
const
235 return (aov*getRasterCount()+image)*myMipCount + mip;
252 int myDSMComponentCount;
253 int myDepthComplexityPlane;
254 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)
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