FFmpeg  4.0
Data Structures | Macros | Functions | Variables
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"

Go to the source code of this file.

Data Structures

struct  CDXLDemuxContext
 

Macros

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

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

◆ CDXL_HEADER_SIZE

#define CDXL_HEADER_SIZE   32

Definition at line 29 of file cdxl.c.

Referenced by cdxl_read_packet(), and cdxl_read_probe().

◆ OFFSET

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

Definition at line 225 of file cdxl.c.

Function Documentation

◆ cdxl_read_probe()

static int cdxl_read_probe ( AVProbeData p)
static

Definition at line 43 of file cdxl.c.

◆ cdxl_read_header()

static int cdxl_read_header ( AVFormatContext s)
static

Definition at line 85 of file cdxl.c.

◆ cdxl_read_packet()

static int cdxl_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 107 of file cdxl.c.

Variable Documentation

◆ cdxl_options

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 NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: cdxl.c:225
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:277

Definition at line 226 of file cdxl.c.

◆ cdxl_demuxer_class

const AVClass cdxl_demuxer_class
static
Initial value:
= {
.class_name = "CDXL demuxer",
.item_name = av_default_item_name,
.option = cdxl_options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption cdxl_options[]
Definition: cdxl.c:226

Definition at line 232 of file cdxl.c.

◆ ff_cdxl_demuxer

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
Definition: cdxl.c:232
static int flags
Definition: log.c:55
static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: cdxl.c:107
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:470
static int cdxl_read_header(AVFormatContext *s)
Definition: cdxl.c:85
static int cdxl_read_probe(AVProbeData *p)
Definition: cdxl.c:43

Definition at line 239 of file cdxl.c.