HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IMG_RasterTypes.h File Reference
#include <SYS/SYS_Types.h>
+ Include dependency graph for IMG_RasterTypes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UT_RGBAT< T >
 

Macros

#define IMG_SMALL_IMAGE   100
 
#define IMG_COMPOSITE_CLEAR   0x100
 
#define CHANNEL_BITS   8
 
#define BIG_CHANNEL_BITS   16
 
#define HUE_CHANNEL_BITS   15
 
#define SAT_CHANNEL_BITS   15
 
#define VAL_CHANNEL_BITS   16
 
#define ALP_CHANNEL_BITS   16
 
#define CHANNEL_MAX   0xFF
 
#define BIG_CHANNEL_MAX   0xFFFF
 
#define HUE_CHANNEL_MAX   0x7FFF
 
#define SAT_CHANNEL_MAX   0x7FFF
 
#define VAL_CHANNEL_MAX   0xFFFF
 
#define ALP_CHANNEL_MAX   0xFFFF
 
#define POINT_FIVE   0x80
 
#define BIG_POINT_FIVE   0x8000
 
#define CHANNEL_SHIFT   (BIG_CHANNEL_BITS - CHANNEL_BITS)
 
#define HUE_SHIFT   (HUE_CHANNEL_BITS - CHANNEL_BITS)
 
#define SAT_SHIFT   (SAT_CHANNEL_BITS - CHANNEL_BITS)
 
#define VAL_SHIFT   (VAL_CHANNEL_BITS - CHANNEL_BITS)
 
#define HUE_POINT_FIVE   (1 << (HUE_SHIFT - 1))
 
#define SAT_POINT_FIVE   (1 << (SAT_SHIFT - 1))
 
#define VAL_POINT_FIVE   (1 << (VAL_SHIFT - 1))
 
#define HUE_TO_SMALL_CHANNEL(v)   (((v) + HUE_POINT_FIVE) >> HUE_SHIFT)
 
#define SAT_TO_SMALL_CHANNEL(v)   (((v) + SAT_POINT_FIVE) >> SAT_SHIFT)
 
#define VAL_TO_SMALL_CHANNEL(v)   (((v) + VAL_POINT_FIVE) >> VAL_SHIFT)
 
#define BIG_HUE_SHIFT   (BIG_CHANNEL_BITS - HUE_CHANNEL_BITS)
 
#define BIG_SAT_SHIFT   (BIG_CHANNEL_BITS - SAT_CHANNEL_BITS)
 
#define BIG_VAL_SHIFT   (BIG_CHANNEL_BITS - VAL_CHANNEL_BITS)
 
#define HUE_ROUND(v)   ((v) >>((HUE_CHANNEL_BITS<<1)-BIG_CHANNEL_BITS))
 
#define SAT_ROUND(v)   ((v) >>((SAT_CHANNEL_BITS<<1)-BIG_CHANNEL_BITS))
 
#define VAL_ROUND(v)   ((v) >>((VAL_CHANNEL_BITS<<1)-BIG_CHANNEL_BITS))
 
#define HUE_TO_BIG_CHANNEL(v)   (((v) << BIG_HUE_SHIFT) | HUE_ROUND(v))
 
#define SAT_TO_BIG_CHANNEL(v)   (((v) << BIG_SAT_SHIFT) | SAT_ROUND(v))
 
#define VAL_TO_BIG_CHANNEL(v)   (((v) << BIG_VAL_SHIFT) | VAL_ROUND(v))
 
#define BIG_TO_SMALL_CHANNEL(v)   ((v) >> CHANNEL_SHIFT)
 
#define SMALL_TO_BIG_CHANNEL(v)   ((v) << CHANNEL_SHIFT | (v))
 
#define MONO_WEIGHTR   76
 
#define MONO_WEIGHTG   151
 
#define MONO_WEIGHTB   29
 
#define NTSC_LUM(r, g, b)
 

Typedefs

typedef UT_RGBAT< uint8UT_RGBA
 
typedef UT_RGBAT< uint16UT_BIG_RGBA
 
typedef void(* IMG_Compositebit_8_8 )(UT_RGBA *dest, UT_RGBA *op, int len)
 
typedef void(* IMG_Compositebit_8_16 )(UT_RGBA *dest, UT_BIG_RGBA *op, int len)
 
typedef void(* IMG_Compositebit_16_16 )(UT_BIG_RGBA *dest, UT_BIG_RGBA *op, int len)
 
