FFmpeg
Macros | Functions | Variables
cdg.c File Reference
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define CDG_PACKET_SIZE   24
 
#define CDG_COMMAND   0x09
 
#define CDG_MASK   0x3F
 

Functions

static int read_probe (const AVProbeData *p)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_cdg_demuxer
 

Macro Definition Documentation

◆ CDG_PACKET_SIZE

#define CDG_PACKET_SIZE   24

Definition at line 26 of file cdg.c.

◆ CDG_COMMAND

#define CDG_COMMAND   0x09

Definition at line 27 of file cdg.c.

◆ CDG_MASK

#define CDG_MASK   0x3F

Definition at line 28 of file cdg.c.

Function Documentation

◆ read_probe()

static int read_probe ( const AVProbeData p)
static

Definition at line 30 of file cdg.c.

Referenced by av_probe_input_format3(), and probe().

◆ read_header()

static int read_header ( AVFormatContext s)
static

75 sectors/sec * 4 packets/sector = 300 packets/sec

Definition at line 46 of file cdg.c.

◆ read_packet()

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 70 of file cdg.c.

Variable Documentation

◆ ff_cdg_demuxer

const FFInputFormat ff_cdg_demuxer
Initial value:
= {
.p.name = "cdg",
.p.long_name = NULL_IF_CONFIG_SMALL("CD Graphics"),
.p.flags = AVFMT_GENERIC_INDEX,
.p.extensions = "cdg",
.read_probe = read_probe,
.read_header = read_header,
.read_packet = read_packet,
}

Definition at line 87 of file cdg.c.

read_header
static int read_header(AVFormatContext *s)
Definition: cdg.c:46
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: cdg.c:70
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30