MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions        mlibSignalQuantS16F32(3MLIB)



NAME
     mlibSignalQuantS16F32 - float to 16-bit quantization

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

     mlibstatus mlibSignalQuantS16F32(mlibs16 *dst,
          const mlibf32 *src, const mlibf32 *thresh, mlibs32 n);


DESCRIPTION
     The mlibSignalQuantS16F32() function quantizes  a  signal
     array by using the following equation:

       X = x(n)     n = 0, 1, ...
       Z = z(n)     n = 0, 1, ...
         = -32768   for x(n) < t(-32768)
         =      k   for t(k) < x(n) < t(k]1)
         = ]32767   for x(n) > t(]32767)


PARAMETERS
     The function takes the following arguments:

     dst       Output signal array


     src       Input signal array .


     thresh    Array of 65536 thresholds.


     n         Number of samples in the input signal array.


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

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











SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions        mlibSignalQuantS16F32(3MLIB)



     
           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 ™