MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions               mlibMatrixAveU8(3MLIB)



NAME
     mlibMatrixAveU8,  mlibMatrixAveU8C,   mlibMatrixAveS8,
     mlibMatrixAveS8C, mlibMatrixAveS16, mlibMatrixAveS16C,
     mlibMatrixAveS32, mlibMatrixAveS32C - matrix average, in
     place

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

     mlibstatus mlibMatrixAveU8(mlibu8 *xz,
         const mlibu8 *y, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixAveU8C(mlibu8 *xz,
         const mlibu8 *y, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixAveS8(mlibs8 *xz,
         const mlibs8 *y, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixAveS8C(mlibs8 *xz,
         const mlibs8 *y, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixAveS16(mlibs16 *xz,
         const mlibs16 *y, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixAveS16C(mlibs16 *xz,
          const mlibs16 *y, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixAveS32(mlibs32 *xz,
          const mlibs32 *y, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixAveS32C(mlibs32 *xz,
          const mlibs32 *y, mlibs32 m, mlibs32 n);


DESCRIPTION
     Each of these functions performs an  in-place  averaging  of
     two matrices.


     It uses the following equation:

       xz[i] = (xz[i] ] y[i] ] 1) / 2





SunOS 5.11          Last change: 23 May 2007                    1






mediaLib Library Functions               mlibMatrixAveU8(3MLIB)



     where i = 0, 1, ..., (m*n - 1) for real data; i = 0, 1, ...,
     (m*n*2 - 1) for complex data.

PARAMETERS
     Each of the functions takes the following arguments:

     xz    Pointer to the first source and destination matrix.


     y     Pointer to the second source matrix.


     m     Number of rows in the matrices.


     n     Number of columns in the matrices.


RETURN VALUES
     Each of the functions 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
     mlibMatrixAveU8U8(3MLIB), attributes(5)
















SunOS 5.11          Last change: 23 May 2007                    2



OpenSolaris man pages main menu

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