FFmpeg
Data Structures | Functions | Variables
brstm.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  BRSTMCoeffOffset
 
struct  BRSTMDemuxContext
 

Functions

static int probe (const AVProbeData *p)
 
static int probe_bfstm (const AVProbeData *p)
 
static int read_close (AVFormatContext *s)
 
static int sort_offsets (const void *a, const void *b)
 
static av_always_inline unsigned int read16 (AVFormatContext *s)
 
static av_always_inline unsigned int read32 (AVFormatContext *s)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

const FFInputFormat ff_brstm_demuxer
 
const FFInputFormat ff_bfstm_demuxer
 

Function Documentation

◆ probe()

static int probe ( const AVProbeData p)
static

Definition at line 49 of file brstm.c.

◆ probe_bfstm()

static int probe_bfstm ( const AVProbeData p)
static

Definition at line 58 of file brstm.c.

◆ read_close()

static int read_close ( AVFormatContext s)
static

Definition at line 68 of file brstm.c.

◆ sort_offsets()

static int sort_offsets ( const void *  a,
const void *  b 
)
static

Definition at line 77 of file brstm.c.

Referenced by read_header().

◆ read16()

static av_always_inline unsigned int read16 ( AVFormatContext s)
static

Definition at line 84 of file brstm.c.

Referenced by read_header().

◆ read32()

static av_always_inline unsigned int read32 ( AVFormatContext s)
static

Definition at line 93 of file brstm.c.

Referenced by read_header().

◆ read_header()

static int read_header ( AVFormatContext s)
static

Definition at line 102 of file brstm.c.

◆ read_packet()

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 369 of file brstm.c.

◆ read_seek()

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

Definition at line 449 of file brstm.c.

Variable Documentation

◆ ff_brstm_demuxer

const FFInputFormat ff_brstm_demuxer
Initial value:
= {
.p.name = "brstm",
.p.long_name = NULL_IF_CONFIG_SMALL("BRSTM (Binary Revolution Stream)"),
.p.extensions = "brstm",
.priv_data_size = sizeof(BRSTMDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}

Definition at line 471 of file brstm.c.

◆ ff_bfstm_demuxer

const FFInputFormat ff_bfstm_demuxer
Initial value:
= {
.p.name = "bfstm",
.p.long_name = NULL_IF_CONFIG_SMALL("BFSTM (Binary Cafe Stream)"),
.p.extensions = "bfstm,bcstm",
.priv_data_size = sizeof(BRSTMDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}

Definition at line 484 of file brstm.c.

read_seek
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: brstm.c:449
read_close
static int read_close(AVFormatContext *s)
Definition: brstm.c:68
FF_INFMT_FLAG_INIT_CLEANUP
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: demux.h:35
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
BRSTMDemuxContext
Definition: brstm.c:34
probe
static int probe(const AVProbeData *p)
Definition: brstm.c:49
probe_bfstm
static int probe_bfstm(const AVProbeData *p)
Definition: brstm.c:58
read_packet
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: brstm.c:369
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
read_header
static int read_header(AVFormatContext *s)
Definition: brstm.c:102