mi32/colrconv.h File Reference

<mi32/colrconv.h> More...

#include <mi32/colorspc.h>
#include <mi32/numtype.h>
#include <rvc/image.h>
Include dependency graph for colrconv.h:

Go to the source code of this file.

Classes

struct  COLORCOMPSRCPARM

Defines

#define COLOR_BLEND_RGBI_Brovey   4
#define COLOR_BLEND_RGBI_HBS   2
#define COLOR_BLEND_RGBI_HIS   1
#define COLOR_BLEND_RGBI_LAST   4
#define COLOR_BLEND_RGBI_Ratio   3
#define CONVCOMP_AdjustInt4   COLORCOMPFLAG_AdjustInt4
#define CONVCOMP_DoBlendMask   COLORCOMPFLAG_DoBlendMask
#define CONVCOMP_DoContrast   COLORCOMPFLAG_DoContrast
#define CONVCOMP_MaskToAlpha   COLORCOMPFLAG_MaskToAlpha
#define CONVCOMP_Out32For24   COLORCOMPFLAG_Out32For24
#define CONVCOMP_OutPixel   COLORCOMPFLAG_OutPixel
#define CONVCOMP_ScaleHue255   COLORCOMPFLAG_ScaleHue255
#define CONVCOMP_ScaleInt255   COLORCOMPFLAG_ScaleInt255
#define CONVCOMP_ScaleSat255   COLORCOMPFLAG_ScaleSat255
#define CONVCOMP_UseColMap   COLORCOMPFLAG_UseColMap

Enumerations

enum  COLORCOMPDEST { COLORCOMPDEST_ColorMapped = 1, COLORCOMPDEST_RGB = 2, COLORCOMPDEST_Pixel = 3, COLORCOMPDEST_Image = 4 }
enum  COLORCOMPFLAGS {
  COLORCOMPFLAG_None = 0, COLORCOMPFLAG_DoContrast = 0x00000001, COLORCOMPFLAG_UseColMap = 0x00000002, COLORCOMPFLAG_Out32For24 = 0x00000004,
  COLORCOMPFLAG_ScaleInt255 = 0x00000008, COLORCOMPFLAG_ScaleSat255 = 0x00000010, COLORCOMPFLAG_ScaleHue255 = 0x00000020, COLORCOMPFLAG_AdjustInt4 = 0x00000040,
  COLORCOMPFLAG_OutPixel = 0x00000080, COLORCOMPFLAG_DoBlendMask = 0x00000100, COLORCOMPFLAG_MaskToAlpha = 0x00000200
}

Functions

int ColorCompConvMtoS (COLORCOMPSTRUCT *ccp, void *odata, UINT8 *omask, const void *idata1, const void *idata2, const void *idata3, const void *idata4, const UINT8 *imask, INT32 inpcols)
int ColorCompConvStoRGB (COLORCOMPSTRUCT *ccp, UINT8 *ored, UINT8 *ogrn, UINT8 *oblu, UINT8 *omask, const void *idata, const UINT8 *imask, INT32 inpcols)
int ColorCompConvStoS (COLORCOMPSTRUCT *ccp, void *odata, UINT8 *omask, const void *idata, const UINT8 *imask, INT32 inpcols)
int ColorCompCreate (COLORCOMPSTRUCT **rethandle)
void ColorCompDestroy (COLORCOMPSTRUCT *ccp)
int ColorCompSetColorBalance (COLORCOMPSTRUCT *ccp, CBPARMS *cbparm)
int ColorCompSetDestRGB (COLORCOMPSTRUCT *ccp, int type=0, UINT32 flags=0)
int ColorCompSetDestSingle (COLORCOMPSTRUCT *ccp, COLORCOMPDEST desttype, const DISPLAYINFO *pDisplayInfo, UINT32 flags)
int ColorCompSetDestSingle (COLORCOMPSTRUCT *ccp, MGD::DEVICE &dev)
int ColorCompSetDestSingle (COLORCOMPSTRUCT *ccp, COLORSPACE ColorSpace, const COLOR_ARRAY *colormap=0, UINT32 flags=0)
int ColorCompSetDestSingle (COLORCOMPSTRUCT *ccp, COLORCOMPDEST desttype, const DISPLAYINFO *pDisplayInfo, const COLOR_ARRAY *pColorMap=0, const void *notused=0, UINT32 flags=0)
int ColorCompSetSrcParm (COLORCOMPSTRUCT *ccp, COLORCOMPSRCPARM *parm)
ERRVALUE ColorCompSetSrcSingle (COLORCOMPSTRUCT *ccp, NUMTYPE NumType, const COLOR_ARRAY *pColorMap, const CONTRASTPARM *pContrastParm, COLORCOMPFLAGS flags=COLORCOMPFLAG_None)
ERRVALUE ColorCompSetSrcSingle (COLORCOMPSTRUCT *ccp, RVC::IMAGE::CELLTYPE CellType, const COLOR_ARRAY *pColorMap, const CONTRASTPARM *pContrastParm, COLORCOMPFLAGS flags=COLORCOMPFLAG_None)
ERRVALUE ColorCompSetSrcSingle (COLORCOMPSTRUCT *ccp, COLORSPACE ColorSpace, const COLOR_ARRAY *pColorMap, const CONTRASTPARM *pContrastParm, COLORCOMPFLAGS flags=COLORCOMPFLAG_None)
int ColorCompStart (COLORCOMPSTRUCT *ccp, INT32 maxcols)
void ColorCompStop (COLORCOMPSTRUCT *ccp)

