MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions               mlibVectorSetU8(3MLIB)



NAME
     mlibVectorSetU8,  mlibVectorSetU8C,   mlibVectorSetS8,
     mlibVectorSetS8C, mlibVectorSetS16, mlibVectorSetS16C,
     mlibVectorSetS32,  mlibVectorSetS32C  -  set  vector  to
     specified value

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

     mlibstatus mlibVectorSetU8(mlibu8 *z, const mlibu8 *c,
          mlibs32 n);


     mlibstatus mlibVectorSetU8C(mlibu8 *z, const mlibu8 *c,
          mlibs32 n);


     mlibstatus mlibVectorSetS8(mlibs8 *z, const mlibs8 *c,
          mlibs32 n);


     mlibstatus mlibVectorSetS8C(mlibs8 *z, const mlibs8 *c,
          mlibs32 n);


     mlibstatus mlibVectorSetS16(mlibs16 *z, const mlibs16 *c,
          mlibs32 n);


     mlibstatus mlibVectorSetS16C(mlibs16 *z, const mlibs16 *c,
          mlibs32 n);


     mlibstatus mlibVectorSetS32(mlibs32 *z, const mlibs32 *c,
          mlibs32 n);


     mlibstatus mlibVectorSetS32C(mlibs32 *z, const mlibs32 *c,
          mlibs32 n);


DESCRIPTION
     Each of these functions sets a vector to a specified value.


     For real data, the following equation is used:

       z[i] = c[0]






SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions               mlibVectorSetU8(3MLIB)



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


     For complex data, the following equation is used:

       z[2*i]     = c[0]
       z[2*i ] 1] = c[1]



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

PARAMETERS
     Each of the functions takes the following arguments:

     z    Pointer to the first element of the destination vector.


     c    Pointer to the source scalar. When the function is used
          with complex data types, c[0] contains the scaling fac-
          tor for the real part, and c[1]  contains  the  scaling
          factor for the imaginary part.


     n    Number of elements in the vector.


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