libavcodec/interplayvideo.c File Reference

Interplay MVE Video Decoder by Mike Melanson (melanson@pcisys.net) For more information about the Interplay MVE format, visit: http://www.pcisys.net/~melanson/codecs/interplay-mve.txt This code is written in such a way that the identifiers match up with the encoding descriptions in the document. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "bytestream.h"
#include "dsputil.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  IpvideoContext

Defines

#define ALT_BITSTREAM_READER_LE
#define PALETTE_COUNT   256
#define CHECK_STREAM_PTR(stream_ptr, stream_end, n)

Functions

static int copy_from (IpvideoContext *s, AVFrame *src, int delta_x, int delta_y)
static int ipvideo_decode_block_opcode_0x0 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x1 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x2 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x3 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x4 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x5 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x6 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x7 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x8 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x9 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xA (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xB (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xC (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xD (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xE (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xF (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x6_16 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x7_16 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x8_16 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0x9_16 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xA_16 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xB_16 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xC_16 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xD_16 (IpvideoContext *s)
static int ipvideo_decode_block_opcode_0xE_16 (IpvideoContext *s)
static void ipvideo_decode_opcodes (IpvideoContext *s)
static av_cold int ipvideo_decode_init (AVCodecContext *avctx)
static int ipvideo_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int ipvideo_decode_end (AVCodecContext *avctx)

Variables

static int(*const ipvideo_decode_block [])(IpvideoContext *s)
static int(*const ipvideo_decode_block16 [])(IpvideoContext *s)
AVCodec ff_interplay_video_decoder


Detailed Description

Interplay MVE Video Decoder by Mike Melanson (melanson@pcisys.net) For more information about the Interplay MVE format, visit: http://www.pcisys.net/~melanson/codecs/interplay-mve.txt This code is written in such a way that the identifiers match up with the encoding descriptions in the document.

This decoder presently only supports a PAL8 output colorspace.

An Interplay video frame consists of 2 parts: The decoding map and the video data. A demuxer must load these 2 parts together in a single buffer before sending it through the stream to this decoder.

Definition in file interplayvideo.c.


Define Documentation

#define ALT_BITSTREAM_READER_LE

Definition at line 44 of file interplayvideo.c.

#define CHECK_STREAM_PTR ( stream_ptr,
stream_end,
 ) 

#define PALETTE_COUNT   256

Definition at line 47 of file interplayvideo.c.


Function Documentation

static int copy_from ( IpvideoContext s,
AVFrame src,
int  delta_x,
int  delta_y 
) [static]

static int ipvideo_decode_block_opcode_0x0 ( IpvideoContext s  )  [static]

Definition at line 103 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x1 ( IpvideoContext s  )  [static]

Definition at line 108 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x2 ( IpvideoContext s  )  [static]

Definition at line 113 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x3 ( IpvideoContext s  )  [static]

Definition at line 139 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x4 ( IpvideoContext s  )  [static]

Definition at line 167 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x5 ( IpvideoContext s  )  [static]

Definition at line 190 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x6 ( IpvideoContext s  )  [static]

Definition at line 205 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x6_16 ( IpvideoContext s  )  [static]

Definition at line 572 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x7 ( IpvideoContext s  )  [static]

Definition at line 214 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x7_16 ( IpvideoContext s  )  [static]

Definition at line 586 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x8 ( IpvideoContext s  )  [static]

Definition at line 259 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x8_16 ( IpvideoContext s  )  [static]

Definition at line 629 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x9 ( IpvideoContext s  )  [static]

Definition at line 336 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0x9_16 ( IpvideoContext s  )  [static]

Definition at line 708 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xA ( IpvideoContext s  )  [static]

Definition at line 410 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xA_16 ( IpvideoContext s  )  [static]

Definition at line 783 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xB ( IpvideoContext s  )  [static]

Definition at line 472 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xB_16 ( IpvideoContext s  )  [static]

Definition at line 846 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xC ( IpvideoContext s  )  [static]

Definition at line 489 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xC_16 ( IpvideoContext s  )  [static]

Definition at line 864 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xD ( IpvideoContext s  )  [static]

Definition at line 510 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xD_16 ( IpvideoContext s  )  [static]

Definition at line 886 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xE ( IpvideoContext s  )  [static]

Definition at line 532 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xE_16 ( IpvideoContext s  )  [static]

Definition at line 909 of file interplayvideo.c.

static int ipvideo_decode_block_opcode_0xF ( IpvideoContext s  )  [static]

Definition at line 550 of file interplayvideo.c.

static av_cold int ipvideo_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 1082 of file interplayvideo.c.

static int ipvideo_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 1037 of file interplayvideo.c.

static av_cold int ipvideo_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 1010 of file interplayvideo.c.

static void ipvideo_decode_opcodes ( IpvideoContext s  )  [static]

Definition at line 951 of file interplayvideo.c.

Referenced by ipvideo_decode_frame().


Variable Documentation

Initial value:

Definition at line 1095 of file interplayvideo.c.

int(* const ipvideo_decode_block[])(IpvideoContext *s) [static]

int(* const ipvideo_decode_block16[])(IpvideoContext *s) [static]


Generated on Fri Oct 26 02:38:16 2012 for FFmpeg by  doxygen 1.5.8