libavformat/cdxl.c File Reference

#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

Defines

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

Functions

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


Define Documentation

#define CDXL_HEADER_SIZE   32

Definition at line 28 of file cdxl.c.

Referenced by cdxl_read_packet().

#define OFFSET (  )     offsetof(CDXLDemuxContext, x)

Definition at line 158 of file cdxl.c.


Function Documentation

static int cdxl_read_header ( AVFormatContext s  )  [static]

Definition at line 41 of file cdxl.c.

static int cdxl_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 61 of file 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,
    .version    = LIBAVUTIL_VERSION_INT,
}

Definition at line 165 of file 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 },
}

Definition at line 159 of file cdxl.c.

Initial value:

 {
    .name           = "cdxl",
    .long_name      = NULL_IF_CONFIG_SMALL("Commodore CDXL video"),
    .priv_data_size = sizeof(CDXLDemuxContext),
    .read_header    = cdxl_read_header,
    .read_packet    = cdxl_read_packet,
    .extensions     = "cdxl,xl",
    .flags          = AVFMT_GENERIC_INDEX,
    .priv_class     = &cdxl_demuxer_class,
}

Definition at line 172 of file cdxl.c.


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