Ptex

Classes | Namespaces | Typedefs | Functions
PtexUtils.h File Reference
`#include <cmath>`
`#include "PtexExports.h"`
`#include "Ptexture.h"`
`#include "PtexHalf.h"`
`#include "PtexVersion.h"`

Go to the source code of this file.

## Classes
struct | PtexUtils::VecAccum< T, n >
struct | PtexUtils::VecAccum< T, 0 >
struct | PtexUtils::VecAccumN< T >
struct | PtexUtils::VecMult< T, n >
struct | PtexUtils::VecMult< T, 0 >
struct | PtexUtils::VecMultN< T >

## Namespaces
namespace | PtexUtils

## Typedefs
typedef void | PtexUtils::ReduceFn(const void *src, int sstride, int ures, int vres, void *dst, int dstride, DataType dt, int nchannels)
typedef void(* | PtexUtils::ApplyConstFn) (float weight, float *dst, void *data, int nChan)

## Functions
bool | PtexUtils::isPowerOfTwo (int x)
uint32_t | PtexUtils::ones (uint32_t x)
uint32_t | PtexUtils::floor_log2 (uint32_t x)
uint32_t | PtexUtils::ceil_log2 (uint32_t x)
float | PtexUtils::reciprocalPow2 (int power)
int | PtexUtils::calcResFromWidth (float w)
float | PtexUtils::smoothstep (float x, float a, float b)
float | PtexUtils::qsmoothstep (float x, float a, float b)
template<typename T >
T | PtexUtils::abs (T x)
float | PtexUtils::abs (float x)
template<typename T >
T | PtexUtils::min (T a, T b)
template<typename T >
T | PtexUtils::max (T a, T b)
template<typename T >
T | PtexUtils::clamp (T x, T lo, T hi)
template<typename T >
T | PtexUtils::halve (T val)
float | PtexUtils::halve (float val)
PtexHalf | PtexUtils::halve (PtexHalf val)
template<typename T >
T | PtexUtils::quarter (T val)
float | PtexUtils::quarter (float val)
PtexHalf | PtexUtils::quarter (PtexHalf val)
bool | PtexUtils::isConstant (const void *data, int stride, int ures, int vres, int pixelSize)
void | PtexUtils::interleave (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan)
void | PtexUtils::deinterleave (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan)
void | PtexUtils::encodeDifference (void *data, int size, DataType dt)
void | PtexUtils::decodeDifference (void *data, int size, DataType dt)
void | PtexUtils::reduce (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan)
void | PtexUtils::reduceu (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan)
void | PtexUtils::reducev (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan)
void | PtexUtils::reduceTri (const void *src, int sstride, int w, int, void *dst, int dstride, DataType dt, int nchan)
void | PtexUtils::average (const void *src, int sstride, int uw, int vw, void *dst, DataType dt, int nchan)
void | PtexUtils::fill (const void *src, void *dst, int dstride, int ures, int vres, int pixelsize)
void | PtexUtils::copy (const void *src, int sstride, void *dst, int dstride, int vres, int rowlen)
void | PtexUtils::blend (const void *src, float weight, void *dst, bool flip, int rowlen, DataType dt, int nchan)
void | PtexUtils::multalpha (void *data, int npixels, DataType dt, int nchannels, int alphachan)
void | PtexUtils::divalpha (void *data, int npixels, DataType dt, int nchannels, int alphachan)
void | PtexUtils::genRfaceids (const FaceInfo *faces, int nfaces, uint32_t *rfaceids, uint32_t *faceids)
void | PtexUtils::applyConst (float weight, float *dst, void *data, Ptex::DataType dt, int nChan)