1mlib_ImageLookUp_Inp(3MLIB)mediaLib Library Functionsmlib_ImageLookUp_Inp(3MLIB)
2
3
4
6 mlib_ImageLookUp_Inp - table lookup, in place
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageLookUp_Inp(mlib_image *srcdst, const void **table);
13
14
16 The mlib_ImageLookUp_Inp() function maps the source image to the desti‐
17 nation image, in place, by using the user-specified lookup table.
18
19
20 The following equation is used:
21
22 srcdst[x][y][i] = table[i][srcdst[x][y][i]]
23
24
26 The function takes the following arguments:
27
28 srcdst Pointer to first source and destination image.
29
30
31 table Pointer to lookup table. The data type of the lookup table is
32 the same as the destination image. The number of entries in
33 the lookup table is determined by the type of the input
34 image. The format of the lookup table is:
35
36 table[channel][index]
37
38 The MLIB_BYTE type entries are indexed from 0 to 255. The
39 MLIB_SHORT type entries are indexed from -32768 to -1, then
40 from 0 to 32767. The MLIB_USHORT type entries are indexed
41 from 0 to 65535. The MLIB_INT type entries are indexed from
42 -2147483648 to -1, and then from 0 to 2147483647.
43
44
46 The function returns MLIB_SUCCESS if successful. Otherwise it returns
47 MLIB_FAILURE.
48
50 See attributes(5) for descriptions of the following attributes:
51
52
53
54
55 ┌─────────────────────────────┬─────────────────────────────┐
56 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │Interface Stability │Committed │
59 ├─────────────────────────────┼─────────────────────────────┤
60 │MT-Level │MT-Safe │
61 └─────────────────────────────┴─────────────────────────────┘
62
64 mlib_ImageLookUp(3MLIB), mlib_ImageLookUp2(3MLIB), mlib_ImageLookUp‐
65 Mask(3MLIB), attributes(5)
66
67
68
69SunOS 5.11 2 Mar 2007 mlib_ImageLookUp_Inp(3MLIB)