FFmpeg
Data Structures | Macros | Functions | Variables
mtv.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avformat.h"
#include "demux.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 (const AVProbeData *p)
 
static int mtv_read_header (AVFormatContext *s)
 
static int mtv_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_mtv_demuxer
 

Detailed Description

MTV demuxer.

Definition in file mtv.c.

Macro Definition Documentation

◆ MTV_ASUBCHUNK_DATA_SIZE

#define MTV_ASUBCHUNK_DATA_SIZE   500

Definition at line 33 of file mtv.c.

◆ MTV_HEADER_SIZE

#define MTV_HEADER_SIZE   512

Definition at line 34 of file mtv.c.

◆ MTV_AUDIO_PADDING_SIZE

#define MTV_AUDIO_PADDING_SIZE   12

Definition at line 35 of file mtv.c.

◆ MTV_IMAGE_DEFAULT_BPP

#define MTV_IMAGE_DEFAULT_BPP   16

Definition at line 36 of file mtv.c.

◆ MTV_AUDIO_SAMPLING_RATE

#define MTV_AUDIO_SAMPLING_RATE   44100

Definition at line 37 of file mtv.c.

Function Documentation

◆ mtv_probe()

static int mtv_probe ( const AVProbeData p)
static

Definition at line 55 of file mtv.c.

◆ mtv_read_header()

static int mtv_read_header ( AVFormatContext s)
static

Definition at line 102 of file mtv.c.

◆ mtv_read_packet()

static int mtv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 200 of file mtv.c.

Variable Documentation

◆ ff_mtv_demuxer

const FFInputFormat ff_mtv_demuxer
Initial value:
= {
.p.name = "mtv",
.p.long_name = NULL_IF_CONFIG_SMALL("MTV"),
.priv_data_size = sizeof(MTVDemuxContext),
}

Definition at line 229 of file mtv.c.

mtv_read_packet
static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mtv.c:200
mtv_probe
static int mtv_probe(const AVProbeData *p)
Definition: mtv.c:55
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:540
mtv_read_header
static int mtv_read_header(AVFormatContext *s)
Definition: mtv.c:102
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
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
MTVDemuxContext
Definition: mtv.c:39