libavformat/cafdec.c File Reference

Core Audio Format demuxer. More...

#include "avformat.h"
#include "riff.h"
#include "isom.h"
#include "libavutil/intreadwrite.h"
#include "caf.h"

Go to the source code of this file.

Data Structures

struct  CaffContext

Defines

#define _(x)   ((x) >= ' ' ? (x) : ' ')
#define CAF_MAX_PKT_SIZE   4096

Functions

static int probe (AVProbeData *p)
static int read_desc_chunk (AVFormatContext *s)
 Read audio description chunk.
static int read_kuki_chunk (AVFormatContext *s, int64_t size)
 Read magic cookie chunk.
static int read_pakt_chunk (AVFormatContext *s, int64_t size)
 Read packet table chunk.
static void read_info_chunk (AVFormatContext *s, int64_t size)
 Read information chunk.
static int read_header (AVFormatContext *s, AVFormatParameters *ap)
static int read_packet (AVFormatContext *s, AVPacket *pkt)
static int read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)

Variables

AVInputFormat caf_demuxer


Detailed Description

Core Audio Format demuxer.

Definition in file cafdec.c.


Define Documentation

#define _ (  )     ((x) >= ' ' ? (x) : ' ')

Referenced by read_header().

#define CAF_MAX_PKT_SIZE   4096

Definition at line 285 of file cafdec.c.

Referenced by read_packet().


Function Documentation

static int probe ( AVProbeData p  )  [static]

Definition at line 46 of file cafdec.c.

static int read_desc_chunk ( AVFormatContext s  )  [static]

Read audio description chunk.

Definition at line 54 of file cafdec.c.

Referenced by read_header().

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

Definition at line 179 of file cafdec.c.

static void read_info_chunk ( AVFormatContext s,
int64_t  size 
) [static]

Read information chunk.

Definition at line 165 of file cafdec.c.

Referenced by read_header().

static int read_kuki_chunk ( AVFormatContext s,
int64_t  size 
) [static]

Read magic cookie chunk.

Definition at line 94 of file cafdec.c.

Referenced by read_header().

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

Definition at line 287 of file cafdec.c.

static int read_pakt_chunk ( AVFormatContext s,
int64_t  size 
) [static]

Read packet table chunk.

Definition at line 130 of file cafdec.c.

Referenced by read_header().

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

Definition at line 341 of file cafdec.c.


Variable Documentation

Initial value:

 {
    "caf",
    NULL_IF_CONFIG_SMALL("Apple Core Audio Format"),
    sizeof(CaffContext),
    probe,
    read_header,
    read_packet,
    NULL,
    read_seek,
    .codec_tag = (const AVCodecTag*[]){ff_codec_caf_tags, 0},
}

Definition at line 369 of file cafdec.c.


Generated on Fri Oct 26 02:36:54 2012 for FFmpeg by  doxygen 1.5.8