MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions         mlibSignalQuantU8S16(3MLIB)



NAME
     mlibSignalQuantU8S16, mlibSignalQuantU8S16S -  16-bit
     to 8-bit quantization

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

     mlibstatus mlibSignalQuantU8S16(mlibu8 *dst,
          const mlibs16 *src, const mlibs16 *thresh, mlibs32 n);


     mlibstatus mlibSignalQuantU8S16S(mlibu8 *dst,
          const mlibs16 *src, const mlibs16 *thresh, mlibs32 n);


DESCRIPTION
     Each of these functions quantizes a signal  array  by  using
     the following equation:

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


PARAMETERS
     Each of the functions takes the following arguments:

     dst       Output signal array.


     src       Input signal array.


     thresh    Array of 256 thresholds.


     n         Number of samples in the input signal array.


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:






SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions         mlibSignalQuantU8S16(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 ™