libavdevice/libcdio.c File Reference

libcdio CD grabbing More...

#include <cdio/cdda.h>
#include <cdio/paranoia.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

Defines

#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.


Define Documentation

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 161 of file libcdio.c.

#define OFFSET (  )     offsetof(CDIOContext, x)

Definition at line 160 of file libcdio.c.


Function Documentation

static av_cold int read_close ( AVFormatContext ctx  )  [static]

Definition at line 141 of file libcdio.c.

Referenced by read_header().

static av_cold int read_header ( AVFormatContext ctx  )  [static]

Definition at line 50 of file libcdio.c.

static int read_packet ( AVFormatContext ctx,
AVPacket pkt 
) [static]

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

Definition at line 149 of file libcdio.c.


Variable Documentation

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),
    .flags          = AVFMT_NOFILE,
    .priv_class     = &libcdio_class,
}

Definition at line 178 of file libcdio.c.

const AVClass libcdio_class [static]

Initial value:

 {
    .class_name = "libcdio indev",
    .item_name  = av_default_item_name,
    .option     = options,
    .version    = LIBAVUTIL_VERSION_INT,
}

Definition at line 171 of file libcdio.c.

const AVOption options[] [static]

Initial value:

 {
    { "speed",              "Drive reading speed.", OFFSET(speed),         AV_OPT_TYPE_INT,   { .i64 = 0 }, 0,       INT_MAX, DEC },
    { "paranoia_mode",      "Error recovery mode.", OFFSET(paranoia_mode), AV_OPT_TYPE_FLAGS, { .i64 = 0 }, INT_MIN, INT_MAX, 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" },
    { NULL },
}

Definition at line 162 of file libcdio.c.


Generated on Fri Oct 26 02:50:08 2012 for FFmpeg by  doxygen 1.5.8