libavcodec/mace.c File Reference

MACE decoder. More...

#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  MACEContext

Functions

static void chomp3 (MACEContext *ctx, uint8_t val, const uint16_t tab1[], const uint16_t tab2[][8], uint32_t numChannels)
static void Exp1to3 (MACEContext *ctx, const uint8_t *inBuffer, void *outBuffer, uint32_t cnt, uint32_t numChannels, uint32_t whichChannel)
static void chomp6 (MACEContext *ctx, uint8_t val, const uint16_t tab1[], const uint16_t tab2[][8], uint32_t numChannels)
static void Exp1to6 (MACEContext *ctx, const uint8_t *inBuffer, void *outBuffer, uint32_t cnt, uint32_t numChannels, uint32_t whichChannel)
static int mace_decode_init (AVCodecContext *avctx)
static int mace_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size)

Variables

static const uint16_t MACEtab1 [] = { 0xfff3, 0x0008, 0x004c, 0x00de, 0x00de, 0x004c, 0x0008, 0xfff3 }
static const uint16_t MACEtab3 [] = { 0xffee, 0x008c, 0x008c, 0xffee }
static const uint16_t MACEtab2 [][8]
static const uint16_t MACEtab4 [][8]
AVCodec mace3_decoder
AVCodec mace6_decoder


Detailed Description

MACE decoder.

Definition in file mace.c.


Function Documentation

static void chomp3 ( MACEContext ctx,
uint8_t  val,
const uint16_t  tab1[],
const uint16_t  tab2[][8],
uint32_t  numChannels 
) [static]

Definition at line 244 of file mace.c.

Referenced by Exp1to3().

static void chomp6 ( MACEContext ctx,
uint8_t  val,
const uint16_t  tab1[],
const uint16_t  tab2[][8],
uint32_t  numChannels 
) [static]

Definition at line 310 of file mace.c.

Referenced by Exp1to6().

static void Exp1to3 ( MACEContext ctx,
const uint8_t inBuffer,
void *  outBuffer,
uint32_t  cnt,
uint32_t  numChannels,
uint32_t  whichChannel 
) [static]

Definition at line 265 of file mace.c.

Referenced by mace_decode_frame().

static void Exp1to6 ( MACEContext ctx,
const uint8_t inBuffer,
void *  outBuffer,
uint32_t  cnt,
uint32_t  numChannels,
uint32_t  whichChannel 
) [static]

Definition at line 349 of file mace.c.

Referenced by mace_decode_frame().

static int mace_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
const uint8_t buf,
int  buf_size 
) [static]

Definition at line 402 of file mace.c.

static int mace_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 395 of file mace.c.


Variable Documentation

Initial value:

Definition at line 431 of file mace.c.

Initial value:

Definition at line 442 of file mace.c.

const uint16_t MACEtab1[] = { 0xfff3, 0x0008, 0x004c, 0x00de, 0x00de, 0x004c, 0x0008, 0xfff3 } [static]

Definition at line 35 of file mace.c.

Referenced by Exp1to3(), and Exp1to6().

const uint16_t MACEtab2[][8] [static]

Definition at line 39 of file mace.c.

Referenced by Exp1to3(), and Exp1to6().

const uint16_t MACEtab3[] = { 0xffee, 0x008c, 0x008c, 0xffee } [static]

Definition at line 37 of file mace.c.

Referenced by Exp1to3(), and Exp1to6().

const uint16_t MACEtab4[][8] [static]

Definition at line 170 of file mace.c.

Referenced by Exp1to3(), and Exp1to6().


Generated on Thu Apr 2 07:15:41 2009 for ffmpeg by  doxygen 1.5.6