Logo Search packages:      
Sourcecode: blender version File versions  Download package

pcm.c File Reference


Detailed Description

PCM codecs

Definition in file pcm.c.

#include "avcodec.h"
#include "bitstream.h"

Go to the source code of this file.

Classes

struct  PCMDecode

Defines

#define BIAS   (0x84)
#define NSEGS   (8)
#define PCM_CODEC(id, name)
#define QUANT_MASK   (0xf)
#define SEG_MASK   (0x70)
#define SEG_SHIFT   (4)
#define SIGN_BIT   (0x80)

Functions

static int alaw2linear (unsigned char a_val)
static void build_xlaw_table (uint8_t *linear_to_xlaw, int(*xlaw2linear)(unsigned char), int mask)
static void decode_to16 (int bps, int le, int us, uint8_t **src, short **samples, int src_len)
 convert samples to 16 bit
static void encode_from16 (int bps, int le, int us, short **samples, uint8_t **dst, int n)
 convert samples from 16 bit
 PCM_CODEC (CODEC_ID_PCM_MULAW, pcm_mulaw)
 PCM_CODEC (CODEC_ID_PCM_ALAW, pcm_alaw)
 PCM_CODEC (CODEC_ID_PCM_U8, pcm_u8)
 PCM_CODEC (CODEC_ID_PCM_S8, pcm_s8)
 PCM_CODEC (CODEC_ID_PCM_U16BE, pcm_u16be)
 PCM_CODEC (CODEC_ID_PCM_U16LE, pcm_u16le)
 PCM_CODEC (CODEC_ID_PCM_S16BE, pcm_s16be)
 PCM_CODEC (CODEC_ID_PCM_S16LE, pcm_s16le)
 PCM_CODEC (CODEC_ID_PCM_S24DAUD, pcm_s24daud)
 PCM_CODEC (CODEC_ID_PCM_U24BE, pcm_u24be)
 PCM_CODEC (CODEC_ID_PCM_U24LE, pcm_u24le)
 PCM_CODEC (CODEC_ID_PCM_S24BE, pcm_s24be)
 PCM_CODEC (CODEC_ID_PCM_S24LE, pcm_s24le)
 PCM_CODEC (CODEC_ID_PCM_U32BE, pcm_u32be)
 PCM_CODEC (CODEC_ID_PCM_U32LE, pcm_u32le)
 PCM_CODEC (CODEC_ID_PCM_S32BE, pcm_s32be)
 PCM_CODEC (CODEC_ID_PCM_S32LE, pcm_s32le)
static int pcm_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int pcm_decode_init (AVCodecContext *avctx)
static int pcm_encode_close (AVCodecContext *avctx)
static int pcm_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)
static int pcm_encode_init (AVCodecContext *avctx)
static int ulaw2linear (unsigned char u_val)

Variables

static uint8_t * linear_to_alaw = NULL
static int linear_to_alaw_ref = 0
static uint8_t * linear_to_ulaw = NULL
static int linear_to_ulaw_ref = 0


Generated by  Doxygen 1.6.0   Back to index