FFmpeg
Data Structures | Enumerations | Functions | Variables
siff.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.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  SIFFContext
 

Enumerations

enum  SIFFTags {
  TAG_SIFF = MKTAG('S', 'I', 'F', 'F'), TAG_BODY = MKTAG('B', 'O', 'D', 'Y'), TAG_VBHD = MKTAG('V', 'B', 'H', 'D'), TAG_SHDR = MKTAG('S', 'H', 'D', 'R'),
  TAG_VBV1 = MKTAG('V', 'B', 'V', '1'), TAG_SOUN = MKTAG('S', 'O', 'U', 'N')
}
 
enum  VBFlags {
  VB_HAS_GMC = 0x01, VB_HAS_AUDIO = 0x04, VB_HAS_VIDEO = 0x08, VB_HAS_PALETTE = 0x10,
  VB_HAS_LENGTH = 0x20, VB_HAS_GMC = 0x01, VB_HAS_AUDIO = 0x04, VB_HAS_VIDEO = 0x08,
  VB_HAS_PALETTE = 0x10, VB_HAS_LENGTH = 0x20
}
 

Functions

static int siff_probe (const AVProbeData *p)
 
static int create_audio_stream (AVFormatContext *s, SIFFContext *c)
 
static int siff_parse_vbv1 (AVFormatContext *s, SIFFContext *c, AVIOContext *pb)
 
static int siff_parse_soun (AVFormatContext *s, SIFFContext *c, AVIOContext *pb)
 
static int siff_read_header (AVFormatContext *s)
 
static int siff_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_siff_demuxer
 

Enumeration Type Documentation

◆ SIFFTags

enum SIFFTags
Enumerator
TAG_SIFF 
TAG_BODY 
TAG_VBHD 
TAG_SHDR 
TAG_VBV1 
TAG_SOUN 

Definition at line 30 of file siff.c.

◆ VBFlags

enum VBFlags
Enumerator
VB_HAS_GMC 
VB_HAS_AUDIO 
VB_HAS_VIDEO 
VB_HAS_PALETTE 
VB_HAS_LENGTH 
VB_HAS_GMC 
VB_HAS_AUDIO 
VB_HAS_VIDEO 
VB_HAS_PALETTE 
VB_HAS_LENGTH 

Definition at line 39 of file siff.c.

Function Documentation

◆ siff_probe()

static int siff_probe ( const AVProbeData p)
static

Definition at line 66 of file siff.c.

◆ create_audio_stream()

static int create_audio_stream ( AVFormatContext s,
SIFFContext c 
)
static

Definition at line 76 of file siff.c.

Referenced by siff_parse_soun(), and siff_parse_vbv1().

◆ siff_parse_vbv1()

static int siff_parse_vbv1 ( AVFormatContext s,
SIFFContext c,
AVIOContext pb 
)
static

Definition at line 92 of file siff.c.

Referenced by siff_read_header().

◆ siff_parse_soun()

static int siff_parse_soun ( AVFormatContext s,
SIFFContext c,
AVIOContext pb 
)
static

Definition at line 145 of file siff.c.

Referenced by siff_read_header().

◆ siff_read_header()

static int siff_read_header ( AVFormatContext s)
static

Definition at line 162 of file siff.c.

◆ siff_read_packet()

static int siff_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 192 of file siff.c.

Variable Documentation

◆ ff_siff_demuxer

const FFInputFormat ff_siff_demuxer
Initial value:
= {
.p.name = "siff",
.p.long_name = NULL_IF_CONFIG_SMALL("Beam Software SIFF"),
.p.extensions = "vb,son",
.priv_data_size = sizeof(SIFFContext),
}

Definition at line 255 of file siff.c.

siff_read_header
static int siff_read_header(AVFormatContext *s)
Definition: siff.c:162
SIFFContext
Definition: siff.c:47
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
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:106
siff_probe
static int siff_probe(const AVProbeData *p)
Definition: siff.c:66
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
siff_read_packet
static int siff_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: siff.c:192