libavcodec/eatgv.c File Reference

Electronic Arts TGV Video Decoder by Peter Ross (pross@xvid.org). More...

#include "avcodec.h"
#include "get_bits.h"
#include "libavutil/lzo.h"
#include "libavutil/imgutils.h"

Go to the source code of this file.

Data Structures

struct  TgvContext

Defines

#define ALT_BITSTREAM_READER_LE
#define EA_PREAMBLE_SIZE   8
#define kVGT_TAG   MKTAG('k', 'V', 'G', 'T')

Functions

static av_cold int tgv_decode_init (AVCodecContext *avctx)
static int unpack (const uint8_t *src, const uint8_t *src_end, unsigned char *dst, int width, int height)
 Unpack buffer.
static int tgv_decode_inter (TgvContext *s, const uint8_t *buf, const uint8_t *buf_end)
 Decode inter-frame.
static void cond_release_buffer (AVFrame *pic)
 release AVFrame buffers if allocated
static int tgv_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int tgv_decode_end (AVCodecContext *avctx)

Variables

AVCodec ff_eatgv_decoder


Detailed Description

Electronic Arts TGV Video Decoder by Peter Ross (pross@xvid.org).

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

Definition in file eatgv.c.


Define Documentation

#define ALT_BITSTREAM_READER_LE

Definition at line 32 of file eatgv.c.

#define EA_PREAMBLE_SIZE   8

Definition at line 37 of file eatgv.c.

#define kVGT_TAG   MKTAG('k', 'V', 'G', 'T')

Definition at line 38 of file eatgv.c.

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


Function Documentation

static void cond_release_buffer ( AVFrame pic  )  [static]

release AVFrame buffers if allocated

Definition at line 239 of file eatgv.c.

Referenced by tgv_decode_end(), and tgv_decode_frame().

static av_cold int tgv_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 334 of file eatgv.c.

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

Definition at line 247 of file eatgv.c.

static av_cold int tgv_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 53 of file eatgv.c.

static int tgv_decode_inter ( TgvContext s,
const uint8_t *  buf,
const uint8_t *  buf_end 
) [static]

Decode inter-frame.

Returns:
0 on success, -1 on critical buffer underflow

Definition at line 140 of file eatgv.c.

Referenced by tgv_decode_frame().

static int unpack ( const uint8_t *  src,
const uint8_t *  src_end,
unsigned char *  dst,
int  width,
int  height 
) [static]

Unpack buffer.

Returns:
0 on success, -1 on critical buffer underflow

Definition at line 67 of file eatgv.c.

Referenced by tgv_decode_frame().


Variable Documentation

Initial value:

 {
    .name           = "eatgv",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_TGV,
    .priv_data_size = sizeof(TgvContext),
    .init           = tgv_decode_init,
    .close          = tgv_decode_end,
    .decode         = tgv_decode_frame,
    .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"),
}

Definition at line 344 of file eatgv.c.


Generated on Fri Oct 26 02:43:47 2012 for FFmpeg by  doxygen 1.5.8