FFmpeg
Data Structures | Enumerations | Functions | Variables
avs.c File Reference
#include "avformat.h"
#include "demux.h"
#include "voc.h"

Go to the source code of this file.

Data Structures

struct  avs_format
 

Enumerations

enum  avs_block_type {
  AVS_NONE = 0x00, AVS_VIDEO = 0x01, AVS_AUDIO = 0x02, AVS_PALETTE = 0x03,
  AVS_GAME_DATA = 0x04
}
 

Functions

static int avs_probe (const AVProbeData *p)
 
static int avs_read_header (AVFormatContext *s)
 
static int avs_read_video_packet (AVFormatContext *s, AVPacket *pkt, AvsBlockType type, int sub_type, int size, uint8_t *palette, int palette_size)
 
static int avs_read_audio_packet (AVFormatContext *s, AVPacket *pkt)
 
static int avs_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_avs_demuxer
 

Detailed Description

Argonaut Games' Creature Shock demuxer

See also
http://wiki.multimedia.cx/index.php?title=AVS

Definition in file avs.c.

Enumeration Type Documentation

◆ avs_block_type

Enumerator
AVS_NONE 
AVS_VIDEO 
AVS_AUDIO 
AVS_PALETTE 
AVS_GAME_DATA 

Definition at line 46 of file avs.c.

Function Documentation

◆ avs_probe()

static int avs_probe ( const AVProbeData p)
static

Definition at line 54 of file avs.c.

◆ avs_read_header()

static int avs_read_header ( AVFormatContext s)
static

Definition at line 67 of file avs.c.

◆ avs_read_video_packet()

static int avs_read_video_packet ( AVFormatContext s,
AVPacket pkt,
AvsBlockType  type,
int  sub_type,
int  size,
uint8_t *  palette,
int  palette_size 
)
static

Definition at line 93 of file avs.c.

Referenced by avs_read_packet().

◆ avs_read_audio_packet()

static int avs_read_audio_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 129 of file avs.c.

Referenced by avs_read_packet().

◆ avs_read_packet()

static int avs_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 155 of file avs.c.

Variable Documentation

◆ ff_avs_demuxer

const FFInputFormat ff_avs_demuxer
Initial value:
= {
.p.name = "avs",
.p.long_name = NULL_IF_CONFIG_SMALL("Argonaut Games Creature Shock"),
.priv_data_size = sizeof(AvsFormat),
}

Definition at line 232 of file avs.c.

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
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
avs_read_packet
static int avs_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: avs.c:155
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
avs_read_header
static int avs_read_header(AVFormatContext *s)
Definition: avs.c:67
avs_probe
static int avs_probe(const AVProbeData *p)
Definition: avs.c:54