libavformat/tmv.c File Reference

8088flex TMV file demuxer More...

#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
Include dependency graph for libavformat/tmv.c:

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)
 

Typedefs

typedef struct TMVContext TMVContext
 

Enumerations

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

Functions

static int tmv_probe (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

AVInputFormat ff_tmv_demuxer
 

Detailed Description

8088flex TMV file demuxer

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

Definition in file libavformat/tmv.c.

Macro Definition Documentation

#define PROBE_MAX_FPS   120

Definition at line 51 of file libavformat/tmv.c.

#define PROBE_MIN_AUDIO_SIZE   (PROBE_MIN_SAMPLE_RATE / PROBE_MAX_FPS)

Definition at line 52 of file libavformat/tmv.c.

Referenced by tmv_probe().

#define PROBE_MIN_SAMPLE_RATE   5000

Definition at line 50 of file libavformat/tmv.c.

Referenced by tmv_probe().

#define TMV_HEADER_SIZE   12

Definition at line 48 of file libavformat/tmv.c.

Referenced by tmv_read_seek().

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

Definition at line 39 of file libavformat/tmv.c.

Referenced by tmv_probe(), and tmv_read_header().

Typedef Documentation

typedef struct TMVContext TMVContext

Enumeration Type Documentation

anonymous enum
Enumerator
TMV_PADDING 
TMV_STEREO 

Definition at line 34 of file libavformat/tmv.c.

Function Documentation

static int tmv_probe ( AVProbeData p)
static

Definition at line 54 of file libavformat/tmv.c.

static int tmv_read_header ( AVFormatContext s)
static

Definition at line 67 of file libavformat/tmv.c.

static int tmv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 150 of file libavformat/tmv.c.

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

Definition at line 172 of file libavformat/tmv.c.

Variable Documentation

AVInputFormat ff_tmv_demuxer
Initial value:
= {
.name = "tmv",
.long_name = NULL_IF_CONFIG_SMALL("8088flex TMV"),
.priv_data_size = sizeof(TMVContext),
}
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:153
struct TMVContext TMVContext
static int tmv_read_header(AVFormatContext *s)
static int tmv_read_packet(AVFormatContext *s, AVPacket *pkt)
static int tmv_probe(AVProbeData *p)
static int tmv_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int read_probe(AVProbeData *pd)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:353
static int flags
Definition: cpu.c:23

Definition at line 190 of file libavformat/tmv.c.