Detailed Description

<mi32/colrconv.h>

Definitions for color conversion functions


Define Documentation

#define COLOR_BLEND_RGBI_Brovey   4
#define COLOR_BLEND_RGBI_HBS   2
#define COLOR_BLEND_RGBI_HIS   1

RGBI - Intensity conversion models for RASTDISPMODE_MultiRGBI Changed to not conflict with GRE::LAYER_RASTER::COLORBLEND enum.

#define COLOR_BLEND_RGBI_LAST   4
#define COLOR_BLEND_RGBI_Ratio   3
#define CONVCOMP_AdjustInt4   COLORCOMPFLAG_AdjustInt4
#define CONVCOMP_DoBlendMask   COLORCOMPFLAG_DoBlendMask
#define CONVCOMP_DoContrast   COLORCOMPFLAG_DoContrast
#define CONVCOMP_MaskToAlpha   COLORCOMPFLAG_MaskToAlpha
#define CONVCOMP_Out32For24   COLORCOMPFLAG_Out32For24
#define CONVCOMP_OutPixel   COLORCOMPFLAG_OutPixel
#define CONVCOMP_ScaleHue255   COLORCOMPFLAG_ScaleHue255
#define CONVCOMP_ScaleInt255   COLORCOMPFLAG_ScaleInt255
#define CONVCOMP_ScaleSat255   COLORCOMPFLAG_ScaleSat255
#define CONVCOMP_UseColMap   COLORCOMPFLAG_UseColMap

Enumeration Type Documentation

Types for ColorCompSetDestSingle.

Enumerator:
COLORCOMPDEST_ColorMapped 

8- or 16-bit color-mapped

COLORCOMPDEST_RGB 

16- or 24-bit RGB/BGR packed

COLORCOMPDEST_Pixel 

Array of Pixels.

COLORCOMPDEST_Image 

Suitable for MgdPutImageSpan or XImage ZPixmap.

Enumerator:
COLORCOMPFLAG_None 
COLORCOMPFLAG_DoContrast 

Perform contrasting, for single-raster input only.

COLORCOMPFLAG_UseColMap 

Use colormap, for single raster input only.

COLORCOMPFLAG_Out32For24 

Output 32-bit for 24-bit depth.

COLORCOMPFLAG_ScaleInt255 

Input intensity (or brightness) ranges from 0-255 instead of 0-100.

COLORCOMPFLAG_ScaleSat255 

Input saturation ranges from 0-255 instead of 0-100.

COLORCOMPFLAG_ScaleHue255 

Input hue ranges from 0-255 instead of 0-360.

COLORCOMPFLAG_AdjustInt4 

Adjust intensity using 4th band rather than replacing with 4th band.

COLORCOMPFLAG_OutPixel 

Output Pixel buffer.

COLORCOMPFLAG_DoBlendMask 

Use blending masks (ColorComp... functions only).

COLORCOMPFLAG_MaskToAlpha 

Set alpha bits if mask is true, clear it otherwise.


Function Documentation

int ColorCompConvMtoS ( COLORCOMPSTRUCT *  ccp,
void *  odata,
UINT8 omask,
const void *  idata1,
const void *  idata2,
const void *  idata3,
const void *  idata4,
const UINT8 imask,
INT32  inpcols 
)

Convert Multiple rasters to Single raster.

