FFmpeg
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Functions | Variables
brstm.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavcodec/bytestream.h"
#include "avformat.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 AVInputFormat ff_brstm_demuxer
 
const AVInputFormat ff_bfstm_demuxer
 

Function Documentation

◆ probe()

static int probe ( const AVProbeData p)
static

Definition at line 47 of file brstm.c.

◆ probe_bfstm()

static int probe_bfstm ( const AVProbeData p)
static

Definition at line 56 of file brstm.c.

◆ read_close()

static int read_close ( AVFormatContext s)
static

Definition at line 66 of file brstm.c.

◆ sort_offsets()

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

Definition at line 75 of file brstm.c.

Referenced by read_header().

◆ read16()

static av_always_inline unsigned int read16 ( AVFormatContext s)
static

Definition at line 82 of file brstm.c.

Referenced by read_header().

◆ read32()

static av_always_inline unsigned int read32 ( AVFormatContext s)
static

Definition at line 91 of file brstm.c.

Referenced by read_header().

◆ read_header()

static int read_header ( AVFormatContext s)
static

Definition at line 100 of file brstm.c.

◆ read_packet()

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 367 of file brstm.c.

◆ read_seek()

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

Definition at line 446 of file brstm.c.

Variable Documentation

◆ ff_brstm_demuxer

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

Definition at line 468 of file brstm.c.

◆ ff_bfstm_demuxer

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

Definition at line 481 of file brstm.c.

FF_FMT_INIT_CLEANUP
#define FF_FMT_INIT_CLEANUP
For an AVInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: internal.h:49
read_seek
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: brstm.c:446
read_close
static int read_close(AVFormatContext *s)
Definition: brstm.c:66
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
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
BRSTMDemuxContext
Definition: brstm.c:32
probe
static int probe(const AVProbeData *p)
Definition: brstm.c:47
probe_bfstm
static int probe_bfstm(const AVProbeData *p)
Definition: brstm.c:56
read_packet
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: brstm.c:367
read_header
static int read_header(AVFormatContext *s)
Definition: brstm.c:100