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) |
Additional Inherited Members | |
Static Public Member Functions inherited from UT_SmallObject< PXL_Raster, UT_SMALLOBJECT_CLEANPAGES_OFF, 250, UT_SMALLOBJECT_THREADSAFE_ON > | |
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 | ||
) |
|
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 | ( | ) |
void PXL_Raster::flipVertical | ( | ) |
|
protected |
|
inline |
Colorspace this raster requires for correct display.
Definition at line 118 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 122 of file PXL_Raster.h.
|
inline |
OCIO colorspace name, valid for PXL_CS_OCIO.
Definition at line 124 of file PXL_Raster.h.
exint PXL_Raster::getCorrectedXres | ( | ) | const |
exint PXL_Raster::getCorrectedYres | ( | ) | const |
|
inline |
Definition at line 130 of file PXL_Raster.h.
|
inline |
Definition at line 231 of file PXL_Raster.h.
|
inline |
Definition at line 102 of file PXL_Raster.h.
|
virtual |
Reimplemented in TIL_Raster.
int64 PXL_Raster::getNonInterleavedSize | ( | ) | const |
|
inline |
Definition at line 105 of file PXL_Raster.h.
|
inline |
Definition at line 99 of file PXL_Raster.h.
|
inline |
Definition at line 125 of file PXL_Raster.h.
|
inline |
Definition at line 126 of file PXL_Raster.h.
|
inline |
Definition at line 103 of file PXL_Raster.h.
|
inline |
Definition at line 145 of file PXL_Raster.h.
Definition at line 148 of file PXL_Raster.h.
|
inline |
Definition at line 227 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 152 of file PXL_Raster.h.
|
inline |
Definition at line 110 of file PXL_Raster.h.
|
inline |
Definition at line 101 of file PXL_Raster.h.
|
inline |
Definition at line 100 of file PXL_Raster.h.
void* PXL_Raster::getTextureID | ( | ) | const |
|
inline |
Definition at line 97 of file PXL_Raster.h.
|
inline |
Definition at line 98 of file PXL_Raster.h.
bool PXL_Raster::hasAlpha | ( | ) | const |
|
inline |
Definition at line 132 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 111 of file PXL_Raster.h.
|
inline |
Definition at line 95 of file PXL_Raster.h.
bool PXL_Raster::load | ( | UT_IStream & | is | ) |
|
inline |
Definition at line 238 of file PXL_Raster.h.
|
delete |
Assignment disallowed, use copy() instead.
bool PXL_Raster::premultiply | ( | PXL_Raster * | other = nullptr | ) |
void PXL_Raster::removeInterest | ( | ) |
Reimplemented in TIL_Raster.
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 229 of file PXL_Raster.h.
void PXL_Raster::setFormat | ( | PXL_DataFormat | f | ) |
|
inline |
Definition at line 236 of file PXL_Raster.h.
void PXL_Raster::setOCIOColorSpace | ( | const UT_StringHolder & | space | ) |
void PXL_Raster::setOCIODisplayView | ( | const UT_StringHolder & | baked_display, |
const UT_StringHolder & | baked_view | ||
) |
void PXL_Raster::setOCIOParms | ( | const UT_StringHolder & | color_space, |
const UT_StringHolder & | baked_display, | ||
const UT_StringHolder & | baked_view | ||
) |
void PXL_Raster::setPacking | ( | PXL_Packing | p | ) |
Definition at line 233 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 286 of file PXL_Raster.h.
|
protected |
Definition at line 283 of file PXL_Raster.h.
|
protected |
Definition at line 292 of file PXL_Raster.h.
|
protected |
Definition at line 291 of file PXL_Raster.h.
|
protected |
Definition at line 274 of file PXL_Raster.h.
|
protected |
Definition at line 275 of file PXL_Raster.h.
|
protected |
Definition at line 276 of file PXL_Raster.h.
|
protected |
Definition at line 294 of file PXL_Raster.h.
|
protected |
Definition at line 272 of file PXL_Raster.h.
|
protected |
Definition at line 289 of file PXL_Raster.h.
|
protected |
Definition at line 277 of file PXL_Raster.h.
|
protected |
Definition at line 278 of file PXL_Raster.h.
|
protected |
Definition at line 273 of file PXL_Raster.h.
|
protected |
Definition at line 287 of file PXL_Raster.h.
|
protected |
Definition at line 285 of file PXL_Raster.h.
|
protected |
Definition at line 279 of file PXL_Raster.h.
|
protected |
Definition at line 282 of file PXL_Raster.h.
|
protected |
Definition at line 284 of file PXL_Raster.h.
|
protected |
Definition at line 281 of file PXL_Raster.h.
|
protected |
Definition at line 290 of file PXL_Raster.h.
|
protected |
Definition at line 283 of file PXL_Raster.h.
|
protected |
Definition at line 288 of file PXL_Raster.h.
|
protected |
Definition at line 280 of file PXL_Raster.h.
|
protected |
Definition at line 280 of file PXL_Raster.h.