Electronic Arts TGV Video Decoder by Peter Ross (pross.nosp@m.@xvi.nosp@m.d.org)
More...
#include "libavutil/mem.h"
#include "avcodec.h"
#include "get_bits.h"
#include "codec_internal.h"
#include "decode.h"
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.
|
| |
| static int | tgv_decode_inter (TgvContext *s, AVFrame *frame, const uint8_t *buf, const uint8_t *buf_end) |
| | Decode inter-frame.
|
| |
| static int | tgv_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt) |
| |
| static av_cold int | tgv_decode_end (AVCodecContext *avctx) |
| |
◆ BITSTREAM_READER_LE
| #define BITSTREAM_READER_LE |
◆ EA_PREAMBLE_SIZE
| #define EA_PREAMBLE_SIZE 8 |
◆ kVGT_TAG
| #define kVGT_TAG MKTAG('k', 'V', 'G', 'T') |
◆ tgv_decode_init()
◆ unpack()
| static int unpack |
( |
const uint8_t * | src, |
|
|
const uint8_t * | src_end, |
|
|
uint8_t * | dst, |
|
|
int | width, |
|
|
int | height ) |
|
static |
◆ tgv_decode_inter()
| static int tgv_decode_inter |
( |
TgvContext * | s, |
|
|
AVFrame * | frame, |
|
|
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 148 of file eatgv.c.
Referenced by tgv_decode_frame().
◆ tgv_decode_frame()
◆ tgv_decode_end()
◆ ff_eatgv_decoder
Initial value:= {
.p.name = "eatgv",
}
static av_cold void close(AVCodecParserContext *s)
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
static av_cold int tgv_decode_init(AVCodecContext *avctx)
static av_cold int tgv_decode_end(AVCodecContext *avctx)
static int tgv_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition at line 359 of file eatgv.c.