libavformat/cdxl.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/parseutils.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"
Include dependency graph for libavformat/cdxl.c:

Go to the source code of this file.

Data Structures

struct  CDXLDemuxContext
 

Macros

#define CDXL_HEADER_SIZE   32
 
#define OFFSET(x)   offsetof(CDXLDemuxContext, x)
 

Typedefs

typedef struct CDXLDemuxContext CDXLDemuxContext
 

Functions

static int cdxl_read_probe (AVProbeData *p)
 
static int cdxl_read_header (AVFormatContext *s)
 
static int cdxl_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption cdxl_options []
 
static const AVClass cdxl_demuxer_class
 
AVInputFormat ff_cdxl_demuxer
 

Macro Definition Documentation

#define CDXL_HEADER_SIZE   32

Definition at line 29 of file libavformat/cdxl.c.

Referenced by cdxl_read_packet(), and cdxl_read_probe().

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

Definition at line 207 of file libavformat/cdxl.c.

Typedef Documentation

Function Documentation

static int cdxl_read_header ( AVFormatContext s)
static

Definition at line 84 of file libavformat/cdxl.c.

static int cdxl_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 104 of file libavformat/cdxl.c.

static int cdxl_read_probe ( AVProbeData p)
static

Definition at line 42 of file libavformat/cdxl.c.

Variable Documentation

const AVClass cdxl_demuxer_class
static
Initial value:
= {
.class_name = "CDXL demuxer",
.item_name = av_default_item_name,
.option = cdxl_options,
}
av_default_item_name
static const AVOption cdxl_options[]
LIBAVUTIL_VERSION_INT
Definition: eval.c:55

Definition at line 214 of file libavformat/cdxl.c.

const AVOption cdxl_options[]
static
Initial value:
= {
{ "sample_rate", "", OFFSET(sample_rate), AV_OPT_TYPE_INT, { .i64 = 11025 }, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "framerate", "", OFFSET(framerate), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}
#define OFFSET(x)
NULL
Definition: eval.c:55
sample_rate
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:282

Definition at line 208 of file libavformat/cdxl.c.

AVInputFormat ff_cdxl_demuxer
Initial value:
= {
.name = "cdxl",
.long_name = NULL_IF_CONFIG_SMALL("Commodore CDXL video"),
.priv_data_size = sizeof(CDXLDemuxContext),
.extensions = "cdxl,xl",
.priv_class = &cdxl_demuxer_class,
}
static const AVClass cdxl_demuxer_class
static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int read_probe(AVProbeData *pd)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
struct CDXLDemuxContext CDXLDemuxContext
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:353
static int flags
Definition: cpu.c:23
static int cdxl_read_header(AVFormatContext *s)
static int cdxl_read_probe(AVProbeData *p)

Definition at line 221 of file libavformat/cdxl.c.