Parameters:
omask Blending mask returned
imask Input blending mask
int ColorCompConvStoRGB ( COLORCOMPSTRUCT *  ccp,
UINT8 ored,
UINT8 ogrn,
UINT8 oblu,
UINT8 omask,
const void *  idata,
const UINT8 imask,
INT32  inpcols 
)

Convert Single composite color line to Multiple R-G-B line.

Parameters:
omask Blending mask returned
imask Input blending mask
int ColorCompConvStoS ( COLORCOMPSTRUCT *  ccp,
void *  odata,
UINT8 omask,
const void *  idata,
const UINT8 imask,
INT32  inpcols 
)

Convert single input raster to single output raster.

Parameters:
omask Blending mask returned
imask Input blending mask
int ColorCompCreate ( COLORCOMPSTRUCT **  rethandle  ) 

Create color-composite conversion handle.

void ColorCompDestroy ( COLORCOMPSTRUCT *  ccp  ) 

Destroy color-composite conversion handle.

int ColorCompSetColorBalance ( COLORCOMPSTRUCT *  ccp,
CBPARMS cbparm 
)

Set color balance parameters.

int ColorCompSetDestRGB ( COLORCOMPSTRUCT *  ccp,
int  type = 0,
UINT32  flags = 0 
)

Set parameters for separate RGB output.

int ColorCompSetDestSingle ( COLORCOMPSTRUCT *  ccp,
COLORCOMPDEST  desttype,
const DISPLAYINFO pDisplayInfo,
UINT32  flags 
) [inline]

Set parameters for single-raster output.

int ColorCompSetDestSingle ( COLORCOMPSTRUCT *  ccp,
MGD::DEVICE dev 
)

Set parameters for single-raster output.

int ColorCompSetDestSingle ( COLORCOMPSTRUCT *  ccp,
COLORSPACE  ColorSpace,
const COLOR_ARRAY colormap = 0,
UINT32  flags = 0 
)

Set parameters for single-raster output using COLORSPACE.

Parameters:
ColorSpace Destination COLORSPACE
colormap Color palette for 'Indexed' colorspaces
flags CONVCOMP flags
int ColorCompSetDestSingle ( COLORCOMPSTRUCT *  ccp,
COLORCOMPDEST  desttype,
const DISPLAYINFO pDisplayInfo,
const COLOR_ARRAY pColorMap = 0,
const void *  notused = 0,
UINT32  flags = 0 
)

Set parameters for single-raster output.

int ColorCompSetSrcParm ( COLORCOMPSTRUCT *  ccp,
COLORCOMPSRCPARM parm 
)

Set source parameters.

ERRVALUE ColorCompSetSrcSingle ( COLORCOMPSTRUCT *  ccp,
NUMTYPE  NumType,
const COLOR_ARRAY pColorMap,
const CONTRASTPARM pContrastParm,
COLORCOMPFLAGS  flags = COLORCOMPFLAG_None 
)

Set parameters for single-raster input using NUMTYPE.

Parameters:
pColorMap Color palette, 0 if unused
pContrastParm Contrast parameters, 0 if unused
ERRVALUE ColorCompSetSrcSingle ( COLORCOMPSTRUCT *  ccp,
RVC::IMAGE::CELLTYPE  CellType,
const COLOR_ARRAY pColorMap,
const CONTRASTPARM pContrastParm,
COLORCOMPFLAGS  flags = COLORCOMPFLAG_None 
)

Set parameters for single-raster input using RVC::IMAGE::CELLTYPE.

Parameters:
pColorMap Color palette, 0 if unused
pContrastParm Contrast parameters, 0 if unused
ERRVALUE ColorCompSetSrcSingle ( COLORCOMPSTRUCT *  ccp,
COLORSPACE  ColorSpace,
const COLOR_ARRAY pColorMap,
const CONTRASTPARM pContrastParm,
COLORCOMPFLAGS  flags = COLORCOMPFLAG_None 
)

Set parameters for single-raster input using COLORSPACE.

Parameters:
ColorSpace Source colorspace
pColorMap Color palette, 0 if unused
pContrastParm Contrast parameters, 0 if unused
int ColorCompStart ( COLORCOMPSTRUCT *  ccp,
INT32  maxcols 
)

Initialize and allocate memory for selected conversion type(s).

void ColorCompStop ( COLORCOMPSTRUCT *  ccp  ) 

Stop color conversion without destroying handle.


Generated on Sun Oct 7 21:25:51 2012 for TNTsdk 2012 by  doxygen 1.6.1