FFmpeg
Data Structures | Macros | Functions | Variables
ape.c File Reference
#include <stdio.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "apetag.h"

Go to the source code of this file.

Data Structures

struct  APEFrame
 
struct  APEContext
 Decoder context. More...
 

Macros

#define APE_MIN_VERSION   3800
 
#define APE_MAX_VERSION   3990
 
#define MAC_FORMAT_FLAG_8_BIT   1
 
#define MAC_FORMAT_FLAG_CRC   2
 
#define MAC_FORMAT_FLAG_HAS_PEAK_LEVEL   4
 
#define MAC_FORMAT_FLAG_24_BIT   8
 
#define MAC_FORMAT_FLAG_HAS_SEEK_ELEMENTS   16
 
#define MAC_FORMAT_FLAG_CREATE_WAV_HEADER   32
 
#define APE_EXTRADATA_SIZE   6
 

Functions

static int ape_probe (const AVProbeData *p)
 
static void ape_dumpinfo (AVFormatContext *s, APEContext *ape_ctx)
 
static int ape_read_header (AVFormatContext *s)
 
static int ape_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int ape_read_close (AVFormatContext *s)
 
static int ape_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

const FFInputFormat ff_ape_demuxer
 

Macro Definition Documentation

◆ APE_MIN_VERSION

#define APE_MIN_VERSION   3800

Definition at line 33 of file ape.c.

◆ APE_MAX_VERSION

#define APE_MAX_VERSION   3990

Definition at line 34 of file ape.c.

◆ MAC_FORMAT_FLAG_8_BIT

#define MAC_FORMAT_FLAG_8_BIT   1

Definition at line 36 of file ape.c.

◆ MAC_FORMAT_FLAG_CRC

#define MAC_FORMAT_FLAG_CRC   2

Definition at line 37 of file ape.c.

◆ MAC_FORMAT_FLAG_HAS_PEAK_LEVEL

#define MAC_FORMAT_FLAG_HAS_PEAK_LEVEL   4

Definition at line 38 of file ape.c.

◆ MAC_FORMAT_FLAG_24_BIT

#define MAC_FORMAT_FLAG_24_BIT   8

Definition at line 39 of file ape.c.

◆ MAC_FORMAT_FLAG_HAS_SEEK_ELEMENTS

#define MAC_FORMAT_FLAG_HAS_SEEK_ELEMENTS   16

Definition at line 40 of file ape.c.

◆ MAC_FORMAT_FLAG_CREATE_WAV_HEADER

#define MAC_FORMAT_FLAG_CREATE_WAV_HEADER   32

Definition at line 41 of file ape.c.

◆ APE_EXTRADATA_SIZE

#define APE_EXTRADATA_SIZE   6

Definition at line 43 of file ape.c.

Function Documentation

◆ ape_probe()

static int ape_probe ( const AVProbeData p)
static

Definition at line 84 of file ape.c.

◆ ape_dumpinfo()

static void ape_dumpinfo ( AVFormatContext s,
APEContext ape_ctx 
)
static

Definition at line 96 of file ape.c.

Referenced by ape_read_header().

◆ ape_read_header()

static int ape_read_header ( AVFormatContext s)
static

Definition at line 144 of file ape.c.

◆ ape_read_packet()

static int ape_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 370 of file ape.c.

◆ ape_read_close()

static int ape_read_close ( AVFormatContext s)
static

Definition at line 425 of file ape.c.

◆ ape_read_seek()

static int ape_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 433 of file ape.c.

Variable Documentation

◆ ff_ape_demuxer

const FFInputFormat ff_ape_demuxer
Initial value:
= {
.p.name = "ape",
.p.long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"),
.p.extensions = "ape,apl,mac",
.priv_data_size = sizeof(APEContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}

Definition at line 449 of file ape.c.

ape_probe
static int ape_probe(const AVProbeData *p)
Definition: ape.c:84
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:143
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
FF_INFMT_FLAG_INIT_CLEANUP
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: demux.h:35
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
APEContext
Decoder context.
Definition: apedec.c:152
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
ape_read_header
static int ape_read_header(AVFormatContext *s)
Definition: ape.c:144
ape_read_packet
static int ape_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ape.c:370
ape_read_close
static int ape_read_close(AVFormatContext *s)
Definition: ape.c:425
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
ape_read_seek
static int ape_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: ape.c:433