adxenc.c File Reference

SEGA CRI adx codecs. More...

#include "avcodec.h"
#include "adx.h"
#include "bytestream.h"
#include "put_bits.h"

Go to the source code of this file.

Macros

#define HEADER_SIZE   36

Functions

static void adx_encode (ADXContext *c, uint8_t *adx, const int16_t *wav, ADXChannelState *prev, int channels)
static int adx_encode_header (AVCodecContext *avctx, uint8_t *buf, int bufsize)
static av_cold int adx_encode_init (AVCodecContext *avctx)
static av_cold int adx_encode_close (AVCodecContext *avctx)
static int adx_encode_frame (AVCodecContext *avctx, uint8_t *frame, int buf_size, void *data)

Variables

AVCodec ff_adpcm_adx_encoder

Detailed Description

SEGA CRI adx codecs.

Reference documents: http://ku-www.ss.titech.ac.jp/~yatsushi/adx.html adx2wav & wav2adx http://www.geocities.co.jp/Playtown/2004/

Definition in file adxenc.c.

Macro Definition Documentation

#define HEADER_SIZE   36

Definition at line 84 of file adxenc.c.

Referenced by adx_encode_header(), and encode_frame().

Function Documentation

static void adx_encode ( ADXContext c,
uint8_t *  adx,
const int16_t *  wav,
ADXChannelState prev,
int  channels 
)
static

Definition at line 36 of file adxenc.c.

Referenced by adx_encode_frame().

static av_cold int adx_encode_close ( AVCodecContext avctx)
static

Definition at line 131 of file adxenc.c.

static int adx_encode_frame ( AVCodecContext avctx,
uint8_t *  frame,
int  buf_size,
void data 
)
static

Definition at line 137 of file adxenc.c.

static int adx_encode_header ( AVCodecContext avctx,
uint8_t *  buf,
int  bufsize 
)
static

Definition at line 86 of file adxenc.c.

Referenced by adx_encode_frame().

static av_cold int adx_encode_init ( AVCodecContext avctx)
static

Definition at line 112 of file adxenc.c.

Variable Documentation

AVCodec ff_adpcm_adx_encoder
Initial value:
{
.name = "adpcm_adx",
.priv_data_size = sizeof(ADXContext),
.encode = adx_encode_frame,
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX ADPCM"),
}

Definition at line 167 of file adxenc.c.