libavcodec/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.


#define HEADER_SIZE   36


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)


AVCodec ff_adpcm_adx_encoder

Detailed Description

SEGA CRI adx codecs.

Reference documents: adx2wav & wav2adx

Definition in file adxenc.c.

Define Documentation

#define HEADER_SIZE   36

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_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
) [static]

Definition at line 132 of file adxenc.c.

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

Definition at line 87 of file adxenc.c.

Referenced by adx_encode_frame().

static av_cold int adx_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 110 of file adxenc.c.

Variable Documentation

Initial value:

    .name           = "adpcm_adx",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = CODEC_ID_ADPCM_ADX,
    .priv_data_size = sizeof(ADXContext),
    .init           = adx_encode_init,
    .encode2        = adx_encode_frame,
    .sample_fmts    = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16,
                                                      AV_SAMPLE_FMT_NONE },
    .long_name      = NULL_IF_CONFIG_SMALL("SEGA CRI ADX ADPCM"),

Definition at line 164 of file adxenc.c.

Generated on Fri Oct 26 02:47:55 2012 for FFmpeg by  doxygen 1.5.8