HDK
|
#include <PXL_Raster.h>
Protected Member Functions | |
virtual void | initialize () |
bool | allocRaster (int alloc_mem=1) |
void | freeRaster () |
void | applyLUT8 (const PXL_Raster *src, float *lptr[4], exint comp, float lscale, float lshift, exint size) |
void | applyLUT16 (const PXL_Raster *src, float *lptr[4], exint comp, float lscale, float lshift, exint size) |
virtual void | attemptRealloc (int64 size) |
Protected Attributes | |
PXL_DataFormat | myFormat |
PXL_Packing | myPacking |
PXL_ColorSpace | myColorSpace |
fpreal | myColorSpaceGamma |
UT_StringHolder | myColorSpaceName |
UT_StringHolder | myColorSpaceLooks |
exint | myRasterOffset |
exint | myXres |
exint | myYres |
int64 | myStride |
int64 | myRasterSize |
float | myBlack |
float | myWhite |
void * | myRaster |
bool | myAmOwner |
int | myProxyIndex |
bool | myWriteFlag |
bool | myManagesOwnTextureID |
void * | myTextureID |
void(* | myChangeCB )(PXL_Raster *, void *) |
void * | myCallerData |
UT_DimRect | myDataWindow |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t size) |
Regular new/delete operators. More... | |
static void | operator delete (void *p, size_t size) |
Regular new/delete operators. More... | |
static void * | operator new (size_t, void *p) |
static void | operator delete (void *, void *) |
Definition at line 35 of file PXL_Raster.h.
PXL_Raster::PXL_Raster | ( | ) |
PXL_Raster::PXL_Raster | ( | const PXL_Raster & | ) |
PXL_Raster::PXL_Raster | ( | PXL_Packing | p, |
PXL_DataFormat | f, | ||
exint | xres = 0 , |
||
exint | yres = 0 , |
||
int | clear = 0 , |
||
int | alloc = 1 |
||
) |
|
virtual |
void PXL_Raster::addInterest | ( | void * | callerData, |
void(*)(PXL_Raster *, void *) | changeCB | ||
) |
void PXL_Raster::adjustSaturation | ( | float | sat | ) |
|
protected |
void PXL_Raster::applyLUT | ( | const PXL_Raster * | src, |
float * | lptr[4], | ||
exint | comp, | ||
float | lstart, | ||
float | lend | ||
) |
|
protected |
|
protected |
int PXL_Raster::areComponentsRenderable | ( | ) | const |
Reimplemented in TIL_Raster.
bool PXL_Raster::clampAlpha | ( | ) |
void PXL_Raster::clearTextureID | ( | ) |
void PXL_Raster::convert8Bit | ( | unsigned | b, |
unsigned | w | ||
) |
|
virtual |
Copy over all the information and data from the src. This allocates a new raster (rather than doing a shallow copy).
Reimplemented in TIL_Raster.
|
virtual |
copies only the raster properties (res, type, etc), not the data, nor does this method allocate memory for a raster.
Reimplemented in TIL_Raster.
void PXL_Raster::dither | ( | const UT_DimRect & | crop | ) |
void PXL_Raster::dither | ( | ) |
|
protected |
void PXL_Raster::getBWPoints | ( | float & | black, |
float & | white | ||
) | const |
|
inline |
Colorspace this raster requires for correct display.
Definition at line 103 of file PXL_Raster.h.
|
inline |
Gamma that must be applied to this raster to get accurate color. Only valid for PXL_CS_LINEAR, PXL_CS_GAMMA2_2, and PXL_CS_CUSTOM_GAMMA.
Definition at line 107 of file PXL_Raster.h.
|
inline |
Definition at line 110 of file PXL_Raster.h.
|
inline |
OCIO colorspace name, valid for PXL_CS_OCIO.
Definition at line 109 of file PXL_Raster.h.
|
inline |
Definition at line 114 of file PXL_Raster.h.
|
inline |
Definition at line 209 of file PXL_Raster.h.
|
inline |
Definition at line 98 of file PXL_Raster.h.
|
virtual |
Reimplemented in TIL_Raster.
int64 PXL_Raster::getNonInterleavedSize | ( | ) | const |
|
inline |
Definition at line 95 of file PXL_Raster.h.
|
inline |
Definition at line 99 of file PXL_Raster.h.
|
inline |
Definition at line 129 of file PXL_Raster.h.
Definition at line 132 of file PXL_Raster.h.
|
inline |
Definition at line 205 of file PXL_Raster.h.
void PXL_Raster::getRange | ( | float & | min, |
float & | max, | ||
float | black = 0.0f , |
||
float | white = 1.0f , |
||
exint | comp = -1 , |
||
bool | ignore_farthest = false |
||
) | const |
Definition at line 136 of file PXL_Raster.h.
|
inline |
Definition at line 97 of file PXL_Raster.h.
|
inline |
Definition at line 96 of file PXL_Raster.h.
void* PXL_Raster::getTextureID | ( | ) | const |
|
inline |
Definition at line 93 of file PXL_Raster.h.
|
inline |
Definition at line 94 of file PXL_Raster.h.
bool PXL_Raster::hasAlpha | ( | ) | const |
|
inline |
Definition at line 116 of file PXL_Raster.h.
void PXL_Raster::init | ( | ) |
|
protectedvirtual |
Reimplemented in TIL_Raster.
void PXL_Raster::insert | ( | const PXL_Raster & | from, |
exint | x, | ||
exint | y | ||
) |
bool PXL_Raster::isInterleaved | ( | ) | const |
|
inline |
Definition at line 91 of file PXL_Raster.h.
bool PXL_Raster::load | ( | UT_IStream & | is | ) |
|
inline |
Definition at line 216 of file PXL_Raster.h.
|
delete |
Assignment disallowed, use copy() instead.
void PXL_Raster::removeInterest | ( | ) |
Reimplemented in TIL_Raster.
void PXL_Raster::setBWPoints | ( | float | black, |
float | white | ||
) |
void PXL_Raster::setColorSpace | ( | PXL_ColorSpace | space, |
fpreal | custom_gamma = 0.0 |
||
) |
Colorspace that this raster is in. Changing the color space does not affect the image values stored in this raster, only how they are interpreted. custom_gamma must be specified for PXL_CS_CUSTOM_GAMMA.
void PXL_Raster::setDataWindow | ( | const UT_DimRect & | new_rect | ) |
|
inline |
Definition at line 207 of file PXL_Raster.h.
void PXL_Raster::setFormat | ( | PXL_DataFormat | f | ) |
|
inline |
Definition at line 214 of file PXL_Raster.h.
void PXL_Raster::setOCIOColorSpace | ( | const UT_StringHolder & | space, |
const UT_StringHolder & | looks | ||
) |
void PXL_Raster::setPacking | ( | PXL_Packing | p | ) |
Definition at line 211 of file PXL_Raster.h.
void* PXL_Raster::steal | ( | ) |
void PXL_Raster::streakEdges | ( | exint | x1, |
exint | y1, | ||
exint | x2, | ||
exint | y2, | ||
PXL_StreakComponents | streak_comps = PXL_STREAK_ALL |
||
) |
bool PXL_Raster::unpremultiply | ( | PXL_Raster * | other = nullptr | ) |
|
protected |
Definition at line 261 of file PXL_Raster.h.
|
protected |
Definition at line 259 of file PXL_Raster.h.
|
protected |
Definition at line 267 of file PXL_Raster.h.
|
protected |
Definition at line 266 of file PXL_Raster.h.
|
protected |
Definition at line 251 of file PXL_Raster.h.
|
protected |
Definition at line 252 of file PXL_Raster.h.
|
protected |
Definition at line 254 of file PXL_Raster.h.
|
protected |
Definition at line 253 of file PXL_Raster.h.
|
protected |
Definition at line 269 of file PXL_Raster.h.
|
protected |
Definition at line 249 of file PXL_Raster.h.
|
protected |
Definition at line 264 of file PXL_Raster.h.
|
protected |
Definition at line 250 of file PXL_Raster.h.
|
protected |
Definition at line 262 of file PXL_Raster.h.
|
protected |
Definition at line 260 of file PXL_Raster.h.
|
protected |
Definition at line 255 of file PXL_Raster.h.
|
protected |
Definition at line 258 of file PXL_Raster.h.
|
protected |
Definition at line 257 of file PXL_Raster.h.
|
protected |
Definition at line 265 of file PXL_Raster.h.
|
protected |
Definition at line 259 of file PXL_Raster.h.
|
protected |
Definition at line 263 of file PXL_Raster.h.
|
protected |
Definition at line 256 of file PXL_Raster.h.
|
protected |
Definition at line 256 of file PXL_Raster.h.