libavcodec/eamad.c File Reference

Electronic Arts Madcow Video Decoder. More...

#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
#include "aandcttab.h"
#include "eaidct.h"
#include "mpeg12.h"
#include "mpeg12data.h"
#include "libavutil/imgutils.h"

Go to the source code of this file.

Data Structures

struct  MadContext

Defines

#define EA_PREAMBLE_SIZE   8
#define MADk_TAG   MKTAG('M', 'A', 'D', 'k')
#define MADm_TAG   MKTAG('M', 'A', 'D', 'm')
#define MADe_TAG   MKTAG('M', 'A', 'D', 'e')

Functions

static av_cold int decode_init (AVCodecContext *avctx)
static void comp (unsigned char *dst, int dst_stride, unsigned char *src, int src_stride, int add)
static void comp_block (MadContext *t, int mb_x, int mb_y, int j, int mv_x, int mv_y, int add)
static void idct_put (MadContext *t, DCTELEM *block, int mb_x, int mb_y, int j)
static int decode_block_intra (MadContext *s, DCTELEM *block)
static int decode_motion (GetBitContext *gb)
static int decode_mb (MadContext *s, int inter)
static void calc_quant_matrix (MadContext *s, int qscale)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int decode_end (AVCodecContext *avctx)

Variables

AVCodec ff_eamad_decoder


Detailed Description

Electronic Arts Madcow Video Decoder.

Author:
Peter Ross <pross@xvid.org>
See also:
technical details at http://wiki.multimedia.cx/index.php?title=Electronic_Arts_MAD

Definition in file eamad.c.


Define Documentation

#define EA_PREAMBLE_SIZE   8

Definition at line 40 of file eamad.c.

#define MADe_TAG   MKTAG('M', 'A', 'D', 'e')

Definition at line 43 of file eamad.c.

Referenced by decode_frame(), and ea_read_packet().

#define MADk_TAG   MKTAG('M', 'A', 'D', 'k')

Definition at line 41 of file eamad.c.

Referenced by ea_probe(), ea_read_packet(), and process_ea_header().

#define MADm_TAG   MKTAG('M', 'A', 'D', 'm')

Definition at line 42 of file eamad.c.

Referenced by decode_frame(), and ea_read_packet().


Function Documentation

static void calc_quant_matrix ( MadContext s,
int  qscale 
) [static]

Definition at line 219 of file eamad.c.

Referenced by decode_frame().

static void comp ( unsigned char *  dst,
int  dst_stride,
unsigned char *  src,
int  src_stride,
int  add 
) [inline, static]

static void comp_block ( MadContext t,
int  mb_x,
int  mb_y,
int  j,
int  mv_x,
int  mv_y,
int  add 
) [inline, static]

Definition at line 81 of file eamad.c.

Referenced by decode_mb().

static int decode_block_intra ( MadContext s,
DCTELEM block 
) [inline, static]

Definition at line 118 of file eamad.c.

Referenced by decode_mb().

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 299 of file eamad.c.

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

Definition at line 228 of file eamad.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 60 of file eamad.c.

static int decode_mb ( MadContext s,
int  inter 
) [static]

Definition at line 189 of file eamad.c.

static int decode_motion ( GetBitContext gb  )  [static]

Definition at line 178 of file eamad.c.

Referenced by decode_mb().

static void idct_put ( MadContext t,
DCTELEM block,
int  mb_x,
int  mb_y,
int  j 
) [inline, static]

Definition at line 104 of file eamad.c.


Variable Documentation

Initial value:

 {
    .name           = "eamad",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_MAD,
    .priv_data_size = sizeof(MadContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Electronic Arts Madcow Video")
}

Definition at line 310 of file eamad.c.


Generated on Fri Oct 26 02:50:05 2012 for FFmpeg by  doxygen 1.5.8