MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions          mlibImageSqrShiftInp(3MLIB)



NAME
     mlibImageSqrShiftInp - square with shifting, in place

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

     mlibstatus mlibImageSqrShiftInp(mlibimage *srcdst, mlibs32 shift);


DESCRIPTION
     The mlibImageSqrShiftInp() function computes the square of
     each  pixel in the source image and scales the result by the
     shift factor, in place.


     It uses the following equation:

       srcdst[x][y][i] = srcdst[x][y][i] * srcdst[x][y][i] * 2**(-shift)


PARAMETERS
     The function takes the following arguments:

     srcdst    Pointer to source and destination image.


     shift     Right shifting factor. 0 < shift < 31.


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
     mlibImageSqrShift(3MLIB), attributes(5)




SunOS 5.11           Last change: 2 Mar 2007                    1



OpenSolaris man pages main menu

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