FFmpeg
Loading...
Searching...
No Matches
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.

Referenced by sga_audio_packet(), and sga_read_header().

◆ SEGA_CD_PCM_DEN

#define SEGA_CD_PCM_DEN   786432

Definition at line 33 of file sga.c.

Referenced by sga_audio_packet(), and sga_read_header().

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.

◆ 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),
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
static int sga_read_header(AVFormatContext *s)
Definition sga.c:182
static int sga_probe(const AVProbeData *p)
Definition sga.c:51
static int sga_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition sga.c:459
static int sga_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition sga.c:405
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151

Definition at line 470 of file sga.c.