All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
aadec.c File Reference
#include "avformat.h"
#include "internal.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/tea.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  AADemuxContext


#define AA_MAGIC   1469084982 /* this identifies an audible .aa file */
#define MAX_CODEC_SECOND_SIZE   3982
#define MAX_TOC_ENTRIES   16
#define TEA_BLOCK_SIZE   8
#define OFFSET(x)   offsetof(AADemuxContext, x)


static int get_second_size (char *codec_name)
static int aa_read_header (AVFormatContext *s)
static int aa_read_packet (AVFormatContext *s, AVPacket *pkt)
static int aa_probe (AVProbeData *p)
static int aa_read_close (AVFormatContext *s)


static const AVOption aa_options []
static const AVClass aa_class
AVInputFormat ff_aa_demuxer

Macro Definition Documentation

#define AA_MAGIC   1469084982 /* this identifies an audible .aa file */

Definition at line 33 of file aadec.c.

Referenced by aa_probe().

#define MAX_CODEC_SECOND_SIZE   3982

Definition at line 34 of file aadec.c.

Referenced by aa_read_packet().

#define MAX_TOC_ENTRIES   16

Definition at line 35 of file aadec.c.

Referenced by aa_read_header().


Definition at line 36 of file aadec.c.

Referenced by aa_read_header().

#define TEA_BLOCK_SIZE   8

Definition at line 37 of file aadec.c.

Referenced by aa_read_header(), and aa_read_packet().

#define OFFSET (   x)    offsetof(AADemuxContext, x)

Definition at line 283 of file aadec.c.

Function Documentation

static int get_second_size ( char *  codec_name)

Definition at line 51 of file aadec.c.

Referenced by aa_read_header().

static int aa_read_header ( AVFormatContext s)

Definition at line 66 of file aadec.c.

static int aa_read_packet ( AVFormatContext s,
AVPacket pkt 

Definition at line 205 of file aadec.c.

static int aa_probe ( AVProbeData p)

Definition at line 263 of file aadec.c.

static int aa_read_close ( AVFormatContext s)

Definition at line 274 of file aadec.c.

Variable Documentation

const AVOption aa_options[]
Initial value:
= {
{ "aa_fixed_key",
"Fixed key used for handling Audible AA files", OFFSET(aa_fixed_key),
AV_OPT_TYPE_BINARY, {.str="77214d4b196a87cd520045fd2a51d673"},
{ NULL },
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: aadec.c:283
offset must point to a pointer immediately followed by an int for the length
Definition: opt.h:229
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:277

Definition at line 284 of file aadec.c.

const AVClass aa_class
Initial value:
= {
.class_name = "aa",
.item_name = av_default_item_name,
.option = aa_options,
Definition: version.h:86
static const AVOption aa_options[]
Definition: aadec.c:284

Definition at line 292 of file aadec.c.

AVInputFormat ff_aa_demuxer
Initial value:
= {
.name = "aa",
.long_name = NULL_IF_CONFIG_SMALL("Audible AA format files"),
.priv_class = &aa_class,
.priv_data_size = sizeof(AADemuxContext),
.extensions = "aa",
static int aa_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: aadec.c:205
static int aa_probe(AVProbeData *p)
Definition: aadec.c:263
static int flags
Definition: log.c:57
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int aa_read_header(AVFormatContext *s)
Definition: aadec.c:66
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:528
static int aa_read_close(AVFormatContext *s)
Definition: aadec.c:274
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
Use generic index building code.
Definition: avformat.h:487
static const AVClass aa_class
Definition: aadec.c:292

Definition at line 299 of file aadec.c.