Electronic Arts TGV Video Decoder by Peter Ross (pross.nosp@m.@xvi.nosp@m.d.org)
More...
Go to the source code of this file.
|
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) |
|
#define BITSTREAM_READER_LE |
#define EA_PREAMBLE_SIZE 8 |
#define kVGT_TAG MKTAG('k', 'V', 'G', 'T') |
Unpack buffer.
- Returns
- 0 on success, -1 on critical buffer underflow
Definition at line 73 of file eatgv.c.
Referenced by tgv_decode_frame().
Decode inter-frame.
- Returns
- 0 on success, -1 on critical buffer underflow
Definition at line 148 of file eatgv.c.
Referenced by tgv_decode_frame().
Initial value:= {
.name = "eatgv",
}
static av_cold int init(AVCodecContext *avctx)
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
static av_cold int tgv_decode_end(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold int tgv_decode_init(AVCodecContext *avctx)
static int tgv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition at line 359 of file eatgv.c.