FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cdg.c File Reference
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  CDGContext
 

Macros

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

Functions

static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_cdg_demuxer
 

Macro Definition Documentation

#define CDG_PACKET_SIZE   24

Definition at line 25 of file cdg.c.

Referenced by read_header(), and read_packet().

#define CDG_COMMAND   0x09

Definition at line 26 of file cdg.c.

Referenced by read_packet().

#define CDG_MASK   0x3F

Definition at line 27 of file cdg.c.

Referenced by read_packet().

Function Documentation

static int read_header ( AVFormatContext s)
static

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

Definition at line 33 of file cdg.c.

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 57 of file cdg.c.

Variable Documentation

AVInputFormat ff_cdg_demuxer
Initial value:
= {
.name = "cdg",
.long_name = NULL_IF_CONFIG_SMALL("CD Graphics"),
.priv_data_size = sizeof(CDGContext),
.extensions = "cdg",
}
Definition: cdg.c:29
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:473
static int flags
Definition: cpu.c:47
static int read_header(AVFormatContext *s)
Definition: cdg.c:33
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: cdg.c:57

Definition at line 84 of file cdg.c.