FFmpeg
|
eatgv.c File Reference
Electronic Arts TGV Video Decoder by Peter Ross (pross) @xvi d.orgMore...
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
Include dependency graph for eatgv.c:
Go to the source code of this file.
Data Structures | |
struct | TgvContext |
Macros | |
#define | BITSTREAM_READER_LE |
#define | EA_PREAMBLE_SIZE 8 |
#define | kVGT_TAG MKTAG('k', 'V', 'G', 'T') |
Typedefs | |
typedef struct TgvContext | TgvContext |
Functions | |
static av_cold int | tgv_decode_init (AVCodecContext *avctx) |
static int | unpack (const uint8_t *src, const uint8_t *src_end, uint8_t *dst, int width, int height) |
Unpack buffer. More... | |
static int | tgv_decode_inter (TgvContext *s, AVFrame *frame, const uint8_t *buf, const uint8_t *buf_end) |
Decode inter-frame. More... | |
static int | tgv_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, 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) @xvi d.org
Technical details here: http://wiki.multimedia.cx/index.php?title=Electronic_Arts_TGV
Definition in file eatgv.c.
Macro Definition Documentation
#define EA_PREAMBLE_SIZE 8 |
Definition at line 38 of file eatgv.c.
Referenced by tgv_decode_frame().
Definition at line 39 of file eatgv.c.
Referenced by tgv_decode_frame().
Typedef Documentation
typedef struct TgvContext TgvContext |
Function Documentation
|
static |
|
static |
|
static |
|
static |
Decode inter-frame.
- Returns
- 0 on success, -1 on critical buffer underflow
Definition at line 143 of file eatgv.c.
Referenced by tgv_decode_frame().
|
static |
Unpack buffer.
- Returns
- 0 on success, -1 on critical buffer underflow
Definition at line 68 of file eatgv.c.
Referenced by tgv_decode_frame().
Variable Documentation
AVCodec ff_eatgv_decoder |
Initial value:
= {
.name = "eatgv",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_TGV,
.priv_data_size = sizeof(TgvContext),
.init = tgv_decode_init,
.close = tgv_decode_end,
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"),
.capabilities = CODEC_CAP_DR1,
}
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
Definition: libavcodec/avcodec.h:223
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
struct TgvContext TgvContext
Definition: avutil.h:143
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
static int tgv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: eatgv.c:251
Generated on Fri Dec 20 2024 06:56:12 for FFmpeg by 1.8.11