11 #ifndef __IMG_FileTTMap__
12 #define __IMG_FileTTMap__
41 virtual void getRes(
int &xres,
int &yres,
42 int &tile_xres,
int &tile_yres)
const = 0;
44 virtual int64 getMemoryUsage(
bool inclusive)
const = 0;
46 virtual void filterPixels(
float *rgba,
int nchan,
47 int first_x,
int first_y,
49 const float *xweights,
50 const float *yweights,
51 int usize,
int vsize) = 0;
53 virtual void getPixel(
float *rgba,
int nchan,
int iu,
int iv,
57 virtual void getPixel(
void *pixel,
int iu,
int iv) = 0;
59 virtual void getScanline(
void *scanline,
60 int y,
int xres,
size_t bpp);
66 int bytes_per_scanline);
85 const char *className()
const override {
return "IMG_FileTTMap"; }
88 virtual bool textureEnabled()
const;
90 int getOGLRaster(
void *
data,
int xres,
int yres,
97 bool getMipInfo(
int aov_channel,
100 int &nchannels)
const;
103 bool getMipData(
int aov_channel,
int mip_level,
110 void unfilteredSample(
111 float *
result,
int tuple_size,
float u,
float v,
120 float ua[4] = {u,u,u,u};
121 float va[4] = {
v,
v,
v,v};
123 sample(result, tuple_size,
124 ua, va, 1, info, channel, raster);
137 void sample(
float *
result,
float &visible,
int tuple_size,
138 const float u[4],
const float v[4],
143 const float u[4],
const float v[4],
149 sample(result, visible,
150 tuple_size, u, v, quality,
151 info, channel, raster);
156 void envLookup(
float *
result,
int tuple_size,
160 void envLookup(
float *
result,
int tuple_size,
169 int64 getMemoryUsage(
bool inclusive)
const override;
171 int getChannelTupleSize(
int ch)
const;
182 int findChannelIndex(
const char *
name)
const;
192 int closeFile()
override;
204 void initScaleAndSize();
214 int getMipOffset(
int aov,
int image,
int mip=0)
const
234 return (aov*getRasterCount()+image)*myMipCount + mip;
251 int myDSMComponentCount;
252 int myDepthComplexityPlane;
253 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)
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