libavcodec/pcm_tablegen.h File Reference

#include <stdint.h>
#include "libavutil/attributes.h"

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)
#define BIAS   (0x84)

Functions

static av_cold int alaw2linear (unsigned char a_val)
static av_cold int ulaw2linear (unsigned char u_val)
static av_cold void build_xlaw_table (uint8_t *linear_to_xlaw, int(*xlaw2linear)(unsigned char), int mask)
static void pcm_alaw_tableinit (void)
static void pcm_ulaw_tableinit (void)

Variables

static uint8_t linear_to_alaw [16384]
static uint8_t linear_to_ulaw [16384]


Define Documentation

#define BIAS   (0x84)

Definition at line 37 of file pcm_tablegen.h.

Referenced by ulaw2linear().

#define NSEGS   (8)

Definition at line 33 of file pcm_tablegen.h.

#define QUANT_MASK   (0xf)

Definition at line 32 of file pcm_tablegen.h.

Referenced by alaw2linear(), and ulaw2linear().

#define SEG_MASK   (0x70)

Definition at line 35 of file pcm_tablegen.h.

Referenced by alaw2linear().

#define SEG_SHIFT   (4)

Definition at line 34 of file pcm_tablegen.h.

Referenced by alaw2linear(), and ulaw2linear().

#define SIGN_BIT   (0x80)

Definition at line 31 of file pcm_tablegen.h.

Referenced by alaw2linear(), and ulaw2linear().


Function Documentation

static av_cold int alaw2linear ( unsigned char  a_val  )  [static]

Definition at line 43 of file pcm_tablegen.h.

Referenced by pcm_alaw_tableinit(), and pcm_decode_init().

static av_cold void build_xlaw_table ( uint8_t *  linear_to_xlaw,
int(*)(unsigned char)  xlaw2linear,
int  mask 
) [static]

Definition at line 84 of file pcm_tablegen.h.

Referenced by pcm_alaw_tableinit(), and pcm_ulaw_tableinit().

static void pcm_alaw_tableinit ( void   )  [static]

Definition at line 108 of file pcm_tablegen.h.

Referenced by main(), and pcm_encode_init().

static void pcm_ulaw_tableinit ( void   )  [static]

Definition at line 113 of file pcm_tablegen.h.

Referenced by main(), and pcm_encode_init().

static av_cold int ulaw2linear ( unsigned char  u_val  )  [static]

Definition at line 58 of file pcm_tablegen.h.

Referenced by pcm_decode_init(), and pcm_ulaw_tableinit().


Variable Documentation

uint8_t linear_to_alaw[16384] [static]

Definition at line 81 of file pcm_tablegen.h.

Referenced by main(), pcm_alaw_tableinit(), and pcm_encode_frame().

uint8_t linear_to_ulaw[16384] [static]

Definition at line 82 of file pcm_tablegen.h.

Referenced by main(), pcm_encode_frame(), and pcm_ulaw_tableinit().


Generated on Fri Oct 26 02:46:09 2012 for FFmpeg by  doxygen 1.5.8