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 "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 AVInputFormat ff_sga_demuxer
 

Macro Definition Documentation

◆ SEGA_CD_PCM_NUM

#define SEGA_CD_PCM_NUM   12500000

Definition at line 31 of file sga.c.

◆ SEGA_CD_PCM_DEN

#define SEGA_CD_PCM_DEN   786432

Definition at line 32 of file sga.c.

Function Documentation

◆ sga_probe()

static int sga_probe ( const AVProbeData p)
static

Definition at line 50 of file sga.c.

◆ sga_read_header()

static int sga_read_header ( AVFormatContext s)
static

Definition at line 181 of file sga.c.

◆ print_stats()

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

Definition at line 231 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 245 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 258 of file sga.c.

Referenced by sga_packet().

◆ sga_audio_packet()

static int sga_audio_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 309 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 AVInputFormat ff_sga_demuxer
Initial value:
= {
.name = "sga",
.long_name = NULL_IF_CONFIG_SMALL("Digital Pictures SGA"),
.priv_data_size = sizeof(SGADemuxContext),
.extensions = "sga",
}

Definition at line 470 of file sga.c.

SGADemuxContext
Definition: sga.c:34
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:149
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:476
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:527
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
sga_read_header
static int sga_read_header(AVFormatContext *s)
Definition: sga.c:181
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:117
sga_probe
static int sga_probe(const AVProbeData *p)
Definition: sga.c:50
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
sga_seek
static int sga_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: sga.c:459