mace.c File Reference


Detailed Description

MACE decoder.

Definition in file mace.c.

Go to the source code of this file.

Classes

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, 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, 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, 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


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 Exp1to3 ( MACEContext ctx,
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 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 Exp1to6 ( MACEContext ctx,
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_init ( AVCodecContext avctx  )  [static]

Definition at line 395 of file mace.c.

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

Definition at line 402 of file mace.c.


Variable Documentation

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 MACEtab3[] = { 0xffee, 0x008c, 0x008c, 0xffee } [static]

Definition at line 37 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 MACEtab4[][8] [static]

Definition at line 170 of file mace.c.

Referenced by Exp1to3(), and Exp1to6().

Initial value:

Definition at line 435 of file mace.c.

Initial value:

Definition at line 446 of file mace.c.


Generated on Sat Dec 18 05:15:53 2010 for MythTV by  doxygen 1.5.5