|
|
#include <xil/xil.h>
void xil_color_correct (XilImage src,
XilImage dst,
XilColorspaceList* colorspacelist);
Color spaces can be of three types: XIL_COLORSPACE_NAME, XIL_COLORSPACE_FILENAME, and XIL_COLORSPACE_KCS_ID.
If xil_color_correct () is called with two color spaces and these color spaces are of type XIL_COLORSPACE_NAME, xil_color_convert.3 is executed internally in the library.
Color spaces attached to the images will be ignored. Only the color spaces in the list will be used in this operation.
#define SRC_PROFILE "kcmsEKphcdcn.inp"
#define DST_PROFILE "kcmsEKsony20.mon"
XilSystemState State;
XilImage src, dst;
XilColorspace cspaces[2];
XilColorspaceList cspaceList;
/*
* Create the color space using a filename
*/
cspaces[0] = xil_colorspace_create(state,
XIL_COLORSPACE_FILENAME, SRC_PROFILE);
cspaces[1] = xil_colorspace_create(state,
XIL_COLORSPACE_FILENAME, DST_PROFILE);
/* create the color space list */
cspaceList = xil_colorspacelist_create(state, cspaces, 2);
/* color correct the image */
xil_color_correct(src, dst, cspaceList);
/* Destroy the color space list, then the color spaces */
xil_colorspacelist_destroy(cspaceList);
xil_colorspace_destroy(cspaces[0]);
xil_colorspace_destroy(cspaces[1]);
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 07/October/97