FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mtv.c File Reference

MTV demuxer. More...

#include "libavutil/bswap.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  MTVDemuxContext
 

Macros

#define MTV_ASUBCHUNK_DATA_SIZE   500
 
#define MTV_HEADER_SIZE   512
 
#define MTV_AUDIO_PADDING_SIZE   12
 
#define MTV_IMAGE_DEFAULT_BPP   16
 
#define MTV_AUDIO_SAMPLING_RATE   44100
 

Functions

static int mtv_probe (AVProbeData *p)
 
static int mtv_read_header (AVFormatContext *s)
 
static int mtv_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_mtv_demuxer
 

Detailed Description

MTV demuxer.

Definition in file mtv.c.

Macro Definition Documentation

#define MTV_ASUBCHUNK_DATA_SIZE   500

Definition at line 32 of file mtv.c.

Referenced by mtv_read_header(), and mtv_read_packet().

#define MTV_HEADER_SIZE   512

Definition at line 33 of file mtv.c.

Referenced by mtv_probe(), and mtv_read_header().

#define MTV_AUDIO_PADDING_SIZE   12

Definition at line 34 of file mtv.c.

Referenced by mtv_read_header(), and mtv_read_packet().

#define MTV_IMAGE_DEFAULT_BPP   16

Definition at line 35 of file mtv.c.

Referenced by mtv_probe(), and mtv_read_header().

#define MTV_AUDIO_SAMPLING_RATE   44100

Definition at line 36 of file mtv.c.

Referenced by mtv_read_header().

Function Documentation

static int mtv_probe ( AVProbeData p)
static

Definition at line 54 of file mtv.c.

static int mtv_read_header ( AVFormatContext s)
static

Definition at line 101 of file mtv.c.

static int mtv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 197 of file mtv.c.

Variable Documentation

AVInputFormat ff_mtv_demuxer
Initial value:
= {
.name = "mtv",
.long_name = NULL_IF_CONFIG_SMALL("MTV"),
.priv_data_size = sizeof(MTVDemuxContext),
}
static int mtv_read_header(AVFormatContext *s)
Definition: mtv.c:101
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:623
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int mtv_probe(AVProbeData *p)
Definition: mtv.c:54
static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mtv.c:197

Definition at line 226 of file mtv.c.