IMG_Raster Class Reference

#include <IMG_Raster.h>

Inheritance diagram for IMG_Raster:

UT_Raster

List of all members.

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)

Public Member Functions

 IMG_Raster ()
 IMG_Raster (short xres, short yres, UT_RasterDepth depth)
 IMG_Raster (short xres, short yres, UT_RGBA *image=0)
 IMG_Raster (short xres, short yres, UT_BIG_RGBA *image)
 IMG_Raster (const IMG_Raster &r)
virtual ~IMG_Raster ()
void setAlpha (float alpha)
void setCompositeOp (IMG_CompositeOp op)
IMG_CompositeOp getCompositeOp () const
void compositePixel (UT_RGBA *dest, UT_RGBA *op)
void compositePixel (UT_RGBA *dest, UT_BIG_RGBA *op)
void compositePixel (UT_BIG_RGBA *dest, UT_BIG_RGBA *op)
void compositePixel (UT_BIG_RGBA *dest, UT_RGBA *op)
void composite (IMG_Raster *r, short x=0, short y=0)
void filter (IMG_FilterOp op, float arg=0.5, short x=0, short y=0, short w=0, short h=0)
void convolveFilter (UT_FilterType xfilter, float xwidth, UT_FilterType yfilter, float ywidth)
void size (short w, short h, void *newRaster=0)
void crop (short x, short y, short w, short h)
void 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)
void setChannelMask (int r, int g, int b, int a)
void setEdgeChannel (IMG_Channel chan, unsigned options=0)
void setChromaKey (const UT_HSVA c1, const UT_HSVA c2, const UT_HSVA delta, int alpha)
void setEmbossParams (const IMG_EMBOSS_PARAMS &bp)
void getEmbossParams (IMG_EMBOSS_PARAMS *bp) const
virtual UT_RGBAgetPixel (short x, short y) const
virtual UT_BIG_RGBAgetDeepPixel (short x, short y) const
virtual void * getVoidPixel (short x, short y) const
void resize (short w, short h, UT_FilterType filter=UT_FILTER_POINT)
void resizeCopy (IMG_Raster *src, short w, short h, UT_FilterType filt=UT_FILTER_POINT, float filter_width=0.0F)
void resizeCopy (IMG_Raster *src, short w, short h, UT_FilterType xfilter, float xwidth, UT_FilterType yfilter, float ywidth)
void resizeCropCopy (IMG_Raster *src, short sl, short sb, short sw, short sh, short w, short h)
int save (const char *pathname, bool quiet=false)
int save (const char *pathname, int fullHeight, void *tag, int(*more)(IMG_Raster *r, void *, int, int), unsigned margin=0)
int save (ostream &os, int binary=1) const
void * openSave (const char *pathname, int fullHeight)
void * saveMore (void *handle)
void abortSave (void *handle)
int load (const char *pathname, IMG_ScaleOp scaled=IMG_SCALE_NONE, UT_FilterType filter=UT_FILTER_POINT, short size=100, bool watermarked=false)
int 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 load (UT_IStream &is)
int stat (const char *pathname, short *xres, short *yres)
void setClipOffset (short x, short y)
void setClipSize (short w, short h)
short getClipX () const
short getClipY () const
short getClipW () const
short getClipH () const
void getClippedOp (short *x, short *y, short *w, short *h) const
void convolve (IMG_Raster &, float scale=1, float offset=0)
void convolve (UT_LONG_RGBA *filter, int xsize, int ysize, float scale=1, float offset=0)
void fastConvolve (long *filter, int xsize, int ysize, int filter_order, const char *opname, int preserve_power=0)
void frequencyFilter (float *filter)
void operator= (const IMG_Raster &r)
void operator= (const IMG_RasterHSVA &r)
void generateAlpha (const UT_Color &bgcolor, bool premult=true, bool soften=false)

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)

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


Detailed Description

Examples:

SOP/SOP_CopRaster.h.

Definition at line 58 of file IMG_Raster.h.


Member Typedef Documentation

typedef void(* IMG_Raster::img_3SumFunc_16)(int sums[], UT_BIG_RGBA *above, UT_BIG_RGBA *center, UT_BIG_RGBA *below)

Definition at line 277 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 272 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 286 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 283 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 298 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 290 of file IMG_Raster.h.


Constructor & Destructor Documentation

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  ) 

virtual IMG_Raster::~IMG_Raster (  )  [virtual]


Member Function Documentation

void IMG_Raster::abortSave ( void *  handle  ) 

