FFmpeg
Data Structures | Macros | Functions | Variables
tiertexseq.c File Reference
#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  TiertexSeqFrameBuffer
 
struct  SeqDemuxContext
 

Macros

#define SEQ_FRAME_SIZE   6144
 
#define SEQ_FRAME_W   256
 
#define SEQ_FRAME_H   128
 
#define SEQ_NUM_FRAME_BUFFERS   30
 
#define SEQ_AUDIO_BUFFER_SIZE   882
 
#define SEQ_SAMPLE_RATE   22050
 
#define SEQ_FRAME_RATE   25
 

Functions

static int seq_probe (const AVProbeData *p)
 
static int seq_init_frame_buffers (SeqDemuxContext *seq, AVIOContext *pb)
 
static int seq_fill_buffer (SeqDemuxContext *seq, AVIOContext *pb, int buffer_num, unsigned int data_offs, int data_size)
 
static int seq_parse_frame_data (SeqDemuxContext *seq, AVIOContext *pb)
 
static int seq_read_close (AVFormatContext *s)
 
static int seq_read_header (AVFormatContext *s)
 
static int seq_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_tiertexseq_demuxer
 

Detailed Description

Tiertex Limited SEQ file demuxer

Definition in file tiertexseq.c.

Macro Definition Documentation

◆ SEQ_FRAME_SIZE

#define SEQ_FRAME_SIZE   6144

Definition at line 32 of file tiertexseq.c.

◆ SEQ_FRAME_W

#define SEQ_FRAME_W   256

Definition at line 33 of file tiertexseq.c.

◆ SEQ_FRAME_H

#define SEQ_FRAME_H   128

Definition at line 34 of file tiertexseq.c.

◆ SEQ_NUM_FRAME_BUFFERS

#define SEQ_NUM_FRAME_BUFFERS   30

Definition at line 35 of file tiertexseq.c.

◆ SEQ_AUDIO_BUFFER_SIZE

#define SEQ_AUDIO_BUFFER_SIZE   882

Definition at line 36 of file tiertexseq.c.

◆ SEQ_SAMPLE_RATE

#define SEQ_SAMPLE_RATE   22050

Definition at line 37 of file tiertexseq.c.

◆ SEQ_FRAME_RATE

#define SEQ_FRAME_RATE   25

Definition at line 38 of file tiertexseq.c.

Function Documentation

◆ seq_probe()

static int seq_probe ( const AVProbeData p)
static

Definition at line 64 of file tiertexseq.c.

◆ seq_init_frame_buffers()

static int seq_init_frame_buffers ( SeqDemuxContext seq,
AVIOContext pb 
)
static

Definition at line 84 of file tiertexseq.c.

Referenced by seq_read_header().

◆ seq_fill_buffer()

static int seq_fill_buffer ( SeqDemuxContext seq,
AVIOContext pb,
int  buffer_num,
unsigned int  data_offs,
int  data_size 
)
static

Definition at line 108 of file tiertexseq.c.

Referenced by seq_parse_frame_data().

◆ seq_parse_frame_data()

static int seq_parse_frame_data ( SeqDemuxContext seq,
AVIOContext pb 
)
static

Definition at line 127 of file tiertexseq.c.

Referenced by seq_read_header(), and seq_read_packet().

◆ seq_read_close()

static int seq_read_close ( AVFormatContext s)
static

Definition at line 186 of file tiertexseq.c.

◆ seq_read_header()

static int seq_read_header ( AVFormatContext s)
static

Definition at line 197 of file tiertexseq.c.

◆ seq_read_packet()

static int seq_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 255 of file tiertexseq.c.

Variable Documentation

◆ ff_tiertexseq_demuxer

const FFInputFormat ff_tiertexseq_demuxer
Initial value:
= {
.p.name = "tiertexseq",
.p.long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ"),
.priv_data_size = sizeof(SeqDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}

Definition at line 311 of file tiertexseq.c.

seq_probe
static int seq_probe(const AVProbeData *p)
Definition: tiertexseq.c:64
seq_read_packet
static int seq_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: tiertexseq.c:255
seq_read_close
static int seq_read_close(AVFormatContext *s)
Definition: tiertexseq.c:186
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:143
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
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
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
seq_read_header
static int seq_read_header(AVFormatContext *s)
Definition: tiertexseq.c:197
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
SeqDemuxContext
Definition: tiertexseq.c:47
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30