Ptex
|
Classes | |
struct | VecAccum |
struct | VecAccum< T, 0 > |
struct | VecAccumN |
struct | VecMult |
struct | VecMult< T, 0 > |
struct | VecMultN |
Typedefs | |
typedef void | ReduceFn(const void *src, int sstride, int ures, int vres, void *dst, int dstride, DataType dt, int nchannels) |
typedef void(* | ApplyConstFn) (float weight, float *dst, void *data, int nChan) |
Functions | |
bool | isConstant (const void *data, int stride, int ures, int vres, int pixelSize) |
void | interleave (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan) |
void | deinterleave (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan) |
void | encodeDifference (void *data, int size, DataType dt) |
void | decodeDifference (void *data, int size, DataType dt) |
void | reduce (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan) |
void | reduceu (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan) |
void | reducev (const void *src, int sstride, int uw, int vw, void *dst, int dstride, DataType dt, int nchan) |
void | reduceTri (const void *src, int sstride, int w, int, void *dst, int dstride, DataType dt, int nchan) |
void | fill (const void *src, void *dst, int dstride, int ures, int vres, int pixelsize) |
void | copy (const void *src, int sstride, void *dst, int dstride, int vres, int rowlen) |
void | blend (const void *src, float weight, void *dst, bool flip, int rowlen, DataType dt, int nchan) |
void | average (const void *src, int sstride, int uw, int vw, void *dst, DataType dt, int nchan) |
void | multalpha (void *data, int npixels, DataType dt, int nchannels, int alphachan) |
void | divalpha (void *data, int npixels, DataType dt, int nchannels, int alphachan) |
void | genRfaceids (const FaceInfo *faces, int nfaces, uint32_t *rfaceids, uint32_t *faceids) |
bool | isPowerOfTwo (int x) |
uint32_t | ones (uint32_t x) |
uint32_t | floor_log2 (uint32_t x) |
uint32_t | ceil_log2 (uint32_t x) |
float | reciprocalPow2 (int power) |
int | calcResFromWidth (float w) |
float | smoothstep (float x, float a, float b) |
float | qsmoothstep (float x, float a, float b) |
template<typename T > | |
T | abs (T x) |
float | abs (float x) |
template<typename T > | |
T | min (T a, T b) |
template<typename T > | |
T | max (T a, T b) |
template<typename T > | |
T | clamp (T x, T lo, T hi) |
template<typename T > | |
T | halve (T val) |
float | halve (float val) |
PtexHalf | halve (PtexHalf val) |
template<typename T > | |
T | quarter (T val) |
float | quarter (float val) |
PtexHalf | quarter (PtexHalf val) |
void | applyConst (float weight, float *dst, void *data, Ptex::DataType dt, int nChan) |
Variables | |
ApplyConstFn | applyConstFunctions [20] |
typedef void(* PtexUtils::ApplyConstFn) (float weight, float *dst, void *data, int nChan) |
Definition at line 277 of file PtexUtils.h.
typedef void PtexUtils::ReduceFn(const void *src, int sstride, int ures, int vres, void *dst, int dstride, DataType dt, int nchannels) |
Definition at line 185 of file PtexUtils.h.
|
inline |
Definition at line 136 of file PtexUtils.h.
|
inline |
Definition at line 134 of file PtexUtils.h.
Referenced by PtexWidth4Filter::blur(), PtexSeparableFilter::eval(), and PtexBicubicFilter::kernelFn().
|
inline |
Definition at line 279 of file PtexUtils.h.
References applyConstFunctions.
Referenced by PtexSeparableKernel::applyConst(), and PtexTriangleKernelIter::applyConst().
void PtexUtils::average | ( | const void * | src, |
int | sstride, | ||
int | uw, | ||
int | vw, | ||
void * | dst, | ||
DataType | dt, | ||
int | nchan | ||
) |
Definition at line 522 of file PtexUtils.cpp.
References average().
Referenced by average(), PtexMainWriter::storeConstValue(), and PtexIncrWriter::writeFace().
void PtexUtils::blend | ( | const void * | src, |
float | weight, | ||
void * | dst, | ||
bool | flip, | ||
int | rowlen, | ||
DataType | dt, | ||
int | nchan | ||
) |
|
inline |
Definition at line 103 of file PtexUtils.h.
Referenced by PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), PtexTriangleFilter::buildKernel(), and PtexWidth4Filter::buildKernelAxis().
|
inline |
Definition at line 80 of file PtexUtils.h.
References isPowerOfTwo(), and ones().
|
inline |
Definition at line 154 of file PtexUtils.h.
Referenced by PtexSeparableFilter::eval(), PtexTriangleFilter::eval(), PtexPointFilter::eval(), and PtexPointFilterTri::eval().
void PtexUtils::copy | ( | const void * | src, |
int | sstride, | ||
void * | dst, | ||
int | dstride, | ||
int | vres, | ||
int | rowlen | ||
) |
Definition at line 438 of file PtexUtils.cpp.
Referenced by PtexReader::getData(), PtexReader::TiledFaceBase::reduce(), PtexMainWriter::writeFace(), and PtexIncrWriter::writeFace().
void PtexUtils::decodeDifference | ( | void * | data, |
int | size, | ||
DataType | dt | ||
) |
Definition at line 271 of file PtexUtils.cpp.
References decodeDifference().
Referenced by decodeDifference(), and PtexReader::readFaceData().
void PtexUtils::deinterleave | ( | const void * | src, |
int | sstride, | ||
int | uw, | ||
int | vw, | ||
void * | dst, | ||
int | dstride, | ||
DataType | dt, | ||
int | nchan | ||
) |
Definition at line 226 of file PtexUtils.cpp.
References deinterleave().
Referenced by deinterleave(), and PtexWriterBase::writeFaceBlock().
void PtexUtils::divalpha | ( | void * | data, |
int | npixels, | ||
DataType | dt, | ||
int | nchannels, | ||
int | alphachan | ||
) |
Definition at line 618 of file PtexUtils.cpp.
References divalpha().
Referenced by divalpha(), PtexMainWriter::storeConstValue(), and PtexIncrWriter::writeFace().
void PtexUtils::encodeDifference | ( | void * | data, |
int | size, | ||
DataType | dt | ||
) |
Definition at line 251 of file PtexUtils.cpp.
References encodeDifference().
Referenced by encodeDifference(), and PtexWriterBase::writeFaceBlock().
void PtexUtils::fill | ( | const void * | src, |
void * | dst, | ||
int | dstride, | ||
int | ures, | ||
int | vres, | ||
int | pixelsize | ||
) |
Definition at line 422 of file PtexUtils.cpp.
Referenced by PtexReader::getData(), PtexReader::TiledReducedFace::getTile(), and PtexReader::TiledFaceBase::reduce().
|
inline |
Definition at line 69 of file PtexUtils.h.
References ones().
Referenced by PtexWriterBase::calcTileRes().
void PtexUtils::genRfaceids | ( | const FaceInfo * | faces, |
int | nfaces, | ||
uint32_t * | rfaceids, | ||
uint32_t * | faceids | ||
) |
Definition at line 630 of file PtexUtils.cpp.
References faces.
Referenced by PtexMainWriter::generateReductions(), and PtexReader::readFaceInfo().
|
inline |
Definition at line 159 of file PtexUtils.h.
Definition at line 160 of file PtexUtils.h.
|
inline |
Definition at line 157 of file PtexUtils.h.
void PtexUtils::interleave | ( | const void * | src, |
int | sstride, | ||
int | uw, | ||
int | vw, | ||
void * | dst, | ||
int | dstride, | ||
DataType | dt, | ||
int | nchan | ||
) |
Definition at line 189 of file PtexUtils.cpp.
References interleave().
Referenced by interleave(), and PtexReader::readFaceData().
bool PtexUtils::isConstant | ( | const void * | data, |
int | stride, | ||
int | ures, | ||
int | vres, | ||
int | pixelSize | ||
) |
Definition at line 147 of file PtexUtils.cpp.
Referenced by PtexMainWriter::writeFace(), PtexIncrWriter::writeFace(), and PtexWriterBase::writeFaceData().
|
inline |
Definition at line 53 of file PtexUtils.h.
Referenced by ceil_log2().
|
inline |
Definition at line 151 of file PtexUtils.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), PtexTriangleKernelIter::applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), PtexTriangleFilter::buildKernel(), PtexWidth4Filter::buildKernelAxis(), clamp(), PtexTriangleKernel::clampExtent(), PtexMainWriter::generateReductions(), and PtexReader::open().
|
inline |
Definition at line 148 of file PtexUtils.h.
Referenced by PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::Apply(), PtexTriangleKernelIter::applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), PtexTriangleFilter::buildKernel(), PtexWriterBase::calcTileRes(), clamp(), PtexTriangleKernel::clampExtent(), PtexTriangleKernel::clampRes(), PtexSeparableFilter::eval(), PtexTriangleFilter::eval(), PtexIncrWriter::finish(), PtexMainWriter::generateReductions(), PtexReader::getPixel(), PtexReader::getPixel(), PtexSeparableKernel::makeSymmetric(), PtexReader::open(), PtexIncrWriter::PtexIncrWriter(), and PtexReader::reopenFP().
void PtexUtils::multalpha | ( | void * | data, |
int | npixels, | ||
DataType | dt, | ||
int | nchannels, | ||
int | alphachan | ||
) |
Definition at line 579 of file PtexUtils.cpp.
References multalpha().
Referenced by multalpha(), PtexReader::readConstData(), PtexReader::readEditFaceData(), PtexReader::readFaceData(), PtexMainWriter::writeFace(), and PtexIncrWriter::writeFace().
|
inline |
Definition at line 58 of file PtexUtils.h.
Referenced by ceil_log2(), and floor_log2().
|
inline |
Definition at line 124 of file PtexUtils.h.
|
inline |
Definition at line 165 of file PtexUtils.h.
Definition at line 166 of file PtexUtils.h.
|
inline |
Definition at line 163 of file PtexUtils.h.
|
inline |
Definition at line 92 of file PtexUtils.h.
Referenced by PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), and PtexWidth4Filter::buildKernelAxis().
void PtexUtils::reduce | ( | const void * | src, |
int | sstride, | ||
int | uw, | ||
int | vw, | ||
void * | dst, | ||
int | dstride, | ||
DataType | dt, | ||
int | nchan | ||
) |
Definition at line 299 of file PtexUtils.cpp.
References reduce().
Referenced by PtexWriterBase::PtexWriterBase(), and reduce().
void PtexUtils::reduceTri | ( | const void * | src, |
int | sstride, | ||
int | w, | ||
int | , | ||
void * | dst, | ||
int | dstride, | ||
DataType | dt, | ||
int | nchan | ||
) |
Definition at line 406 of file PtexUtils.cpp.
References reduceTri().
Referenced by PtexReader::getData(), PtexWriterBase::PtexWriterBase(), and reduceTri().
void PtexUtils::reduceu | ( | const void * | src, |
int | sstride, | ||
int | uw, | ||
int | vw, | ||
void * | dst, | ||
int | dstride, | ||
DataType | dt, | ||
int | nchan | ||
) |
Definition at line 333 of file PtexUtils.cpp.
References reduceu().
Referenced by PtexReader::getData(), and reduceu().
void PtexUtils::reducev | ( | const void * | src, |
int | sstride, | ||
int | uw, | ||
int | vw, | ||
void * | dst, | ||
int | dstride, | ||
DataType | dt, | ||
int | nchan | ||
) |
Definition at line 366 of file PtexUtils.cpp.
References reducev().
Referenced by PtexReader::getData(), and reducev().
|
inline |
Definition at line 116 of file PtexUtils.h.
ApplyConstFn PtexUtils::applyConstFunctions |
Definition at line 668 of file PtexUtils.cpp.
Referenced by applyConst().