typedef void(* IMG_Compositebit_16_8 )(UT_BIG_RGBA *dest, UT_RGBA *op, int len)
 
typedef void(* IMG_UnaryOp )(UT_RGBA *pixel)
 
typedef void(* IMG_UnaryOp16 )(UT_BIG_RGBA *pixel, int length)
 
typedef void(* IMG_UnaryOp8 )(UT_RGBA *pixel, int length)
 

Enumerations

enum  IMG_CompositeOp {
  IMG_COMPOSITE_OVER = 0, IMG_COMPOSITE_UNDER = 1, IMG_COMPOSITE_ATOP = 2, IMG_COMPOSITE_A_INSIDE_B = 3,
  IMG_COMPOSITE_B_INSIDE_A = 4 | IMG_COMPOSITE_CLEAR, IMG_COMPOSITE_A_OUTSIDE_B = 5, IMG_COMPOSITE_B_OUTSIDE_A = 6 | IMG_COMPOSITE_CLEAR, IMG_COMPOSITE_PLUS = 7,
  IMG_COMPOSITE_A_MINUS_B = 8, IMG_COMPOSITE_B_MINUS_A = 9 | IMG_COMPOSITE_CLEAR, IMG_COMPOSITE_MULTIPLY = 10 | IMG_COMPOSITE_CLEAR, IMG_COMPOSITE_ERASE = 11,
  IMG_COMPOSITE_WRITE = 12, IMG_COMPOSITE_READ = 13, IMG_COMPOSITE_CROSS = 14, IMG_COMPOSITE_MERGE = 15,
  IMG_COMPOSITE_DIFF = 16, IMG_COMPOSITE_EMBOSS = 17, IMG_COMPOSITE_MULTIPLY_NC = 18, IMG_COMPOSITE_MIN = 19,
  IMG_COMPOSITE_MAX = 20
}
 
enum  IMG_FilterOp {
  IMG_FILTER_NONE, IMG_FILTER_DISSOLVE, IMG_FILTER_GAMMA, IMG_FILTER_QUANTIZE,
  IMG_FILTER_MONO, IMG_FILTER_BLUR, IMG_FILTER_EVEN, IMG_FILTER_ODD,
  IMG_FILTER_CHANNEL, IMG_FILTER_SHARPEN, IMG_FILTER_EDGES, IMG_FILTER_CHROMAKEY,
  IMG_FILTER_BUMPMAP
}
 
enum  IMG_ScaleOp { IMG_SCALE_NONE = 0, IMG_SCALE_SIZE, IMG_SCALE_FIT }
 
enum  IMG_Channel {
  IMG_CHANNEL_R, IMG_CHANNEL_G, IMG_CHANNEL_B, IMG_CHANNEL_A,
  IMG_CHANNEL_HUE, IMG_CHANNEL_SAT, IMG_CHANNEL_VAL, IMG_CHANNEL_LUM
}
 
enum  IMG_EdgeOptions { IMG_EDGES_HARD = 0x00, IMG_EDGES_SOFT = 0x01, IMG_EDGES_COLOR = 0x02, IMG_EDGES_LOWSIDE = 0x04 }
 

Macro Definition Documentation

#define ALP_CHANNEL_BITS   16

Definition at line 114 of file IMG_RasterTypes.h.

#define ALP_CHANNEL_MAX   0xFFFF

Definition at line 121 of file IMG_RasterTypes.h.

#define BIG_CHANNEL_BITS   16

Definition at line 110 of file IMG_RasterTypes.h.

#define BIG_CHANNEL_MAX   0xFFFF

Definition at line 117 of file IMG_RasterTypes.h.

#define BIG_HUE_SHIFT   (BIG_CHANNEL_BITS - HUE_CHANNEL_BITS)

Definition at line 140 of file IMG_RasterTypes.h.

#define BIG_POINT_FIVE   0x8000

Definition at line 124 of file IMG_RasterTypes.h.

#define BIG_SAT_SHIFT   (BIG_CHANNEL_BITS - SAT_CHANNEL_BITS)

Definition at line 141 of file IMG_RasterTypes.h.

#define BIG_TO_SMALL_CHANNEL (   v)    ((v) >> CHANNEL_SHIFT)

Definition at line 150 of file IMG_RasterTypes.h.

#define BIG_VAL_SHIFT   (BIG_CHANNEL_BITS - VAL_CHANNEL_BITS)

Definition at line 142 of file IMG_RasterTypes.h.

#define CHANNEL_BITS   8

