xil_lookup(3)
NAME
xil_lookup − pass an image through a lookup table.
SYNOPSIS
#include <xil/xil.h>
void xil_lookup (XilImage src,
XilImage dst,
XilLookup lookup);
DESCRIPTION
This routine passes the source image through a lookup table and writes the result into the destination image. The parameters src and dst are handles to the source and destination images. The source and destination can be different data types. lookup is the lookup table.
ERRORS
For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide.
EXAMPLES
Pass an image through a lookup table:
#define BITSIZE 0x2
XilImage image, retained_image;
XilLookup lookup;
Xil_unsigned8 lookupdata[] = {0, 0, 0, 255, 255, 255};
retained_image = xil_create(state, width, height, 3, XIL_BYTE);
lookup = xil_lookup_create(state, XIL_BIT, XIL_BYTE, 3,
BITSIZE, 0, lookupdata);
xil_lookup(image, retained_image, lookup);
NOTES
Input and output of the entries in the lookup table must be the same data types as the source and destination images, respectively.
SEE ALSO
xil_lookup_create(3), xil_lookup_create_combined(3), xil_lookup_destroy(3).
SunOS — Last change: 29 March 1994