Libav
Data Structures | Macros | Functions | Variables
eacmv.c File Reference

Electronic Arts CMV Video Decoder by Peter Ross (pross.nosp@m.@xvi.nosp@m.d.org) More...

#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  CmvContext
 

Macros

#define EA_PREAMBLE_SIZE   8
 
#define MVIh_TAG   MKTAG('M', 'V', 'I', 'h')
 

Functions

static av_cold int cmv_decode_init (AVCodecContext *avctx)
 
static void cmv_decode_intra (CmvContext *s, AVFrame *frame, const uint8_t *buf, const uint8_t *buf_end)
 
static void cmv_motcomp (unsigned char *dst, int dst_stride, const unsigned char *src, int src_stride, int x, int y, int xoffset, int yoffset, int width, int height)
 
static void cmv_decode_inter (CmvContext *s, AVFrame *frame, const uint8_t *buf, const uint8_t *buf_end)
 
static int cmv_process_header (CmvContext *s, const uint8_t *buf, const uint8_t *buf_end)
 
static int cmv_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int cmv_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_eacmv_decoder
 

Detailed Description

Electronic Arts CMV Video Decoder by Peter Ross (pross.nosp@m.@xvi.nosp@m.d.org)

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

Definition in file eacmv.c.

Macro Definition Documentation

§ EA_PREAMBLE_SIZE

#define EA_PREAMBLE_SIZE   8

Definition at line 170 of file eacmv.c.

Referenced by cmv_decode_frame().

§ MVIh_TAG

#define MVIh_TAG   MKTAG('M', 'V', 'I', 'h')

Definition at line 171 of file eacmv.c.

Referenced by cmv_decode_frame().

Function Documentation

§ cmv_decode_init()

static av_cold int cmv_decode_init ( AVCodecContext avctx)
static

Definition at line 45 of file eacmv.c.

§ cmv_decode_intra()

static void cmv_decode_intra ( CmvContext s,
AVFrame frame,
const uint8_t buf,
const uint8_t buf_end 
)
static

Definition at line 61 of file eacmv.c.

Referenced by cmv_decode_frame().

§ cmv_motcomp()

static void cmv_motcomp ( unsigned char *  dst,
int  dst_stride,
const unsigned char *  src,
int  src_stride,
int  x,
int  y,
int  xoffset,
int  yoffset,
int  width,
int  height 
)
static

Definition at line 74 of file eacmv.c.

Referenced by cmv_decode_inter().

§ cmv_decode_inter()

static void cmv_decode_inter ( CmvContext s,
AVFrame frame,
const uint8_t buf,
const uint8_t buf_end 
)
static

Definition at line 93 of file eacmv.c.

Referenced by cmv_decode_frame().

§ cmv_process_header()

static int cmv_process_header ( CmvContext s,
const uint8_t buf,
const uint8_t buf_end 
)
static

Definition at line 132 of file eacmv.c.

Referenced by cmv_decode_frame().

§ cmv_decode_frame()

static int cmv_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 173 of file eacmv.c.

§ cmv_decode_end()

static av_cold int cmv_decode_end ( AVCodecContext avctx)
static

Definition at line 225 of file eacmv.c.

Variable Documentation

§ ff_eacmv_decoder

AVCodec ff_eacmv_decoder
Initial value:
= {
.name = "eacmv",
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts CMV video"),
.priv_data_size = sizeof(CmvContext),
.capabilities = CODEC_CAP_DR1,
}
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:275
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:684
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
static av_cold int cmv_decode_init(AVCodecContext *avctx)
Definition: eacmv.c:45
static int cmv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: eacmv.c:173
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499
static av_cold int cmv_decode_end(AVCodecContext *avctx)
Definition: eacmv.c:225

Definition at line 234 of file eacmv.c.