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

Go to the source code of this file.

Data Structures

struct  TMVContext
 

Macros

#define TMV_TAG   MKTAG('T', 'M', 'A', 'V')
 
#define TMV_HEADER_SIZE   12
 
#define PROBE_MIN_SAMPLE_RATE   5000
 
#define PROBE_MAX_FPS   120
 
#define PROBE_MIN_AUDIO_SIZE   (PROBE_MIN_SAMPLE_RATE / PROBE_MAX_FPS)
 

Enumerations

enum  { TMV_PADDING = 0x01, TMV_STEREO = 0x02 }
 

Functions

static int tmv_probe (const AVProbeData *p)
 
static int tmv_read_header (AVFormatContext *s)
 
static int tmv_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int tmv_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

const FFInputFormat ff_tmv_demuxer
 

Detailed Description

8088flex TMV file demuxer

Author
Daniel Verkamp
See also
http://www.oldskool.org/pc/8088_Corruption

Definition in file tmv.c.

Macro Definition Documentation

◆ TMV_TAG

#define TMV_TAG   MKTAG('T', 'M', 'A', 'V')

Definition at line 40 of file tmv.c.

◆ TMV_HEADER_SIZE

#define TMV_HEADER_SIZE   12

Definition at line 49 of file tmv.c.

◆ PROBE_MIN_SAMPLE_RATE

#define PROBE_MIN_SAMPLE_RATE   5000

Definition at line 51 of file tmv.c.

◆ PROBE_MAX_FPS

#define PROBE_MAX_FPS   120

Definition at line 52 of file tmv.c.

◆ PROBE_MIN_AUDIO_SIZE

#define PROBE_MIN_AUDIO_SIZE   (PROBE_MIN_SAMPLE_RATE / PROBE_MAX_FPS)

Definition at line 53 of file tmv.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TMV_PADDING 
TMV_STEREO 

Definition at line 35 of file tmv.c.

Function Documentation

◆ tmv_probe()

static int tmv_probe ( const AVProbeData p)
static

Definition at line 55 of file tmv.c.

◆ tmv_read_header()

static int tmv_read_header ( AVFormatContext s)
static

Definition at line 68 of file tmv.c.

◆ tmv_read_packet()

static int tmv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 149 of file tmv.c.

◆ tmv_read_seek()

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

Definition at line 171 of file tmv.c.

Variable Documentation

◆ ff_tmv_demuxer

const FFInputFormat ff_tmv_demuxer
Initial value:
= {
.p.name = "tmv",
.p.long_name = NULL_IF_CONFIG_SMALL("8088flex TMV"),
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(TMVContext),
}

Definition at line 189 of file tmv.c.

tmv_read_header
static int tmv_read_header(AVFormatContext *s)
Definition: tmv.c:68
TMVContext
Definition: tmv.c:42
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
tmv_read_packet
static int tmv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: tmv.c:149
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
tmv_probe
static int tmv_probe(const AVProbeData *p)
Definition: tmv.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:94
tmv_read_seek
static int tmv_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: tmv.c:171
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30