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

Go to the source code of this file.

Data Structures

struct  vmd_frame
 
struct  VmdDemuxContext
 

Macros

#define VMD_HEADER_SIZE   0x0330
 
#define BYTES_PER_FRAME_RECORD   16
 

Functions

static int vmd_probe (const AVProbeData *p)
 
static int vmd_read_header (AVFormatContext *s)
 
static int vmd_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int vmd_read_close (AVFormatContext *s)
 

Variables

const FFInputFormat ff_vmd_demuxer
 

Detailed Description

Sierra VMD file demuxer by Vladimir "VAG" Gneushev (vagsoft at mail.ru) for more information on the Sierra VMD file format, visit: http://www.pcisys.net/~melanson/codecs/

Definition in file sierravmd.c.

Macro Definition Documentation

◆ VMD_HEADER_SIZE

#define VMD_HEADER_SIZE   0x0330

Definition at line 38 of file sierravmd.c.

◆ BYTES_PER_FRAME_RECORD

#define BYTES_PER_FRAME_RECORD   16

Definition at line 39 of file sierravmd.c.

Function Documentation

◆ vmd_probe()

static int vmd_probe ( const AVProbeData p)
static

Definition at line 66 of file sierravmd.c.

◆ vmd_read_header()

static int vmd_read_header ( AVFormatContext s)
static

Definition at line 86 of file sierravmd.c.

◆ vmd_read_packet()

static int vmd_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 266 of file sierravmd.c.

◆ vmd_read_close()

static int vmd_read_close ( AVFormatContext s)
static

Definition at line 309 of file sierravmd.c.

Variable Documentation

◆ ff_vmd_demuxer

const FFInputFormat ff_vmd_demuxer
Initial value:
= {
.p.name = "vmd",
.p.long_name = NULL_IF_CONFIG_SMALL("Sierra VMD"),
.priv_data_size = sizeof(VmdDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}

Definition at line 318 of file sierravmd.c.

vmd_read_close
static int vmd_read_close(AVFormatContext *s)
Definition: sierravmd.c:309
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:143
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
vmd_probe
static int vmd_probe(const AVProbeData *p)
Definition: sierravmd.c:66
FF_INFMT_FLAG_INIT_CLEANUP
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: demux.h:35
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
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
vmd_read_header
static int vmd_read_header(AVFormatContext *s)
Definition: sierravmd.c:86
vmd_read_packet
static int vmd_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: sierravmd.c:266
VmdDemuxContext
Definition: sierravmd.c:49
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30