#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | ChannelData |
struct | MACEContext |
Defines | |
#define | QT_8S_2_16S(x) (((x) & 0xFF00) | (((x) >> 8) & 0xFF)) |
Functions | |
static int16_t | mace_broken_clip_int16 (int n) |
MACE version of av_clip_int16(). | |
static int16_t | read_table (ChannelData *chd, uint8_t val, int tab_idx) |
static void | chomp3 (ChannelData *chd, int16_t *output, uint8_t val, int tab_idx, uint32_t numChannels) |
static void | chomp6 (ChannelData *chd, int16_t *output, uint8_t val, int tab_idx, uint32_t numChannels) |
static av_cold int | mace_decode_init (AVCodecContext *avctx) |
static int | mace_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
Variables | |
static const int16_t | MACEtab1 [] = {-13, 8, 76, 222, 222, 76, 8, -13} |
static const int16_t | MACEtab3 [] = {-18, 140, 140, -18} |
static const int16_t | MACEtab2 [][4] |
static const int16_t | MACEtab4 [][2] |
struct { | |
const int16_t * tab1 | |
const int16_t * tab2 | |
int stride | |
} | tabs [] |
AVCodec | ff_mace3_decoder |
AVCodec | ff_mace6_decoder |
Definition in file mace.c.
#define QT_8S_2_16S | ( | x | ) | (((x) & 0xFF00) | (((x) >> 8) & 0xFF)) |
static void chomp3 | ( | ChannelData * | chd, | |
int16_t * | output, | |||
uint8_t | val, | |||
int | tab_idx, | |||
uint32_t | numChannels | |||
) | [static] |
static void chomp6 | ( | ChannelData * | chd, | |
int16_t * | output, | |||
uint8_t | val, | |||
int | tab_idx, | |||
uint32_t | numChannels | |||
) | [static] |
static int16_t mace_broken_clip_int16 | ( | int | n | ) | [inline, static] |
static int mace_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int mace_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static int16_t read_table | ( | ChannelData * | chd, | |
uint8_t | val, | |||
int | tab_idx | |||
) | [static] |
Initial value:
{ "mace3", AVMEDIA_TYPE_AUDIO, CODEC_ID_MACE3, sizeof(MACEContext), mace_decode_init, NULL, NULL, mace_decode_frame, .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 3:1"), }
Initial value:
{ "mace6", AVMEDIA_TYPE_AUDIO, CODEC_ID_MACE6, sizeof(MACEContext), mace_decode_init, NULL, NULL, mace_decode_frame, .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 6:1"), }
const int16_t MACEtab1[] = {-13, 8, 76, 222, 222, 76, 8, -13} [static] |
const int16_t* tab1 |
struct { ... } tabs[] [static] |
Referenced by read_table(), and very_broken_op().