Definition at line 109 of file IMG_RasterTypes.h.

#define CHANNEL_MAX   0xFF

Definition at line 116 of file IMG_RasterTypes.h.

#define CHANNEL_SHIFT   (BIG_CHANNEL_BITS - CHANNEL_BITS)

Definition at line 126 of file IMG_RasterTypes.h.

#define HUE_CHANNEL_BITS   15

Definition at line 111 of file IMG_RasterTypes.h.

#define HUE_CHANNEL_MAX   0x7FFF

Definition at line 118 of file IMG_RasterTypes.h.

#define HUE_POINT_FIVE   (1 << (HUE_SHIFT - 1))

Definition at line 132 of file IMG_RasterTypes.h.

#define HUE_ROUND (   v)    ((v) >>((HUE_CHANNEL_BITS<<1)-BIG_CHANNEL_BITS))

Definition at line 143 of file IMG_RasterTypes.h.

#define HUE_SHIFT   (HUE_CHANNEL_BITS - CHANNEL_BITS)

Definition at line 129 of file IMG_RasterTypes.h.

#define HUE_TO_BIG_CHANNEL (   v)    (((v) << BIG_HUE_SHIFT) | HUE_ROUND(v))

Definition at line 146 of file IMG_RasterTypes.h.

#define HUE_TO_SMALL_CHANNEL (   v)    (((v) + HUE_POINT_FIVE) >> HUE_SHIFT)

Definition at line 135 of file IMG_RasterTypes.h.

#define IMG_COMPOSITE_CLEAR   0x100

Definition at line 28 of file IMG_RasterTypes.h.

#define IMG_SMALL_IMAGE   100

Definition at line 26 of file IMG_RasterTypes.h.

#define MONO_WEIGHTB   29

Definition at line 155 of file IMG_RasterTypes.h.

#define MONO_WEIGHTG   151

Definition at line 154 of file IMG_RasterTypes.h.

#define MONO_WEIGHTR   76

Definition at line 153 of file IMG_RasterTypes.h.

#define NTSC_LUM (   r,
  g,
  b 
)
Value:
((((r) * MONO_WEIGHTR) \
+ ((g) * MONO_WEIGHTG) \
+ ((b) * MONO_WEIGHTB)) >> 8)
#define MONO_WEIGHTG
GLboolean GLboolean g
Definition: glcorearb.h:1221
#define MONO_WEIGHTR
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1221
#define MONO_WEIGHTB
GLboolean r
Definition: glcorearb.h:1221

Definition at line 157 of file IMG_RasterTypes.h.

#define POINT_FIVE   0x80

Definition at line 123 of file IMG_RasterTypes.h.

#define SAT_CHANNEL_BITS   15

Definition at line 112 of file IMG_RasterTypes.h.

#define SAT_CHANNEL_MAX   0x7FFF

Definition at line 119 of file IMG_RasterTypes.h.

#define SAT_POINT_FIVE   (1 << (SAT_SHIFT - 1))

Definition at line 133 of file IMG_RasterTypes.h.

#define SAT_ROUND (   v)    ((v) >>((SAT_CHANNEL_BITS<<1)-BIG_CHANNEL_BITS))

Definition at line 144 of file IMG_RasterTypes.h.

#define SAT_SHIFT   (SAT_CHANNEL_BITS - CHANNEL_BITS)

Definition at line 130 of file IMG_RasterTypes.h.

#define SAT_TO_BIG_CHANNEL (   v)    (((v) << BIG_SAT_SHIFT) | SAT_ROUND(v))

Definition at line 147 of file IMG_RasterTypes.h.

#define SAT_TO_SMALL_CHANNEL (   v)    (((v) + SAT_POINT_FIVE) >> SAT_SHIFT)

Definition at line 136 of file IMG_RasterTypes.h.

#define SMALL_TO_BIG_CHANNEL (   v)    ((v) << CHANNEL_SHIFT | (v))

Definition at line 151 of file IMG_RasterTypes.h.

#define VAL_CHANNEL_BITS   16

Definition at line 113 of file IMG_RasterTypes.h.

#define VAL_CHANNEL_MAX   0xFFFF

Definition at line 120 of file IMG_RasterTypes.h.

#define VAL_POINT_FIVE   (1 << (VAL_SHIFT - 1))

Definition at line 134 of file IMG_RasterTypes.h.

#define VAL_ROUND (   v)    ((v) >>((VAL_CHANNEL_BITS<<1)-BIG_CHANNEL_BITS))

