MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions            mlibImageLookUpInp(3MLIB)



NAME
     mlibImageLookUpInp - table lookup, in place

SYNOPSIS
     cc [ flag... ] file... -lmlib [ library... ]
     #include 

     mlibstatus mlibImageLookUpInp(mlibimage *srcdst, const void **table);


DESCRIPTION
     The mlibImageLookUpInp() function maps the source image to
     the destination image, in place, by using the user-specified
     lookup table.


     The following equation is used:

       srcdst[x][y][i] = table[i][srcdst[x][y][i]


PARAMETERS
     The function takes the following arguments:

     srcdst    Pointer to first source and destination image.


     table     Pointer to lookup table.  The  data  type  of  the
               lookup table is the same as the destination image.
               The number of  entries  in  the  lookup  table  is
               determined  by  the  type  of the input image. The
               format of the lookup table is:

               table[channel][index]

               The MLIBYTE type entries are indexed from  0  to
               255.  The MLIBSHORT type entries are indexed from
               -32768  to  -1,  then  from  0   to   32767.   The
               MLIBUSHORT  type  entries  are  indexed from 0 to
               65535. The MLIBINT type entries are indexed  from
               -2147483648 to -1, and then from 0 to 2147483647.


RETURN VALUES
     The function returns MLIBSUCES if  successful.  Otherwise
     it returns MLIBFAILURE.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:





SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions            mlibImageLookUpInp(3MLIB)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Committed                   
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     mlibImageLookUp(3MLIB),           mlibImageLookUp2(3MLIB),
     mlibImageLookUpMask(3MLIB), attributes(5)











































SunOS 5.11           Last change: 2 Mar 2007                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™