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

alaw.cpp File Reference

Implements the static Alaw utility class. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "alaw.h"

Include dependency graph for alaw.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define SIGN_BIT   (0x80)
#define QUANT_MASK   (0xf)
#define NSEGS   (8)
#define SEG_SHIFT   (4)
#define SEG_MASK   (0x70)

Variables

const short alaw_seg_end [8]


Detailed Description

Implements the static Alaw utility class.

A-Law conversion Plug-In Interface Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz> Uros Bizjak <uros@kss-loka.si>

Based on reference implementation by Sun Microsystems, Inc.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Definition in file alaw.cpp.


Define Documentation

#define NSEGS   (8)
 

Definition at line 35 of file alaw.cpp.

Referenced by Alaw::linear2alaw().

#define QUANT_MASK   (0xf)
 

Definition at line 34 of file alaw.cpp.

Referenced by Alaw::linear2alaw().

#define SEG_MASK   (0x70)
 

Definition at line 37 of file alaw.cpp.

#define SEG_SHIFT   (4)
 

Definition at line 36 of file alaw.cpp.

Referenced by Alaw::linear2alaw().

#define SIGN_BIT   (0x80)
 

Definition at line 33 of file alaw.cpp.


Variable Documentation

const short alaw_seg_end[8] [static]
 

Initial value:

 {0xFF, 0x1FF, 0x3FF, 0x7FF,
                                0xFFF, 0x1FFF, 0x3FFF, 0x7FFF}

Definition at line 39 of file alaw.cpp.

Referenced by Alaw::linear2alaw().


Generated on Tue Feb 8 04:15:08 2005 for Esidplay by doxygen 1.3.3