FFmpeg
Data Structures | Macros | Functions | Variables
sga.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/internal.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "avio_internal.h"

Go to the source code of this file.

Data Structures

struct  SGADemuxContext
 

Macros

#define SEGA_CD_PCM_NUM   12500000
 
#define SEGA_CD_PCM_DEN   786432
 

Functions

static int sga_probe (const AVProbeData *p)
 
static int sga_read_header (AVFormatContext *s)
 
static void print_stats (AVFormatContext *s, const char *where)
 
static void update_type_size (AVFormatContext *s)
 
static int sga_video_packet (AVFormatContext *s, AVPacket *pkt)
 
static int sga_audio_packet (AVFormatContext *s, AVPacket *pkt)
 
static int sga_packet (AVFormatContext *s, AVPacket *pkt)
 
static int try_packet (AVFormatContext *s, AVPacket *pkt)
 
static int sga_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int sga_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

const FFInputFormat ff_sga_demuxer
 

Macro Definition Documentation

◆ SEGA_CD_PCM_NUM

#define SEGA_CD_PCM_NUM   12500000

Definition at line 32 of file sga.c.

◆ SEGA_CD_PCM_DEN

#define SEGA_CD_PCM_DEN   786432

Definition at line 33 of file sga.c.

Function Documentation

◆ sga_probe()

static int sga_probe ( const AVProbeData p)
static

Definition at line 51 of file sga.c.

◆ sga_read_header()

static int sga_read_header ( AVFormatContext s)
static

Definition at line 182 of file sga.c.

◆ print_stats()

static void print_stats ( AVFormatContext s,
const char *  where 
)
static

Definition at line 232 of file sga.c.

Referenced by sga_read_packet(), and try_packet().

◆ update_type_size()

static void update_type_size ( AVFormatContext s)
static

Definition at line 246 of file sga.c.

Referenced by sga_audio_packet(), sga_read_packet(), sga_video_packet(), and try_packet().

◆ sga_video_packet()

static int sga_video_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 259 of file sga.c.

Referenced by sga_packet().

◆ sga_audio_packet()

static int sga_audio_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 310 of file sga.c.

Referenced by sga_packet().

◆ sga_packet()

static int sga_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 356 of file sga.c.

Referenced by try_packet().

◆ try_packet()

static int try_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 388 of file sga.c.

Referenced by sga_read_packet().

◆ sga_read_packet()

static int sga_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 405 of file sga.c.

◆ sga_seek()

static int sga_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 459 of file sga.c.

Variable Documentation

◆ ff_sga_demuxer

const FFInputFormat ff_sga_demuxer
Initial value:
= {
.p.name = "sga",
.p.long_name = NULL_IF_CONFIG_SMALL("Digital Pictures SGA"),
.p.extensions = "sga",
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(SGADemuxContext),
}

Definition at line 470 of file sga.c.

SGADemuxContext
Definition: sga.c:35
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
sga_read_packet
static int sga_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: sga.c:405
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
sga_read_header
static int sga_read_header(AVFormatContext *s)
Definition: sga.c:182
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:94
sga_probe
static int sga_probe(const AVProbeData *p)
Definition: sga.c:51
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
sga_seek
static int sga_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: sga.c:459