Definition at line 145 of file IMG_RasterTypes.h.

#define VAL_SHIFT   (VAL_CHANNEL_BITS - CHANNEL_BITS)

Definition at line 131 of file IMG_RasterTypes.h.

#define VAL_TO_BIG_CHANNEL (   v)    (((v) << BIG_VAL_SHIFT) | VAL_ROUND(v))

Definition at line 148 of file IMG_RasterTypes.h.

#define VAL_TO_SMALL_CHANNEL (   v)    (((v) + VAL_POINT_FIVE) >> VAL_SHIFT)

Definition at line 137 of file IMG_RasterTypes.h.

Typedef Documentation

typedef void(* IMG_Compositebit_16_16)(UT_BIG_RGBA *dest, UT_BIG_RGBA *op, int len)

Definition at line 99 of file IMG_RasterTypes.h.

typedef void(* IMG_Compositebit_16_8)(UT_BIG_RGBA *dest, UT_RGBA *op, int len)

Definition at line 100 of file IMG_RasterTypes.h.

typedef void(* IMG_Compositebit_8_16)(UT_RGBA *dest, UT_BIG_RGBA *op, int len)

Definition at line 98 of file IMG_RasterTypes.h.

typedef void(* IMG_Compositebit_8_8)(UT_RGBA *dest, UT_RGBA *op, int len)

Definition at line 97 of file IMG_RasterTypes.h.

typedef void(* IMG_UnaryOp)(UT_RGBA *pixel)

Definition at line 102 of file IMG_RasterTypes.h.

typedef void(* IMG_UnaryOp16)(UT_BIG_RGBA *pixel, int length)

Definition at line 104 of file IMG_RasterTypes.h.

typedef void(* IMG_UnaryOp8)(UT_RGBA *pixel, int length)

Definition at line 105 of file IMG_RasterTypes.h.

Definition at line 24 of file IMG_RasterTypes.h.

Definition at line 22 of file IMG_RasterTypes.h.

Enumeration Type Documentation

Enumerator
IMG_CHANNEL_R 
IMG_CHANNEL_G 
IMG_CHANNEL_B 
IMG_CHANNEL_A 
IMG_CHANNEL_HUE 
IMG_CHANNEL_SAT 
IMG_CHANNEL_VAL 
IMG_CHANNEL_LUM 

Definition at line 76 of file IMG_RasterTypes.h.

Enumerator
IMG_COMPOSITE_OVER 
IMG_COMPOSITE_UNDER 
IMG_COMPOSITE_ATOP 
IMG_COMPOSITE_A_INSIDE_B 
IMG_COMPOSITE_B_INSIDE_A 
IMG_COMPOSITE_A_OUTSIDE_B 
IMG_COMPOSITE_B_OUTSIDE_A 
IMG_COMPOSITE_PLUS 
IMG_COMPOSITE_A_MINUS_B 
IMG_COMPOSITE_B_MINUS_A 
IMG_COMPOSITE_MULTIPLY 
IMG_COMPOSITE_ERASE 
IMG_COMPOSITE_WRITE 
IMG_COMPOSITE_READ 
IMG_COMPOSITE_CROSS 
IMG_COMPOSITE_MERGE 
IMG_COMPOSITE_DIFF 
IMG_COMPOSITE_EMBOSS 
IMG_COMPOSITE_MULTIPLY_NC 
IMG_COMPOSITE_MIN 
IMG_COMPOSITE_MAX 

Definition at line 30 of file IMG_RasterTypes.h.

Enumerator
IMG_EDGES_HARD 
IMG_EDGES_SOFT 
IMG_EDGES_COLOR 
IMG_EDGES_LOWSIDE 

Definition at line 90 of file IMG_RasterTypes.h.

Enumerator
IMG_FILTER_NONE 
IMG_FILTER_DISSOLVE 
IMG_FILTER_GAMMA 
IMG_FILTER_QUANTIZE 
IMG_FILTER_MONO 
IMG_FILTER_BLUR 
IMG_FILTER_EVEN 
IMG_FILTER_ODD 
IMG_FILTER_CHANNEL 
IMG_FILTER_SHARPEN 
IMG_FILTER_EDGES 
IMG_FILTER_CHROMAKEY 
IMG_FILTER_BUMPMAP 

Definition at line 54 of file IMG_RasterTypes.h.

Enumerator
IMG_SCALE_NONE 
IMG_SCALE_SIZE 
IMG_SCALE_FIT 

Definition at line 70 of file IMG_RasterTypes.h.