MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions   mlibSignalDownSampleS16S16(3MLIB)



NAME
     mlibSignalDownSampleS16S16,
     mlibSignalDownSampleS16S16S,
     mlibSignalDownSampleF32F32,
     mlibSignalDownSampleF32SF32S - signal downsampling

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

     mlibstatus mlibSignalDownSampleS16S16(mlibs16 *dst,
          const mlibs16 *src, mlibs32 factor, mlibs32 phase,
          mlibs32 n);


     mlibstatus mlibSignalDownSampleS16S16S(mlibs16 *dst,
          const mlibs16 *src, mlibs32 factor, mlibs32 phase,
          mlibs32 n);


     mlibstatus mlibSignalDownSampleF32F32(mlibf32 *dst,
          const mlibf32 *src, mlibs32 factor, mlibs32 phase,
          mlibs32 n);


     mlibstatus mlibSignalDownSampleF32SF32S(mlibf32 *dst,
          const mlibf32 *src, mlibs32 factor, mlibs32 phase,
          mlibs32 n);


DESCRIPTION
     Each of these functions performs downsampling.


     For monaural signals, the following equation is used:

       dst[i] = src[i*factor ] phase]



     where i = 0, 1, ..., (n - 1 - phase)/factor.


     For stereo signals, the following equation is used:

       dst[2*i]     = src[2*(i*factor ] phase)]
       dst[2*i ] 1] = src[2*(i*factor ] phase) ] 1]



     where i = 0, 1, ..., (n - 1 - phase)/factor.




SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions   mlibSignalDownSampleS16S16(3MLIB)



PARAMETERS
     Each of the functions takes the following arguments:

     dst       Output signal array.


     src       Input signal array.


     factor    Factor by which to downsample. factor > 1.


     phase     Parameter that determines relative position of  an
               output value, within the input signal. 0 < phase <
               factor.


     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:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Committed                   
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     mlibSignalUpSampleS16S16(3MLIB), 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 ™