MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions         mlibMatrixScaleU8Mod(3MLIB)



NAME
     mlibMatrixScaleU8Mod,            mlibMatrixScaleU8Sat,
     mlibMatrixScaleU8CMod,          mlibMatrixScaleU8CSat,
     mlibMatrixScaleS8Mod,            mlibMatrixScaleS8Sat,
     mlibMatrixScaleS8CMod,          mlibMatrixScaleS8CSat,
     mlibMatrixScaleS16Mod,          mlibMatrixScaleS16Sat,
     mlibMatrixScaleS16CMod,        mlibMatrixScaleS16CSat,
     mlibMatrixScaleS32Mod,          mlibMatrixScaleS32Sat,
     mlibMatrixScaleS32CMod,    mlibMatrixScaleS32CSat    -
     matrix linear scaling, in place

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

     mlibstatus mlibMatrixScaleU8Mod(mlibu8 *xz, const mlibu8 *a,
          const mlibu8 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleU8Sat(mlibu8 *xz, const mlibu8 *a,
          const mlibu8 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleU8CMod(mlibu8 *xz, const mlibu8 *a,
          const mlibu8 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleU8CSat(mlibu8 *xz, const mlibu8 *a,
          const mlibu8 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS8Mod(mlibs8 *xz, const mlibs8 *a,
          const mlibs8 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS8Sat(mlibs8 *xz, const mlibs8 *a,
          const mlibs8 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS8CMod(mlibs8 *xz, const mlibs8 *a,
          const mlibs8 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS8CSat(mlibs8 *xz, const mlibs8 *a,
          const mlibs8 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS16Mod(mlibs16 *xz, const mlibs16 *a,
          const mlibs16 *b, mlibs32 m, mlibs32 n);






SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions         mlibMatrixScaleU8Mod(3MLIB)



     mlibstatus mlibMatrixScaleS16Sat(mlibs16 *xz, const mlibs16 *a,
          const mlibs16 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS16CMod(mlibs16 *xz, const mlibs16 *a,
          const mlibs16 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS16CSat(mlibs16 *xz, const mlibs16 *a,
          const mlibs16 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS32Mod(mlibs32 *xz, const mlibs32 *a,
          const mlibs32 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS32Sat(mlibs32 *xz, const mlibs32 *a,
          const mlibs32 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS32CMod(mlibs32 *xz, const mlibs32 *a,
          const mlibs32 *b, mlibs32 m, mlibs32 n);


     mlibstatus mlibMatrixScaleS32CSat(mlibs32 *xz, const mlibs32 *a,
          const mlibs32 *b, mlibs32 m, mlibs32 n);


DESCRIPTION
     Each of these functions performs an in-place  multiplication
     of a matrix by a scalar and then adds an offset.


     For real data, the following equation is used:

       xz[i] = a[0]*xz[i] ] b[0]



     where i = 0, 1, ..., (m*n - 1).


     For complex data, the following equation is used:

       tmp         = xz[2*i]
       xz[2*i]     = a[0]*tmp - a[1]*xz[2*i ] 1] ] b[0]
       xz[2*i ] 1] = a[1]*tmp ] a[0]*xz[2*i ] 1] ] b[1]



     where i = 0, 1, ..., (m*n - 1).




SunOS 5.11           Last change: 2 Mar 2007                    2






mediaLib Library Functions         mlibMatrixScaleU8Mod(3MLIB)



PARAMETERS
     Each of the functions takes the following arguments:

     xz    Pointer to the source and destination matrix.


     a     Pointer to the source scaling factor. When  the  func-
           tion  is  used  with complex data types, a[0] contains
           the scalar for the real part, and  a[1]  contains  the
           scalar for the imaginary part.


     b     Pointer to the source offset.  When  the  function  is
           used with complex data types, b[0] contains the offset
           for the real part, and b[1] contains  the  offset  for
           the imaginary part.


     m     Number of rows in the matrix.


     n     Number of columns in the matrix.


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
     mlibMatrixScaleU8U8Mod(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 ™