FFmpeg
Loading...
Searching...
No Matches
brstm.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "avio_internal.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 50 of file brstm.c.

◆ probe_bfstm()

static int probe_bfstm ( const AVProbeData * p)
static

Definition at line 59 of file brstm.c.

◆ read_close()

static int read_close ( AVFormatContext * s)
static

Definition at line 69 of file brstm.c.

◆ sort_offsets()

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

Definition at line 78 of file brstm.c.

Referenced by read_header().

◆ read16()

static av_always_inline unsigned int read16 ( AVFormatContext * s)
static

Definition at line 85 of file brstm.c.

Referenced by read_header().

◆ read32()

static av_always_inline unsigned int read32 ( AVFormatContext * s)
static

Definition at line 94 of file brstm.c.

Referenced by read_header().

◆ read_header()

static int read_header ( AVFormatContext * s)
static

Definition at line 103 of file brstm.c.

◆ read_packet()

static int read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 370 of file brstm.c.

◆ read_seek()

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

Definition at line 450 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,
}
static int probe(const AVProbeData *p)
Definition act.c:39
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
#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
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static av_cold int read_close(AVFormatContext *ctx)
Definition libcdio.c:143
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151

Definition at line 472 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,
}
static int probe_bfstm(const AVProbeData *p)
Definition brstm.c:59

Definition at line 485 of file brstm.c.