FFmpeg
Data Structures | Macros | Functions | Variables
mvdec.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/eval.h"
#include "libavutil/intfloat.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavutil/rational.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  MvContext
 

Macros

#define MOVIE_SOUND   1
 
#define MOVIE_SILENT   2
 
#define AUDIO_FORMAT_SIGNED   401
 

Functions

static int mv_probe (const AVProbeData *p)
 
static char * var_read_string (AVIOContext *pb, int size)
 
static int var_read_int (AVIOContext *pb, int size)
 
static AVRational var_read_float (AVIOContext *pb, int size)
 
static void var_read_metadata (AVFormatContext *avctx, const char *tag, int size)
 
static int set_channels (AVFormatContext *avctx, AVStream *st, int channels)
 
static int parse_global_var (AVFormatContext *avctx, AVStream *st, const char *name, int size)
 Parse global variable. More...
 
static int parse_audio_var (AVFormatContext *avctx, AVStream *st, const char *name, int size)
 Parse audio variable. More...
 
static int parse_video_var (AVFormatContext *avctx, AVStream *st, const char *name, int size)
 Parse video variable. More...
 
static int read_table (AVFormatContext *avctx, AVStream *st, int(*parse)(AVFormatContext *avctx, AVStream *st, const char *name, int size))
 
static void read_index (AVIOContext *pb, AVStream *st)
 
static int mv_read_header (AVFormatContext *avctx)
 
static int mv_read_packet (AVFormatContext *avctx, AVPacket *pkt)
 
static int mv_read_seek (AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags)
 

Variables

const FFInputFormat ff_mv_demuxer
 

Detailed Description

Silicon Graphics Movie demuxer

Definition in file mvdec.c.

Macro Definition Documentation

◆ MOVIE_SOUND

#define MOVIE_SOUND   1

Definition at line 51 of file mvdec.c.

◆ MOVIE_SILENT

#define MOVIE_SILENT   2

Definition at line 52 of file mvdec.c.

◆ AUDIO_FORMAT_SIGNED

#define AUDIO_FORMAT_SIGNED   401

Definition at line 54 of file mvdec.c.

Function Documentation

◆ mv_probe()

static int mv_probe ( const AVProbeData p)
static

Definition at line 56 of file mvdec.c.

◆ var_read_string()

static char* var_read_string ( AVIOContext pb,
int  size 
)
static

Definition at line 64 of file mvdec.c.

Referenced by parse_video_var(), var_read_float(), var_read_int(), and var_read_metadata().

◆ var_read_int()

static int var_read_int ( AVIOContext pb,
int  size 
)
static

Definition at line 81 of file mvdec.c.

Referenced by parse_audio_var(), parse_global_var(), and parse_video_var().

◆ var_read_float()

static AVRational var_read_float ( AVIOContext pb,
int  size 
)
static

Definition at line 92 of file mvdec.c.

Referenced by parse_video_var().

◆ var_read_metadata()

static void var_read_metadata ( AVFormatContext avctx,
const char *  tag,
int  size 
)
static

Definition at line 103 of file mvdec.c.

Referenced by mv_read_header(), parse_audio_var(), parse_global_var(), and parse_video_var().

◆ set_channels()

static int set_channels ( AVFormatContext avctx,
AVStream st,
int  channels 
)
static

Definition at line 110 of file mvdec.c.

Referenced by mv_read_header(), and parse_audio_var().

◆ parse_global_var()

static int parse_global_var ( AVFormatContext avctx,
AVStream st,
const char *  name,
int  size 
)
static

Parse global variable.

Returns
< 0 if unknown

Definition at line 124 of file mvdec.c.

Referenced by mv_read_header().

◆ parse_audio_var()

static int parse_audio_var ( AVFormatContext avctx,
AVStream st,
const char *  name,
int  size 
)
static

Parse audio variable.

Returns
< 0 if unknown

Definition at line 148 of file mvdec.c.

Referenced by mv_read_header().

◆ parse_video_var()

static int parse_video_var ( AVFormatContext avctx,
AVStream st,
const char *  name,
int  size 
)
static

Parse video variable.

Returns
< 0 if unknown

Definition at line 184 of file mvdec.c.

Referenced by mv_read_header().

◆ read_table()

static int read_table ( AVFormatContext avctx,
AVStream st,
int(*)(AVFormatContext *avctx, AVStream *st, const char *name, int size parse 
)
static

Definition at line 241 of file mvdec.c.

Referenced by mv_read_header().

◆ read_index()

static void read_index ( AVIOContext pb,
AVStream st 
)
static

Definition at line 275 of file mvdec.c.

Referenced by mv_read_header().

◆ mv_read_header()

static int mv_read_header ( AVFormatContext avctx)
static

Definition at line 294 of file mvdec.c.

◆ mv_read_packet()

static int mv_read_packet ( AVFormatContext avctx,
AVPacket pkt 
)
static

Definition at line 474 of file mvdec.c.

◆ mv_read_seek()

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

Definition at line 523 of file mvdec.c.

Variable Documentation

◆ ff_mv_demuxer

const FFInputFormat ff_mv_demuxer
Initial value:
= {
.p.name = "mv",
.p.long_name = NULL_IF_CONFIG_SMALL("Silicon Graphics Movie"),
.priv_data_size = sizeof(MvContext),
}

Definition at line 545 of file mvdec.c.

read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
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
mv_read_packet
static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt)
Definition: mvdec.c:474
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
mv_probe
static int mv_probe(const AVProbeData *p)
Definition: mvdec.c:56
mv_read_seek
static int mv_read_seek(AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags)
Definition: mvdec.c:523
MvContext
Definition: mvdec.c:38
mv_read_header
static int mv_read_header(AVFormatContext *avctx)
Definition: mvdec.c:294
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30