Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

alaw.h

Go to the documentation of this file.
00001 // ALAW.H
00002 //
00003 // Class for handling Alaw conversions
00004 //
00005 #if !defined(ALAW_H__)
00006 #define ALAW_H__
00007 
00019 class Alaw
00020         {
00021   public:
00022         static void conv_u8bit_alaw(unsigned char *src_ptr, unsigned char *dst_ptr, size_t size);
00023         static void conv_s8bit_alaw(unsigned char *src_ptr, unsigned char *dst_ptr, size_t size);
00024         static void conv_s16bit_alaw(unsigned short *src_ptr, unsigned char *dst_ptr, size_t size);
00025         static void conv_u16bit_alaw(unsigned short *src_ptr, unsigned char *dst_ptr, size_t size);
00026   private:
00027         static inline unsigned char linear2alaw(int pcm_val);
00028         static inline int search(int val, const short *table, int size);
00029         };
00030 
00031 #endif // ALAW_H__
00032 
00033 

Generated on Tue Feb 8 04:07:17 2005 for E32frodo by doxygen 1.3.3