FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
adxenc.c File Reference

SEGA CRI adx codecs. More...

#include "avcodec.h"
#include "adx.h"
#include "bytestream.h"
#include "internal.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 int adx_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

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 98 of file adxenc.c.

Referenced by adx_encode_frame(), and adx_encode_header().

Function Documentation

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

Definition at line 37 of file adxenc.c.

Referenced by adx_encode_frame().

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

Definition at line 100 of file adxenc.c.

Referenced by adx_encode_frame().

static av_cold int adx_encode_init ( AVCodecContext avctx)
static

Definition at line 123 of file adxenc.c.

static int adx_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int got_packet_ptr 
)
static

Definition at line 140 of file adxenc.c.

Variable Documentation

AVCodec ff_adpcm_adx_encoder
Initial value:
= {
.name = "adpcm_adx",
.long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX ADPCM"),
.priv_data_size = sizeof(ADXContext),
.encode2 = adx_encode_frame,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
static int adx_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: adxenc.c:140
Definition: adx.h:42
signed 16 bits
Definition: samplefmt.h:61
static av_cold int adx_encode_init(AVCodecContext *avctx)
Definition: adxenc.c:123
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701

Definition at line 172 of file adxenc.c.