libavformat/mm.c File Reference

American Laser Games MM Format Demuxer by Peter Ross (suxen_drol at hotmail dot com). More...

#include "libavutil/intreadwrite.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  MmDemuxContext

Defines

#define MM_PREAMBLE_SIZE   6
#define MM_TYPE_HEADER   0x0
#define MM_TYPE_INTER   0x5
#define MM_TYPE_INTRA   0x8
#define MM_TYPE_INTRA_HH   0xc
#define MM_TYPE_INTER_HH   0xd
#define MM_TYPE_INTRA_HHV   0xe
#define MM_TYPE_INTER_HHV   0xf
#define MM_TYPE_AUDIO   0x15
#define MM_TYPE_PALETTE   0x31
#define MM_HEADER_LEN_V   0x16
#define MM_HEADER_LEN_AV   0x18
#define MM_PALETTE_COUNT   128
#define MM_PALETTE_SIZE   (MM_PALETTE_COUNT*3)

Functions

static int mm_probe (AVProbeData *p)
static int mm_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int mm_read_packet (AVFormatContext *s, AVPacket *pkt)

Variables

AVInputFormat mm_demuxer


Detailed Description

American Laser Games MM Format Demuxer by Peter Ross (suxen_drol at hotmail dot com).

The MM format was used by IBM-PC ports of ALG's "arcade shooter" games, including Mad Dog McCree and Crime Patrol.

Technical details here: http://wiki.multimedia.cx/index.php?title=American_Laser_Games_MM

Definition in file mm.c.


Define Documentation

#define MM_HEADER_LEN_AV   0x18

Definition at line 50 of file mm.c.

Referenced by mm_probe(), and mm_read_header().

#define MM_HEADER_LEN_V   0x16

Definition at line 49 of file mm.c.

Referenced by mm_probe().

#define MM_PALETTE_COUNT   128

Definition at line 52 of file mm.c.

#define MM_PALETTE_SIZE   (MM_PALETTE_COUNT*3)

Definition at line 53 of file mm.c.

#define MM_PREAMBLE_SIZE   6

Definition at line 37 of file mm.c.

#define MM_TYPE_AUDIO   0x15

Definition at line 46 of file mm.c.

Referenced by mm_read_packet().

#define MM_TYPE_HEADER   0x0

Definition at line 39 of file mm.c.

Referenced by mm_probe(), and mm_read_header().

#define MM_TYPE_INTER   0x5

Definition at line 40 of file mm.c.

#define MM_TYPE_INTER_HH   0xd

Definition at line 43 of file mm.c.

#define MM_TYPE_INTER_HHV   0xf

Definition at line 45 of file mm.c.

#define MM_TYPE_INTRA   0x8

Definition at line 41 of file mm.c.

#define MM_TYPE_INTRA_HH   0xc

Definition at line 42 of file mm.c.

#define MM_TYPE_INTRA_HHV   0xe

Definition at line 44 of file mm.c.

#define MM_TYPE_PALETTE   0x31

Definition at line 47 of file mm.c.


Function Documentation

static int mm_probe ( AVProbeData p  )  [static]

Definition at line 59 of file mm.c.

static int mm_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 71 of file mm.c.

static int mm_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 124 of file mm.c.


Variable Documentation

Initial value:

 {
    "mm",
    NULL_IF_CONFIG_SMALL("American Laser Games MM format"),
    sizeof(MmDemuxContext),
    mm_probe,
    mm_read_header,
    mm_read_packet,
}

Definition at line 178 of file mm.c.


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8