HDK
|
#include <IMG_Raster.h>
Public Types | |
typedef void(* | img_3SumFunc_8 )(int sums[], UT_RGBA *above, UT_RGBA *center, UT_RGBA *below) |
typedef void(* | img_3SumFunc_16 )(int sums[], UT_BIG_RGBA *above, UT_BIG_RGBA *center, UT_BIG_RGBA *below) |
typedef void(* | img_3x3FilterFunc_8 )(UT_RGBA *out, UT_RGBA *p, int r, int g, int b, int a) |
typedef void(* | img_3x3FilterFunc_16 )(UT_BIG_RGBA *out, UT_BIG_RGBA *p, int r, int g, int b, int a) |
typedef void(* | img_HpassFunc_8 )(img_3x3FilterFunc_8 do_pixel, img_3SumFunc_8 do_sum, UT_RGBA *output, int length, UT_RGBA *above, UT_RGBA *center, UT_RGBA *below) |
typedef void(* | img_HpassFunc_16 )(img_3x3FilterFunc_16 do_pixel, img_3SumFunc_16 do_sum, UT_BIG_RGBA *output, int length, UT_BIG_RGBA *above, UT_BIG_RGBA *center, UT_BIG_RGBA *below) |
![]() | |
enum | UT_RasterDepth { UT_RASTER_8, UT_RASTER_16 } |
enum | UT_ColorModel { UT_MODEL_RGBA, UT_MODEL_ABGR } |
Static Public Member Functions | |
static void | mult_8_8 (UT_RGBA *pixel, unsigned int alpha, unsigned int *a, unsigned int *b, unsigned int *g, unsigned int *r) |
static void | mult_8_16 (UT_RGBA *pixel, unsigned int alpha, unsigned int *a, unsigned int *b, unsigned int *g, unsigned int *r, unsigned int point_five) |
static void | mult_16_8 (UT_BIG_RGBA *pixel, unsigned int alpha, unsigned int *a, unsigned int *b, unsigned int *g, unsigned int *r, unsigned int point_five) |
static void | mult_16_16 (UT_BIG_RGBA *pixel, unsigned int alpha, unsigned int *a, unsigned int *b, unsigned int *g, unsigned int *r) |
Protected Member Functions | |
void | blurOp_8 (float weight=0.5) |
void | blurOp_16 (float weight=0.5) |
void | bumpOp_8 (float weight=0.5) |
void | bumpOp_16 (float weight=0.5) |
void | edgeOp_8 (float weight=0.5) |
void | edgeOp_16 (float weight=0.5) |
void | sharpenOp_8 (float weight=0.5) |
void | sharpenOp_16 (float weight=0.5) |
void | composite_8_8 (IMG_Raster *, short x, short y) |
void | composite_8_16 (IMG_Raster *, short x, short y) |
void | composite_16_8 (IMG_Raster *, short x, short y) |
void | composite_16_16 (IMG_Raster *, short x, short y) |
void | setCompositeOp_8_8 (IMG_CompositeOp op) |
void | setCompositeOp_8_16 (IMG_CompositeOp op) |
void | setCompositeOp_16_8 (IMG_CompositeOp op) |
void | setCompositeOp_16_16 (IMG_CompositeOp op) |
![]() | |
void | setBaseSize (short width, short height, void *newRaster=0) |
void * | allocateMemory (int size) |
void * | reAllocateMemory (void *mem, int size) |
void | freeMemory (void *mem) |
void | init () |
Static Protected Member Functions | |
static unsigned short | ut_chanR_8 (UT_RGBA *p) |
static unsigned short | ut_chanG_8 (UT_RGBA *p) |
static unsigned short | ut_chanB_8 (UT_RGBA *p) |
static unsigned short | ut_chanA_8 (UT_RGBA *p) |
static unsigned short | ut_chanL_8 (UT_RGBA *p) |
static unsigned short | ut_chanH_8 (UT_RGBA *p) |
static unsigned short | ut_chanS_8 (UT_RGBA *p) |
static unsigned short | ut_chanV_8 (UT_RGBA *p) |
static unsigned short | ut_chanR_16 (UT_BIG_RGBA *p) |
static unsigned short | ut_chanG_16 (UT_BIG_RGBA *p) |
static unsigned short | ut_chanB_16 (UT_BIG_RGBA *p) |
static unsigned short | ut_chanA_16 (UT_BIG_RGBA *p) |
static unsigned short | ut_chanL_16 (UT_BIG_RGBA *p) |
static unsigned short | ut_chanH_16 (UT_BIG_RGBA *p) |
static unsigned short | ut_chanS_16 (UT_BIG_RGBA *p) |
static unsigned short | ut_chanV_16 (UT_BIG_RGBA *p) |
static void * | compositeThreadMgr (void *data) |
Protected Attributes | |
IMG_Compositebit_8_8 | compositebit_8_8 |
IMG_Compositebit_8_16 | compositebit_8_16 |
IMG_Compositebit_16_16 | compositebit_16_16 |
IMG_Compositebit_16_8 | compositebit_16_8 |
IMG_CompositeOp | compositeOp |
short | channelMask |
short | clip_x |
short | clip_y |
short | clip_w |
short | clip_h |
short | op_x |
short | op_y |
short | op_w |
short | op_h |
img_ioState * | io |
![]() | |
UT_BIG_RGBA * | raster16 |
UT_RGBA * | raster |
UT_RGBA ** | scanlines |
UT_RasterDepth | pixelDepth |
UT_ColorModel | myModel |
short | xres |
short | yres |
short | pBot |
short | pTop |
Additional Inherited Members | |
![]() | |
static UT_RGBA | zeroPixel |
static UT_RGBA | onePixel |
Definition at line 50 of file IMG_Raster.h.
typedef void(* IMG_Raster::img_3SumFunc_16)(int sums[], UT_BIG_RGBA *above, UT_BIG_RGBA *center, UT_BIG_RGBA *below) |
Definition at line 257 of file IMG_Raster.h.
typedef void(* IMG_Raster::img_3SumFunc_8)(int sums[], UT_RGBA *above, UT_RGBA *center, UT_RGBA *below) |
Definition at line 252 of file IMG_Raster.h.
typedef void(* IMG_Raster::img_3x3FilterFunc_16)(UT_BIG_RGBA *out, UT_BIG_RGBA *p, int r, int g, int b, int a) |
Definition at line 266 of file IMG_Raster.h.
typedef void(* IMG_Raster::img_3x3FilterFunc_8)(UT_RGBA *out, UT_RGBA *p, int r, int g, int b, int a) |
Definition at line 263 of file IMG_Raster.h.
typedef void(* IMG_Raster::img_HpassFunc_16)(img_3x3FilterFunc_16 do_pixel, img_3SumFunc_16 do_sum, UT_BIG_RGBA *output, int length, UT_BIG_RGBA *above, UT_BIG_RGBA *center, UT_BIG_RGBA *below) |
Definition at line 278 of file IMG_Raster.h.
typedef void(* IMG_Raster::img_HpassFunc_8)(img_3x3FilterFunc_8 do_pixel, img_3SumFunc_8 do_sum, UT_RGBA *output, int length, UT_RGBA *above, UT_RGBA *center, UT_RGBA *below) |
Definition at line 270 of file IMG_Raster.h.
IMG_Raster::IMG_Raster | ( | ) |
IMG_Raster::IMG_Raster | ( | short | xres, |
short | yres, | ||
UT_RasterDepth | depth | ||
) |
IMG_Raster::IMG_Raster | ( | short | xres, |
short | yres, | ||
UT_RGBA * | image = 0 |
||
) |
IMG_Raster::IMG_Raster | ( | short | xres, |
short | yres, | ||
UT_BIG_RGBA * | image | ||
) |
IMG_Raster::IMG_Raster | ( | const IMG_Raster & | r | ) |
|
override |
|
protected |
|
protected |
|
protected |
|
protected |
void IMG_Raster::composite | ( | IMG_Raster * | r, |
short | x = 0 , |
||
short | y = 0 |
||
) |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 64 of file IMG_Raster.h.
|
inline |
Definition at line 67 of file IMG_Raster.h.
|
inline |
Definition at line 70 of file IMG_Raster.h.
|
inline |
Definition at line 73 of file IMG_Raster.h.
void IMG_Raster::convolveFilter | ( | UT_FilterType | xfilter, |
float | xwidth, | ||
UT_FilterType | yfilter, | ||
float | ywidth | ||
) |
void IMG_Raster::crop | ( | short | x, |
short | y, | ||
short | w, | ||
short | h | ||
) |
|
protected |
|
protected |
void IMG_Raster::filter | ( | IMG_FilterOp | op, |
float | arg = 0.5 , |
||
short | x = 0 , |
||
short | y = 0 , |
||
short | w = 0 , |
||
short | h = 0 |
||
) |
|
inline |
Definition at line 169 of file IMG_Raster.h.
void IMG_Raster::getClippedOp | ( | short * | x, |
short * | y, | ||
short * | w, | ||
short * | h | ||
) | const |
|
inline |
Definition at line 168 of file IMG_Raster.h.
|
inline |
Definition at line 166 of file IMG_Raster.h.
|
inline |
Definition at line 167 of file IMG_Raster.h.
|
inline |
Definition at line 62 of file IMG_Raster.h.
|
virtual |
void IMG_Raster::getEmbossParams | ( | IMG_EMBOSS_PARAMS * | bp | ) | const |
|
virtual |
|
virtual |
int IMG_Raster::load | ( | const char * | pathname, |
IMG_ScaleOp | scaled = IMG_SCALE_NONE , |
||
UT_FilterType | filter = UT_FILTER_POINT , |
||
short | size = 100 , |
||
bool | watermarked = false , |
||
bool | topremult = true |
||
) |
int IMG_Raster::load | ( | const char * | pathname, |
short | xres, | ||
short | yres, | ||
IMG_ScaleOp | scaled = IMG_SCALE_SIZE , |
||
UT_FilterType | filter = UT_FILTER_BOX , |
||
short | yJump = 0 , |
||
short | yThrow = 0 , |
||
short | xJump = 0 , |
||
short | xThrow = 0 , |
||
short | yHave = 0 |
||
) |
bool IMG_Raster::load | ( | UT_IStream & | is | ) |
|
static |
|
static |
|
static |
|
static |
void IMG_Raster::operator= | ( | const IMG_Raster & | r | ) |
void IMG_Raster::resize | ( | short | w, |
short | h, | ||
UT_FilterType | filter = UT_FILTER_POINT |
||
) |
|
inline |
Definition at line 118 of file IMG_Raster.h.
void IMG_Raster::resizeCopy | ( | IMG_Raster * | src, |
short | w, | ||
short | h, | ||
UT_FilterType | xfilter, | ||
float | xwidth, | ||
UT_FilterType | yfilter, | ||
float | ywidth | ||
) |
void IMG_Raster::resizeCropCopy | ( | IMG_Raster * | src, |
short | sl, | ||
short | sb, | ||
short | sw, | ||
short | sh, | ||
short | w, | ||
short | h | ||
) |
void IMG_Raster::rgbaScale | ( | float | rrange[2], |
float | grange[2], | ||
float | brange[2], | ||
float | arange[2], | ||
short | x = 0 , |
||
short | y = 0 , |
||
short | w = 0 , |
||
short | h = 0 |
||
) |
int IMG_Raster::save | ( | const char * | pathname, |
int | fullHeight, | ||
void * | tag, | ||
int(*)(IMG_Raster *r, void *, int, int) | more, | ||
unsigned | margin = 0 |
||
) |
void IMG_Raster::setAlpha | ( | float | alpha | ) |
void IMG_Raster::setChromaKey | ( | const UT_HSVA | c1, |
const UT_HSVA | c2, | ||
const UT_HSVA | delta, | ||
int | alpha | ||
) |
void IMG_Raster::setClipOffset | ( | short | x, |
short | y | ||
) |
void IMG_Raster::setClipSize | ( | short | w, |
short | h | ||
) |
void IMG_Raster::setCompositeOp | ( | IMG_CompositeOp | op | ) |
|
protected |
|
protected |
|
protected |
|
protected |
void IMG_Raster::setEdgeChannel | ( | IMG_Channel | chan, |
unsigned | options = 0 |
||
) |
void IMG_Raster::setEmbossParams | ( | const IMG_EMBOSS_PARAMS & | bp | ) |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
Definition at line 237 of file IMG_Raster.h.
|
protected |
Definition at line 241 of file IMG_Raster.h.
|
protected |
Definition at line 240 of file IMG_Raster.h.
|
protected |
Definition at line 238 of file IMG_Raster.h.
|
protected |
Definition at line 239 of file IMG_Raster.h.
|
protected |
Definition at line 232 of file IMG_Raster.h.
|
protected |
Definition at line 233 of file IMG_Raster.h.
|
protected |
Definition at line 231 of file IMG_Raster.h.
|
protected |
Definition at line 230 of file IMG_Raster.h.
|
protected |
Definition at line 235 of file IMG_Raster.h.
|
protected |
Definition at line 247 of file IMG_Raster.h.
|
protected |
Definition at line 245 of file IMG_Raster.h.
|
protected |
Definition at line 244 of file IMG_Raster.h.
|
protected |
Definition at line 242 of file IMG_Raster.h.
|
protected |
Definition at line 243 of file IMG_Raster.h.