FFmpeg
Loading...
Searching...
No Matches
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 "demux.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)
 

Functions

static int cdxl_read_probe (const AVProbeData *p)
 
static int cdxl_read_header (AVFormatContext *s)
 
static int cdxl_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

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

Macro Definition Documentation

◆ CDXL_HEADER_SIZE

#define CDXL_HEADER_SIZE   32

Definition at line 30 of file cdxl.c.

Referenced by cdxl_read_packet(), and cdxl_read_probe().

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 247 of file cdxl.c.

Function Documentation

◆ cdxl_read_probe()

static int cdxl_read_probe ( const AVProbeData * p)
static

Definition at line 46 of file cdxl.c.

◆ cdxl_read_header()

static int cdxl_read_header ( AVFormatContext * s)
static

Definition at line 103 of file cdxl.c.

◆ cdxl_read_packet()

static int cdxl_read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 118 of file cdxl.c.

◆ read_seek()

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

Definition at line 237 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 }, 8000, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "frame_rate", "", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, { .str="15" }, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}
#define NULL
Definition coverity.c:32
#define OFFSET(x)
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
Definition opt.h:355
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
Definition opt.h:314
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258

Definition at line 248 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,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
static const AVOption cdxl_options[]
Definition cdxl.c:248

Definition at line 254 of file cdxl.c.

◆ ff_cdxl_demuxer

const FFInputFormat ff_cdxl_demuxer
Initial value:
= {
.p.name = "cdxl",
.p.long_name = NULL_IF_CONFIG_SMALL("Commodore CDXL video"),
.p.priv_class = &cdxl_demuxer_class,
.p.extensions = "cdxl,xl",
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(CDXLDemuxContext),
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition cdxl.c:118
static int cdxl_read_header(AVFormatContext *s)
Definition cdxl.c:103
static int cdxl_read_probe(const AVProbeData *p)
Definition cdxl.c:46
static const AVClass cdxl_demuxer_class
Definition cdxl.c:254
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151

Definition at line 261 of file cdxl.c.