Data Structures | Functions | Variables
fastaudio.c File Reference
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "mathops.h"

Go to the source code of this file.

Data Structures

struct  ChannelItems
struct  FastAudioContext


static av_cold int fastaudio_init (AVCodecContext *avctx)
static int read_bits (int bits, int *ppos, unsigned *src)
static void set_sample (int i, int j, int v, float *result, int *pads, float value)
static int fastaudio_decode (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
static av_cold int fastaudio_close (AVCodecContext *avctx)


static const uint8_t bits [8] = { 6, 6, 5, 5, 4, 0, 3, 3, }
AVCodec ff_fastaudio_decoder

Function Documentation

static av_cold int fastaudio_init ( AVCodecContext avctx)

Definition at line 40 of file fastaudio.c.

static int read_bits ( int  bits,
int ppos,
unsigned *  src 

Definition at line 86 of file fastaudio.c.

Referenced by fastaudio_decode().

static void set_sample ( int  i,
int  j,
int  v,
float *  result,
int pads,
float  value 

Definition at line 100 of file fastaudio.c.

Referenced by fastaudio_decode().

static int fastaudio_decode ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket pkt 

Definition at line 105 of file fastaudio.c.

static av_cold int fastaudio_close ( AVCodecContext avctx)

Definition at line 179 of file fastaudio.c.

Variable Documentation

const uint8_t bits[8] = { 6, 6, 5, 5, 4, 0, 3, 3, }

Definition at line 98 of file fastaudio.c.

Referenced by fastaudio_decode(), and read_bits().

AVCodec ff_fastaudio_decoder
Initial value:
= {
.name = "fastaudio",
.long_name = NULL_IF_CONFIG_SMALL("MobiClip FastAudio"),
.priv_data_size = sizeof(FastAudioContext),
.close = fastaudio_close,
.capabilities = AV_CODEC_CAP_DR1,
float, planar
Definition: samplefmt.h:69
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
static av_cold int fastaudio_close(AVCodecContext *avctx)
Definition: fastaudio.c:179
static av_cold int fastaudio_init(AVCodecContext *avctx)
Definition: fastaudio.c:40
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:115
static int fastaudio_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
Definition: fastaudio.c:105
Audio sample formats.
Definition: samplefmt.h:58
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:940
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50

Definition at line 188 of file fastaudio.c.