libavformat/ape.c File Reference

#include <stdio.h>
#include "libavutil/intreadwrite.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  APEFrame
struct  APEContext
 Decoder context. More...

Defines

#define ENABLE_DEBUG   0
#define APE_MIN_VERSION   3950
#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 MAC_SUBFRAME_SIZE   4608
#define APE_EXTRADATA_SIZE   6
#define APE_TAG_VERSION   2000
#define APE_TAG_FOOTER_BYTES   32
#define APE_TAG_FLAG_CONTAINS_HEADER   (1 << 31)
#define APE_TAG_FLAG_IS_HEADER   (1 << 29)

Functions

static void ape_tag_read_field (AVFormatContext *s)
static void ape_parse_tag (AVFormatContext *s)
static int ape_probe (AVProbeData *p)
static void ape_dumpinfo (AVFormatContext *s, APEContext *ape_ctx)
static int ape_read_header (AVFormatContext *s, AVFormatParameters *ap)
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

AVInputFormat ape_demuxer


Define Documentation

#define APE_EXTRADATA_SIZE   6

Definition at line 43 of file ape.c.

Referenced by ape_read_header().

#define APE_MAX_VERSION   3990

Definition at line 32 of file ape.c.

Referenced by ape_read_header().

#define APE_MIN_VERSION   3950

Definition at line 31 of file ape.c.

Referenced by ape_read_header().

#define APE_TAG_FLAG_CONTAINS_HEADER   (1 << 31)

Definition at line 48 of file ape.c.

Referenced by ape_parse_tag().

#define APE_TAG_FLAG_IS_HEADER   (1 << 29)

Definition at line 49 of file ape.c.

Referenced by ape_parse_tag().

#define APE_TAG_FOOTER_BYTES   32

Definition at line 47 of file ape.c.

Referenced by ape_parse_tag().

#define APE_TAG_VERSION   2000

Definition at line 46 of file ape.c.

Referenced by ape_parse_tag().

#define ENABLE_DEBUG   0

Definition at line 28 of file ape.c.

#define MAC_FORMAT_FLAG_24_BIT   8

Definition at line 37 of file ape.c.

Referenced by ape_read_header().

#define MAC_FORMAT_FLAG_8_BIT   1

Definition at line 34 of file ape.c.

Referenced by ape_read_header().

#define MAC_FORMAT_FLAG_CRC   2

Definition at line 35 of file ape.c.

#define MAC_FORMAT_FLAG_CREATE_WAV_HEADER   32

Definition at line 39 of file ape.c.

Referenced by ape_read_header().

#define MAC_FORMAT_FLAG_HAS_PEAK_LEVEL   4

Definition at line 36 of file ape.c.

Referenced by ape_read_header().

#define MAC_FORMAT_FLAG_HAS_SEEK_ELEMENTS   16

Definition at line 38 of file ape.c.

Referenced by ape_read_header().

#define MAC_SUBFRAME_SIZE   4608

Definition at line 41 of file ape.c.

Referenced by ape_read_header().


Function Documentation

static void ape_dumpinfo ( AVFormatContext s,
APEContext ape_ctx 
) [static]

Definition at line 190 of file ape.c.

Referenced by ape_read_header().

static void ape_parse_tag ( AVFormatContext s  )  [static]

Definition at line 119 of file ape.c.

Referenced by ape_read_header().

static int ape_probe ( AVProbeData p  )  [static]

Definition at line 182 of file ape.c.

static int ape_read_close ( AVFormatContext s  )  [static]

Definition at line 471 of file ape.c.

static int ape_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 245 of file ape.c.

static int ape_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 432 of file ape.c.

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

Definition at line 480 of file ape.c.

static void ape_tag_read_field ( AVFormatContext s  )  [static]

Definition at line 94 of file ape.c.

Referenced by ape_parse_tag().


Variable Documentation

Initial value:

 {
    "ape",
    NULL_IF_CONFIG_SMALL("Monkey's Audio"),
    sizeof(APEContext),
    ape_probe,
    ape_read_header,
    ape_read_packet,
    ape_read_close,
    ape_read_seek,
    .extensions = "ape,apl,mac"
}

Definition at line 493 of file ape.c.


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8