aiffdec.c File Reference
#include "libavutil/mathematics.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "internal.h"
#include "pcm.h"
#include "aiff.h"

Go to the source code of this file.

Data Structures

struct  AIFFInputContext
 

Macros

#define AIFF   0
 
#define AIFF_C_VERSION1   0xA2805140
 
#define MAX_SIZE   4096
 

Functions

static enum CodecID aiff_codec_get_id (int bps)
 
static int get_tag (AVIOContext *pb, uint32_t *tag)
 
static void get_meta (AVFormatContext *s, const char *key, int size)
 
static unsigned int get_aiff_header (AVIOContext *pb, AVCodecContext *codec, int size, unsigned version)
 
static int aiff_probe (AVProbeData *p)
 
static int aiff_read_header (AVFormatContext *s, AVFormatParameters *ap)
 
static int aiff_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_aiff_demuxer
 

Macro Definition Documentation

#define AIFF   0

Definition at line 29 of file aiffdec.c.

Referenced by aiff_read_header(), and av_register_all().

#define AIFF_C_VERSION1   0xA2805140

Definition at line 30 of file aiffdec.c.

Referenced by aiff_read_header(), and get_aiff_header().

#define MAX_SIZE   4096

Definition at line 285 of file aiffdec.c.

Referenced by aiff_read_packet().

Function Documentation

static enum CodecID aiff_codec_get_id ( int  bps)
static

Definition at line 36 of file aiffdec.c.

Referenced by get_aiff_header().

static int aiff_probe ( AVProbeData p)
static

Definition at line 164 of file aiffdec.c.

static int aiff_read_header ( AVFormatContext s,
AVFormatParameters ap 
)
static

Definition at line 177 of file aiffdec.c.

static int aiff_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 287 of file aiffdec.c.

static unsigned int get_aiff_header ( AVIOContext pb,
AVCodecContext codec,
int  size,
unsigned  version 
)
static

Definition at line 88 of file aiffdec.c.

Referenced by aiff_read_header().

static void get_meta ( AVFormatContext s,
const char *  key,
int  size 
)
static

Definition at line 69 of file aiffdec.c.

Referenced by aiff_read_header().

static int get_tag ( AVIOContext pb,
uint32_t *  tag 
)
static

Definition at line 52 of file aiffdec.c.

Referenced by aiff_read_header().

Variable Documentation

AVInputFormat ff_aiff_demuxer
Initial value:
= {
.name = "aiff",
.long_name = NULL_IF_CONFIG_SMALL("Audio IFF"),
.priv_data_size = sizeof(AIFFInputContext),
.codec_tag= (const AVCodecTag* const []){ff_codec_aiff_tags, 0},
}
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:148
static int aiff_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: aiffdec.c:287
static int read_header(FFV1Context *f)
Definition: ffv1.c:1513
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static int read_probe(AVProbeData *p)
Definition: img2.c:185
static int aiff_probe(AVProbeData *p)
Definition: aiffdec.c:164
int pcm_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: pcm.c:26
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:109
static int aiff_read_header(AVFormatContext *s, AVFormatParameters *ap)
Definition: aiffdec.c:177
static const AVCodecTag ff_codec_aiff_tags[]
Definition: aiff.h:33

Definition at line 315 of file aiffdec.c.