ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

msg711.c File Reference
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "mmsystem.h"
#include "mmreg.h"
#include "msacm.h"
#include "msacmdrv.h"
#include "wine/debug.h"

Go to the source code of this file.

Data Structures

struct  AcmG711Data
struct  Format

Defines

#define NUM_PCM_FORMATS   (sizeof(PCM_Formats) / sizeof(PCM_Formats[0]))
#define NUM_ALAW_FORMATS   (sizeof(ALaw_Formats) / sizeof(ALaw_Formats[0]))
#define NUM_ULAW_FORMATS   (sizeof(ULaw_Formats) / sizeof(ULaw_Formats[0]))
#define SIGN_BIT   (0x80) /* Sign bit for an A-law byte. */
#define QUANT_MASK   (0xf) /* Quantization field mask. */
#define NSEGS   (8) /* Number of A-law segments. */
#define SEG_SHIFT   (4) /* Left shift for segment number. */
#define SEG_MASK   (0x70) /* Segment field mask. */
#define BIAS   (0x84) /* Bias for linear code. */
#define CLIP   8159

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (g711)
static LRESULT G711_drvOpen (LPCSTR str)
static LRESULT G711_drvClose (DWORD_PTR dwDevID)
static DWORD G711_GetFormatIndex (const WAVEFORMATEX *wfx)
static short R16 (const unsigned char *src)
static void W16 (unsigned char *dst, short s)
static short search (int val, const short *table, int size)
static unsigned char linear2alaw (int pcm_val)
static int alaw2linear (unsigned char a_val)
static unsigned char linear2ulaw (short pcm_val)
static short ulaw2linear (unsigned char u_val)
static unsigned char alaw2ulaw (unsigned char aval)
static unsigned char ulaw2alaw (unsigned char uval)
static void cvtXXalaw16K (PACMDRVSTREAMINSTANCE adsi, const unsigned char *src, LPDWORD srcsize, unsigned char *dst, LPDWORD dstsize)
static void cvtXX16alawK (PACMDRVSTREAMINSTANCE adsi, const unsigned char *src, LPDWORD srcsize, unsigned char *dst, LPDWORD dstsize)
static void cvtXXulaw16K (PACMDRVSTREAMINSTANCE adsi, const unsigned char *src, LPDWORD srcsize, unsigned char *dst, LPDWORD dstsize)
static void cvtXX16ulawK (PACMDRVSTREAMINSTANCE adsi, const unsigned char *src, LPDWORD srcsize, unsigned char *dst, LPDWORD dstsize)
static void cvtXXalawulawK (PACMDRVSTREAMINSTANCE adsi, const unsigned char *src, LPDWORD srcsize, unsigned char *dst, LPDWORD dstsize)
static void cvtXXulawalawK (PACMDRVSTREAMINSTANCE adsi, const unsigned char *src, LPDWORD srcsize, unsigned char *dst, LPDWORD dstsize)
static LRESULT G711_DriverDetails (PACMDRIVERDETAILSW add)
static LRESULT G711_FormatTagDetails (PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
static LRESULT G711_FormatDetails (PACMFORMATDETAILSW afd, DWORD dwQuery)
static LRESULT G711_FormatSuggest (PACMDRVFORMATSUGGEST adfs)
static void G711_Reset (PACMDRVSTREAMINSTANCE adsi, AcmG711Data *aad)
static LRESULT G711_StreamOpen (PACMDRVSTREAMINSTANCE adsi)
static LRESULT G711_StreamClose (PACMDRVSTREAMINSTANCE adsi)
static LRESULT G711_StreamSize (const ACMDRVSTREAMINSTANCE *adsi, PACMDRVSTREAMSIZE adss)
static LRESULT G711_StreamConvert (PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMHEADER adsh)
LRESULT CALLBACK G711_DriverProc (DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg, LPARAM dwParam1, LPARAM dwParam2)

Variables

static const Format PCM_Formats []
static const Format ALaw_Formats []
static const Format ULaw_Formats []
static const short seg_aend [8] = {0x1F, 0x3F, 0x7F, 0x0FF, 0x1FF, 0x3FF, 0x7FF, 0x0FFF}
static const short seg_uend [8] = {0x3F, 0x7F, 0xFF, 0x1FF, 0x3FF, 0x7FF, 0xFFF, 0x1FFF}
static const unsigned char _u2a [128]
static const unsigned char _a2u [128]
static const unsigned short _a2l []
static const unsigned short _u2l []

Generated on Sun May 27 2012 05:13:06 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.