void IMG_Raster::blurOp_16 ( float  weight = 0.5  )  [protected]

void IMG_Raster::blurOp_8 ( float  weight = 0.5  )  [protected]

void IMG_Raster::bumpOp_16 ( float  weight = 0.5  )  [protected]

void IMG_Raster::bumpOp_8 ( float  weight = 0.5  )  [protected]

void IMG_Raster::composite ( IMG_Raster r,
short  x = 0,
short  y = 0 
)

void IMG_Raster::composite_16_16 ( IMG_Raster ,
short  x,
short  y 
) [protected]

void IMG_Raster::composite_16_8 ( IMG_Raster ,
short  x,
short  y 
) [protected]

void IMG_Raster::composite_8_16 ( IMG_Raster ,
short  x,
short  y 
) [protected]

void IMG_Raster::composite_8_8 ( IMG_Raster ,
short  x,
short  y 
) [protected]

void IMG_Raster::compositePixel ( UT_BIG_RGBA dest,
UT_RGBA op 
) [inline]

Definition at line 81 of file IMG_Raster.h.

void IMG_Raster::compositePixel ( UT_BIG_RGBA dest,
UT_BIG_RGBA op 
) [inline]

Definition at line 78 of file IMG_Raster.h.

void IMG_Raster::compositePixel ( UT_RGBA dest,
UT_BIG_RGBA op 
) [inline]

Definition at line 75 of file IMG_Raster.h.

void IMG_Raster::compositePixel ( UT_RGBA dest,
UT_RGBA op 
) [inline]

Definition at line 72 of file IMG_Raster.h.

static void* IMG_Raster::compositeThreadMgr ( void *  data  )  [static, protected]

void IMG_Raster::convolve ( UT_LONG_RGBA filter,
int  xsize,
int  ysize,
float  scale = 1,
float  offset = 0 
)

void IMG_Raster::convolve ( IMG_Raster ,
float  scale = 1,
float  offset = 0 
)

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 
)

void IMG_Raster::edgeOp_16 ( float  weight = 0.5  )  [protected]

void IMG_Raster::edgeOp_8 ( float  weight = 0.5  )  [protected]

void IMG_Raster::fastConvolve ( long *  filter,
int  xsize,
int  ysize,
int  filter_order,
const char *  opname,
int  preserve_power = 0 
)

void IMG_Raster::filter ( IMG_FilterOp  op,
float  arg = 0.5,
short  x = 0,
short  y = 0,
short  w = 0,
short  h = 0 
)

void IMG_Raster::frequencyFilter ( float *  filter  ) 

void IMG_Raster::generateAlpha ( const UT_Color bgcolor,
bool  premult = true,
bool  soften = false 
)

short IMG_Raster::getClipH (  )  const [inline]

Definition at line 176 of file IMG_Raster.h.

void IMG_Raster::getClippedOp ( short *  x,
short *  y,
short *  w,
short *  h 
) const

short IMG_Raster::getClipW (  )  const [inline]

Definition at line 175 of file IMG_Raster.h.

short IMG_Raster::getClipX (  )  const [inline]

Definition at line 173 of file IMG_Raster.h.

short IMG_Raster::getClipY (  )  const [inline]

Definition at line 174 of file IMG_Raster.h.

IMG_CompositeOp IMG_Raster::getCompositeOp (  )  const [inline]

Definition at line 70 of file IMG_Raster.h.

virtual UT_BIG_RGBA* IMG_Raster::getDeepPixel ( short  x,
short  y 
) const [virtual]

void IMG_Raster::getEmbossParams ( IMG_EMBOSS_PARAMS bp  )  const

virtual UT_RGBA* IMG_Raster::getPixel ( short  x,
short  y 
) const [virtual]

virtual void* IMG_Raster::getVoidPixel ( short  x,
short  y 
) const [virtual]

bool IMG_Raster::load ( UT_IStream is  ) 

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 
)

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 
)

Examples:
SOP/SOP_CopRaster.C.

static void IMG_Raster::mult_16_16 ( UT_BIG_RGBA pixel,
unsigned int  alpha,
unsigned int *  a,
unsigned int *  b,
unsigned int *  g,
unsigned int *  r 
) [static]

static void IMG_Raster::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]

static void IMG_Raster::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]

static void IMG_Raster::mult_8_8 ( UT_RGBA pixel,
unsigned int  alpha,
unsigned int *  a,
unsigned int *  b,
unsigned int *  g,
unsigned int *  r 
) [static]

void* IMG_Raster::openSave ( const char *  pathname,
int  fullHeight 
)

