#include "avcodec.h"
#include "bitstream.h"
#include "libavutil/lzo.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, const uint8_t *buf, int buf_size) |
static av_cold int | tgv_decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | eatgv_decoder |
Technical details here: http://wiki.multimedia.cx/index.php?title=Electronic_Arts_TGV
Definition in file eatgv.c.
#define kVGT_TAG MKTAG('k', 'V', 'G', 'T') |
Definition at line 37 of file eatgv.c.
Referenced by ea_probe(), ea_read_packet(), process_ea_header(), and tgv_decode_frame().
static void cond_release_buffer | ( | AVFrame * | pic | ) | [static] |
release AVFrame buffers if allocated
Definition at line 230 of file eatgv.c.
Referenced by tgv_decode_end(), and tgv_decode_frame().
static av_cold int tgv_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
static int tgv_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static av_cold int tgv_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static int tgv_decode_inter | ( | TgvContext * | s, | |
const uint8_t * | buf, | |||
const uint8_t * | buf_end | |||
) | [static] |
Decode inter-frame.
Definition at line 137 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.
Definition at line 64 of file eatgv.c.
Referenced by tgv_decode_frame().
Initial value:
{ "eatgv", CODEC_TYPE_VIDEO, CODEC_ID_TGV, sizeof(TgvContext), tgv_decode_init, NULL, tgv_decode_end, tgv_decode_frame, .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"), }