FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
libcdio.c File Reference

libcdio CD grabbing More...

#include "config.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"

Go to the source code of this file.

Data Structures

struct  CDIOContext
 

Macros

#define OFFSET(x)   offsetof(CDIOContext, x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 

Functions

static av_cold int read_header (AVFormatContext *ctx)
 
static int read_packet (AVFormatContext *ctx, AVPacket *pkt)
 
static av_cold int read_close (AVFormatContext *ctx)
 
static int read_seek (AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
 

Variables

static const AVOption options []
 
static const AVClass libcdio_class
 
AVInputFormat ff_libcdio_demuxer
 

Detailed Description

libcdio CD grabbing

Definition in file libcdio.c.

Macro Definition Documentation

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

Definition at line 164 of file libcdio.c.

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 165 of file libcdio.c.

Function Documentation

static av_cold int read_header ( AVFormatContext ctx)
static

Definition at line 54 of file libcdio.c.

static int read_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 114 of file libcdio.c.

static av_cold int read_close ( AVFormatContext ctx)
static

Definition at line 145 of file libcdio.c.

static int read_seek ( AVFormatContext ctx,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 153 of file libcdio.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "speed", "set drive reading speed", OFFSET(speed), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, DEC },
{ "paranoia_mode", "set error recovery mode", OFFSET(paranoia_mode), AV_OPT_TYPE_FLAGS, { .i64 = PARANOIA_MODE_DISABLE }, INT_MIN, INT_MAX, DEC, "paranoia_mode" },
{ "disable", "apply no fixups", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_DISABLE }, 0, 0, DEC, "paranoia_mode" },
{ "verify", "verify data integrity in overlap area", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_VERIFY }, 0, 0, DEC, "paranoia_mode" },
{ "overlap", "perform overlapped reads", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_OVERLAP }, 0, 0, DEC, "paranoia_mode" },
{ "neverskip", "do not skip failed reads", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_NEVERSKIP }, 0, 0, DEC, "paranoia_mode" },
{ "full", "apply all recovery modes", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_FULL }, 0, 0, DEC, "paranoia_mode" },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: libcdio.c:164
#define DEC
Definition: libcdio.c:165

Definition at line 166 of file libcdio.c.

const AVClass libcdio_class
static
Initial value:
= {
.class_name = "libcdio indev",
.item_name = av_default_item_name,
.option = 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 options[]
Definition: libcdio.c:166

Definition at line 177 of file libcdio.c.

AVInputFormat ff_libcdio_demuxer
Initial value:
= {
.name = "libcdio",
.read_header = read_header,
.read_packet = read_packet,
.read_close = read_close,
.read_seek = read_seek,
.priv_data_size = sizeof(CDIOContext),
.priv_class = &libcdio_class,
}
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:153
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
static av_cold int read_header(AVFormatContext *ctx)
Definition: libcdio.c:54
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
#define flags(name, subs,...)
Definition: cbs_av1.c:596
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:465
static const AVClass libcdio_class
Definition: libcdio.c:177

Definition at line 185 of file libcdio.c.