void IMG_Raster::operator= ( const IMG_RasterHSVA &  r  ) 

void IMG_Raster::operator= ( const IMG_Raster r  ) 

void IMG_Raster::resize ( short  w,
short  h,
UT_FilterType  filter = UT_FILTER_POINT 
)

void IMG_Raster::resizeCopy ( IMG_Raster src,
short  w,
short  h,
UT_FilterType  xfilter,
float  xwidth,
UT_FilterType  yfilter,
float  ywidth 
)

void IMG_Raster::resizeCopy ( IMG_Raster src,
short  w,
short  h,
UT_FilterType  filt = UT_FILTER_POINT,
float  filter_width = 0.0F 
) [inline]

Definition at line 126 of file IMG_Raster.h.

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 ( ostream &  os,
int  binary = 1 
) const

int IMG_Raster::save ( const char *  pathname,
int  fullHeight,
void *  tag,
int(*)(IMG_Raster *r, void *, int, int)  more,
unsigned  margin = 0 
)

int IMG_Raster::save ( const char *  pathname,
bool  quiet = false 
)

void* IMG_Raster::saveMore ( void *  handle  ) 

void IMG_Raster::setAlpha ( float  alpha  ) 

void IMG_Raster::setChannelMask ( int  r,
int  g,
int  b,
int  a 
)

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  ) 

void IMG_Raster::setCompositeOp_16_16 ( IMG_CompositeOp  op  )  [protected]

void IMG_Raster::setCompositeOp_16_8 ( IMG_CompositeOp  op  )  [protected]

void IMG_Raster::setCompositeOp_8_16 ( IMG_CompositeOp  op  )  [protected]

void IMG_Raster::setCompositeOp_8_8 ( IMG_CompositeOp  op  )  [protected]

void IMG_Raster::setEdgeChannel ( IMG_Channel  chan,
unsigned  options = 0 
)

void IMG_Raster::setEmbossParams ( const IMG_EMBOSS_PARAMS bp  ) 

void IMG_Raster::sharpenOp_16 ( float  weight = 0.5  )  [protected]

void IMG_Raster::sharpenOp_8 ( float  weight = 0.5  )  [protected]

void IMG_Raster::size ( short  w,
short  h,
void *  newRaster = 0 
)

Examples:
SOP/SOP_CopRaster.C.

int IMG_Raster::stat ( const char *  pathname,
short *  xres,
short *  yres 
)

static unsigned short IMG_Raster::ut_chanA_16 ( UT_BIG_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanA_8 ( UT_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanB_16 ( UT_BIG_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanB_8 ( UT_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanG_16 ( UT_BIG_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanG_8 ( UT_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanH_16 ( UT_BIG_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanH_8 ( UT_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanL_16 ( UT_BIG_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanL_8 ( UT_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanR_16 ( UT_BIG_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanR_8 ( UT_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanS_16 ( UT_BIG_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanS_8 ( UT_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanV_16 ( UT_BIG_RGBA p  )  [static, protected]

static unsigned short IMG_Raster::ut_chanV_8 ( UT_RGBA p  )  [static, protected]


Member Data Documentation

short IMG_Raster::channelMask [protected]

Definition at line 257 of file IMG_Raster.h.

short IMG_Raster::clip_h [protected]

Definition at line 261 of file IMG_Raster.h.

short IMG_Raster::clip_w [protected]

Definition at line 260 of file IMG_Raster.h.

short IMG_Raster::clip_x [protected]

Definition at line 258 of file IMG_Raster.h.

short IMG_Raster::clip_y [protected]

Definition at line 259 of file IMG_Raster.h.

Definition at line 252 of file IMG_Raster.h.

Definition at line 253 of file IMG_Raster.h.

Definition at line 251 of file IMG_Raster.h.

Definition at line 250 of file IMG_Raster.h.

Definition at line 255 of file IMG_Raster.h.

img_ioState* IMG_Raster::io [protected]

Definition at line 267 of file IMG_Raster.h.

short IMG_Raster::op_h [protected]

Definition at line 265 of file IMG_Raster.h.

short IMG_Raster::op_w [protected]

Definition at line 264 of file IMG_Raster.h.

short IMG_Raster::op_x [protected]

Definition at line 262 of file IMG_Raster.h.

short IMG_Raster::op_y [protected]

Definition at line 263 of file IMG_Raster.h.


The documentation for this class was generated from the following file:

Generated on Fri May 25 00:10:30 2012 for HDK by  doxygen 1.5.9