FFmpeg
Loading...
Searching...
No Matches
mvrdec.c File Reference
#include <limits.h>
#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  MVRContext
 

Macros

#define MVR_HEADER_SIZE   512
 
#define MVR_ENTRY_SIZE   8
 
#define MVR_CHUNK_HEADER   16
 

Functions

static int mvr_probe (const AVProbeData *p)
 
static int mvr_read_header (AVFormatContext *s)
 
static int mvr_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_mvr_demuxer
 

Macro Definition Documentation

◆ MVR_HEADER_SIZE

#define MVR_HEADER_SIZE   512

Definition at line 34 of file mvrdec.c.

Referenced by mvr_read_header().

◆ MVR_ENTRY_SIZE

#define MVR_ENTRY_SIZE   8

Definition at line 35 of file mvrdec.c.

Referenced by mvr_probe(), and mvr_read_header().

◆ MVR_CHUNK_HEADER

#define MVR_CHUNK_HEADER   16

Definition at line 36 of file mvrdec.c.

Referenced by mvr_read_packet().

Function Documentation

◆ mvr_probe()

static int mvr_probe ( const AVProbeData * p)
static

Definition at line 43 of file mvrdec.c.

◆ mvr_read_header()

static int mvr_read_header ( AVFormatContext * s)
static

Definition at line 74 of file mvrdec.c.

◆ mvr_read_packet()

static int mvr_read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 158 of file mvrdec.c.

Variable Documentation

◆ ff_mvr_demuxer

const FFInputFormat ff_mvr_demuxer
Initial value:
= {
.p.name = "mvr",
.p.long_name = NULL_IF_CONFIG_SMALL("MVR CCTV"),
.p.extensions = "mvr",
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(MVRContext),
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int mvr_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition mvrdec.c:158
static int mvr_read_header(AVFormatContext *s)
Definition mvrdec.c:74
static int mvr_probe(const AVProbeData *p)
Definition mvrdec.c:43

Definition at line 199 of file mvrdec.c.