American Laser Games MM Video Decoder by Peter Ross (pross@xvid.org). More...
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | MmContext |
Defines | |
#define | MM_PREAMBLE_SIZE 6 |
#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_PALETTE 0x31 |
Typedefs | |
typedef struct MmContext | MmContext |
Functions | |
static av_cold int | mm_decode_init (AVCodecContext *avctx) |
static void | mm_decode_pal (MmContext *s, const uint8_t *buf, const uint8_t *buf_end) |
static void | mm_decode_intra (MmContext *s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size) |
static void | mm_decode_inter (MmContext *s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size) |
static int | mm_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
static av_cold int | mm_decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | mmvideo_decoder |
American Laser Games MM Video Decoder by Peter Ross (pross@xvid.org).
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 mmvideo.c.
#define MM_TYPE_INTER 0x5 |
Definition at line 39 of file mmvideo.c.
Referenced by mm_decode_frame().
#define MM_TYPE_INTER_HH 0xd |
Definition at line 42 of file mmvideo.c.
Referenced by mm_decode_frame().
#define MM_TYPE_INTER_HHV 0xf |
Definition at line 44 of file mmvideo.c.
Referenced by mm_decode_frame().
#define MM_TYPE_INTRA 0x8 |
Definition at line 40 of file mmvideo.c.
Referenced by mm_decode_frame().
#define MM_TYPE_INTRA_HH 0xc |
Definition at line 41 of file mmvideo.c.
Referenced by mm_decode_frame().
#define MM_TYPE_INTRA_HHV 0xe |
Definition at line 43 of file mmvideo.c.
Referenced by mm_decode_frame().
#define MM_TYPE_PALETTE 0x31 |
Definition at line 45 of file mmvideo.c.
Referenced by mm_decode_frame().
static av_cold int mm_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
static int mm_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int mm_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static void mm_decode_inter | ( | MmContext * | s, | |
int | half_horiz, | |||
int | half_vert, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 116 of file mmvideo.c.
Referenced by mm_decode_frame().
static void mm_decode_intra | ( | MmContext * | s, | |
int | half_horiz, | |||
int | half_vert, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 81 of file mmvideo.c.
Referenced by mm_decode_frame().
static void mm_decode_pal | ( | MmContext * | s, | |
const uint8_t * | buf, | |||
const uint8_t * | buf_end | |||
) | [static] |
Definition at line 70 of file mmvideo.c.
Referenced by mm_decode_frame().
{ "mmvideo", AVMEDIA_TYPE_VIDEO, CODEC_ID_MMVIDEO, sizeof(MmContext), mm_decode_init, NULL, mm_decode_end, mm_decode_frame, CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("American Laser Games MM Video"), }