FFmpeg
Functions | Variables
rsd.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Functions

static int rsd_probe (const AVProbeData *p)
 
static int rsd_read_header (AVFormatContext *s)
 
static int rsd_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVCodecTag rsd_tags []
 
static const uint32_t rsd_unsupported_tags []
 
const FFInputFormat ff_rsd_demuxer
 

Function Documentation

◆ rsd_probe()

static int rsd_probe ( const AVProbeData p)
static

Definition at line 44 of file rsd.c.

◆ rsd_read_header()

static int rsd_read_header ( AVFormatContext s)
static

Definition at line 55 of file rsd.c.

◆ rsd_read_packet()

static int rsd_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 181 of file rsd.c.

Variable Documentation

◆ rsd_tags

const AVCodecTag rsd_tags[]
static
Initial value:
= {
{ AV_CODEC_ID_ADPCM_PSX, MKTAG('V','A','G',' ') },
{ AV_CODEC_ID_ADPCM_THP_LE, MKTAG('G','A','D','P') },
{ AV_CODEC_ID_ADPCM_THP, MKTAG('W','A','D','P') },
{ AV_CODEC_ID_ADPCM_IMA_RAD, MKTAG('R','A','D','P') },
{ AV_CODEC_ID_ADPCM_IMA_WAV, MKTAG('X','A','D','P') },
{ AV_CODEC_ID_PCM_S16BE, MKTAG('P','C','M','B') },
{ AV_CODEC_ID_PCM_S16LE, MKTAG('P','C','M',' ') },
{ AV_CODEC_ID_XMA2, MKTAG('X','M','A',' ') },
}

Definition at line 28 of file rsd.c.

Referenced by rsd_read_header().

◆ rsd_unsupported_tags

const uint32_t rsd_unsupported_tags[]
static
Initial value:
= {
MKTAG('O','G','G',' '),
}

Definition at line 40 of file rsd.c.

Referenced by rsd_read_header().

◆ ff_rsd_demuxer

const FFInputFormat ff_rsd_demuxer
Initial value:
= {
.p.name = "rsd",
.p.long_name = NULL_IF_CONFIG_SMALL("GameCube RSD"),
.p.extensions = "rsd",
.p.codec_tag = (const AVCodecTag* const []){rsd_tags, 0},
.p.flags = AVFMT_GENERIC_INDEX,
.read_probe = rsd_probe,
.read_header = rsd_read_header,
.read_packet = rsd_read_packet,
}

Definition at line 223 of file rsd.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:334
AV_CODEC_ID_ADPCM_THP_LE
@ AV_CODEC_ID_ADPCM_THP_LE
Definition: codec_id.h:409
AV_CODEC_ID_PCM_S16BE
@ AV_CODEC_ID_PCM_S16BE
Definition: codec_id.h:335
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
AVCodecTag
Definition: internal.h:42
rsd_tags
static const AVCodecTag rsd_tags[]
Definition: rsd.c:28
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
AV_CODEC_ID_ADPCM_IMA_RAD
@ AV_CODEC_ID_ADPCM_IMA_RAD
Definition: codec_id.h:407
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
rsd_read_header
static int rsd_read_header(AVFormatContext *s)
Definition: rsd.c:55
rsd_probe
static int rsd_probe(const AVProbeData *p)
Definition: rsd.c:44
AV_CODEC_ID_ADPCM_THP
@ AV_CODEC_ID_ADPCM_THP
Definition: codec_id.h:391
rsd_read_packet
static int rsd_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rsd.c:181
AV_CODEC_ID_XMA2
@ AV_CODEC_ID_XMA2
Definition: codec_id.h:526
AV_CODEC_ID_ADPCM_IMA_WAV
@ AV_CODEC_ID_ADPCM_IMA_WAV
Definition: codec_id.h:374
MKTAG
#define MKTAG(a, b, c, d)
Definition: macros.h:55
AV_CODEC_ID_ADPCM_PSX
@ AV_CODEC_ID_ADPCM_PSX
Definition: codec_id.h:410