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

Magic Lantern Video (MLV) demuxer. More...

#include "libavutil/eval.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/rational.h"
#include "avformat.h"
#include "internal.h"
#include "riff.h"

Go to the source code of this file.

Data Structures

struct  MlvContext
 

Macros

#define MLV_VERSION   "v2.0"
 
#define MLV_VIDEO_CLASS_RAW   1
 
#define MLV_VIDEO_CLASS_YUV   2
 
#define MLV_VIDEO_CLASS_JPEG   3
 
#define MLV_VIDEO_CLASS_H264   4
 
#define MLV_AUDIO_CLASS_WAV   1
 
#define MLV_CLASS_FLAG_DELTA   0x40
 
#define MLV_CLASS_FLAG_LZMA   0x80
 

Functions

static int probe (AVProbeData *p)
 
static int check_file_header (AVIOContext *pb, uint64_t guid)
 
static void read_string (AVFormatContext *avctx, AVIOContext *pb, const char *tag, int size)
 
static void read_uint8 (AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
 
static void read_uint16 (AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
 
static void read_uint32 (AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
 
static void read_uint64 (AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
 
static int scan_file (AVFormatContext *avctx, AVStream *vst, AVStream *ast, int file)
 
static int read_header (AVFormatContext *avctx)
 
static int read_packet (AVFormatContext *avctx, AVPacket *pkt)
 
static int read_seek (AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags)
 
static int read_close (AVFormatContext *s)
 

Variables

AVInputFormat ff_mlv_demuxer
 

Detailed Description

Magic Lantern Video (MLV) demuxer.

Definition in file mlvdec.c.

Macro Definition Documentation

#define MLV_VERSION   "v2.0"

Definition at line 34 of file mlvdec.c.

Referenced by check_file_header(), and probe().

#define MLV_VIDEO_CLASS_RAW   1

Definition at line 36 of file mlvdec.c.

Referenced by read_header().

#define MLV_VIDEO_CLASS_YUV   2

Definition at line 37 of file mlvdec.c.

Referenced by read_header().

#define MLV_VIDEO_CLASS_JPEG   3

Definition at line 38 of file mlvdec.c.

Referenced by read_header().

#define MLV_VIDEO_CLASS_H264   4

Definition at line 39 of file mlvdec.c.

Referenced by read_header().

#define MLV_AUDIO_CLASS_WAV   1

Definition at line 41 of file mlvdec.c.

Referenced by read_header().

#define MLV_CLASS_FLAG_DELTA   0x40

Definition at line 43 of file mlvdec.c.

Referenced by read_header(), and read_packet().

#define MLV_CLASS_FLAG_LZMA   0x80

Definition at line 44 of file mlvdec.c.

Referenced by read_header(), and read_packet().

Function Documentation

static int probe ( AVProbeData p)
static

Definition at line 53 of file mlvdec.c.

static int check_file_header ( AVIOContext pb,
uint64_t  guid 
)
static

Definition at line 62 of file mlvdec.c.

Referenced by read_header().

static void read_string ( AVFormatContext avctx,
AVIOContext pb,
const char *  tag,
int  size 
)
static

Definition at line 78 of file mlvdec.c.

Referenced by scan_file().

static void read_uint8 ( AVFormatContext avctx,
AVIOContext pb,
const char *  tag,
const char *  fmt 
)
static

Definition at line 96 of file mlvdec.c.

Referenced by scan_file().

static void read_uint16 ( AVFormatContext avctx,
AVIOContext pb,
const char *  tag,
const char *  fmt 
)
static

Definition at line 101 of file mlvdec.c.

Referenced by scan_file().

static void read_uint32 ( AVFormatContext avctx,
AVIOContext pb,
const char *  tag,
const char *  fmt 
)
static

Definition at line 106 of file mlvdec.c.

Referenced by scan_file().

static void read_uint64 ( AVFormatContext avctx,
AVIOContext pb,
const char *  tag,
const char *  fmt 
)
static

Definition at line 111 of file mlvdec.c.

Referenced by scan_file().

static int scan_file ( AVFormatContext avctx,
AVStream vst,
AVStream ast,
int  file 
)
static

Definition at line 116 of file mlvdec.c.

Referenced by read_header().

static int read_header ( AVFormatContext avctx)
static

Definition at line 239 of file mlvdec.c.

static int read_packet ( AVFormatContext avctx,
AVPacket pkt 
)
static

Definition at line 376 of file mlvdec.c.

static int read_seek ( AVFormatContext avctx,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 430 of file mlvdec.c.

static int read_close ( AVFormatContext s)
static

Definition at line 444 of file mlvdec.c.

Variable Documentation

AVInputFormat ff_mlv_demuxer
Initial value:
= {
.name = "mlv",
.long_name = NULL_IF_CONFIG_SMALL("Magic Lantern Video (MLV)"),
.priv_data_size = sizeof(MlvContext),
}

Definition at line 454 of file mlvdec.c.