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

Alaw Class Reference

#include <alaw.h>

List of all members.

Static Public Member Functions

void conv_u8bit_alaw (unsigned char *src_ptr, unsigned char *dst_ptr, size_t size)
void conv_s8bit_alaw (unsigned char *src_ptr, unsigned char *dst_ptr, size_t size)
void conv_s16bit_alaw (unsigned short *src_ptr, unsigned char *dst_ptr, size_t size)
void conv_u16bit_alaw (unsigned short *src_ptr, unsigned char *dst_ptr, size_t size)

Static Private Member Functions

unsigned char linear2alaw (int pcm_val)
int search (int val, const short *table, int size)


Detailed Description

Static utility class for converting between Alaw and linear PCM sound

Definition at line 19 of file alaw.h.


Member Function Documentation

void Alaw::conv_s16bit_alaw unsigned short *  src_ptr,
unsigned char *  dst_ptr,
size_t  size
[static]
 

Definition at line 182 of file alaw.cpp.

References linear2alaw().

void Alaw::conv_s8bit_alaw unsigned char *  src_ptr,
unsigned char *  dst_ptr,
size_t  size
[static]
 

Definition at line 172 of file alaw.cpp.

References linear2alaw().

void Alaw::conv_u16bit_alaw unsigned short *  src_ptr,
unsigned char *  dst_ptr,
size_t  size
[static]
 

Definition at line 196 of file alaw.cpp.

References linear2alaw().

void Alaw::conv_u8bit_alaw unsigned char *  src_ptr,
unsigned char *  dst_ptr,
size_t  size
[static]
 

Definition at line 162 of file alaw.cpp.

References linear2alaw().

unsigned char Alaw::linear2alaw int  pcm_val  )  [inline, static, private]
 

Definition at line 80 of file alaw.cpp.

References alaw_seg_end, NSEGS, QUANT_MASK, search(), and SEG_SHIFT.

Referenced by conv_s16bit_alaw(), conv_s8bit_alaw(), conv_u16bit_alaw(), and conv_u8bit_alaw().

int Alaw::search int  val,
const short *  table,
int  size
[inline, static, private]
 

Definition at line 50 of file alaw.cpp.

Referenced by linear2alaw().


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:11:27 2005 for E32frodo by doxygen 1.3.3