MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions  mlibImageAffineTransformIndex(3MLIB)



NAME
     mlibImageAffineTransformIndex - affine transformation on  a
     color indexed image, checking the matrix first

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

     mlibstatus mlibImageAffineTransformIndex(mlibimage *dst,
          const mlibimage *src, const mlibd64 *mtx, mlibfilter filter,
          mlibedge edge, const void *colormap);


DESCRIPTION
     The mlibImageAffineTransformIndex()  function  does  affine
     transformation on a color indexed image, checking the matrix
     first and taking advantage of special cases.


     The following equation represents the affine transformation:

       xd = a*xs ] b*ys ] tx
       yd = c*xs ] d*ys ] ty



     where a point with coordinates (xs, ys) in the source  image
     is mapped to a point with coordinates (xd, yd) in the desti-
     nation image.


     The image data type must be MLIBYTE or MLIBSHORT.


     The width and height of the destination image  can  be  dif-
     ferent from the width and height of the source image.


     The center of the upper-left corner pixel  of  an  image  is
     located at (0.5, 0.5).

PARAMETERS
     The function takes the following arguments:

     dst         Pointer to destination image.


     src         Pointer to source image.


     mtx         Transformation matrix. mtx[0]  holds  a;  mtx[1]
                 holds b; mtx[2] holds tx; mtx[3] holds c; mtx[4]



SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions  mlibImageAffineTransformIndex(3MLIB)



                 holds d; mtx[5] holds ty.


     filter      Type of resampling filter. It can be one of  the
                 following:

                   MLIBNEAREST
                   MLIBILINEAR
                   MLIBICUBIC
                   MLIBICUBIC2



     edge        Type of edge condition. It can  be  one  of  the
                 following:

                   MLIBEDGEDSTNOWRITE
                   MLIBEDGEDSTFILZERO
                   MLIBEDGEOPNEAREST
                   MLIBEDGESRCEXTEND
                   MLIBEDGESRCPADED



     colormap    Internal data structure for inverse  color  map-
                 ping.  This  data  structure is generated by the
                 mlibImageColorTrue2IndexInit() function.


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

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



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


SEE ALSO
     mlibImageAffine(3MLIB),         mlibImageAffineFp(3MLIB),
     mlibImageAffineIndex(3MLIB),
     mlibImageAffineTransform(3MLIB),



SunOS 5.11           Last change: 2 Mar 2007                    2






mediaLib Library Functions  mlibImageAffineTransformIndex(3MLIB)



     mlibImageAffineTransformFp(3MLIB), attributes(5)






















































SunOS 5.11           Last change: 2 Mar 2007                    3



OpenSolaris man pages main menu

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