FFmpeg
Loading...
Searching...
No Matches
eatgq.c File Reference

Electronic Arts TGQ Video Decoder. More...

#include "libavutil/attributes.h"
#include "libavutil/mem_internal.h"
#include "aandcttab.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "copy_block.h"
#include "decode.h"
#include "eaidct.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  TgqContext
 

Macros

#define BITSTREAM_READER_LE
 

Functions

static av_cold int tgq_decode_init (AVCodecContext *avctx)
 
static int tgq_decode_block (TgqContext *s, int16_t block[64], GetBitContext *gb)
 
static void tgq_idct_put_mb (TgqContext *s, int16_t(*block)[64], AVFrame *frame, int mb_x, int mb_y)
 
static void tgq_dconly (TgqContext *s, unsigned char *dst, ptrdiff_t dst_stride, int dc)
 
static void tgq_idct_put_mb_dconly (TgqContext *s, AVFrame *frame, int mb_x, int mb_y, const int8_t *dc)
 
static int tgq_decode_mb (TgqContext *s, GetByteContext *gbyte, AVFrame *frame, int mb_y, int mb_x)
 
static void tgq_calculate_qtable (TgqContext *s, int quant)
 
static int tgq_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static av_cold int tgq_decode_close (AVCodecContext *avctx)
 

Variables

const FFCodec ff_eatgq_decoder
 

Detailed Description

Electronic Arts TGQ Video Decoder.

Author
Peter Ross pross.nosp@m.@xvi.nosp@m.d.org

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

Definition in file eatgq.c.

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 32 of file eatgq.c.

Function Documentation

◆ tgq_decode_init()

static av_cold int tgq_decode_init ( AVCodecContext * avctx)
static

Definition at line 53 of file eatgq.c.

◆ tgq_decode_block()

static int tgq_decode_block ( TgqContext * s,
int16_t block[64],
GetBitContext * gb )
static

Definition at line 65 of file eatgq.c.

Referenced by tgq_decode_mb().

◆ tgq_idct_put_mb()

static void tgq_idct_put_mb ( TgqContext * s,
int16_t(*) block[64],
AVFrame * frame,
int mb_x,
int mb_y )
static

Definition at line 117 of file eatgq.c.

Referenced by tgq_decode_mb().

◆ tgq_dconly()

static void tgq_dconly ( TgqContext * s,
unsigned char * dst,
ptrdiff_t dst_stride,
int dc )
inlinestatic

Definition at line 135 of file eatgq.c.

Referenced by tgq_idct_put_mb_dconly().

◆ tgq_idct_put_mb_dconly()

static void tgq_idct_put_mb_dconly ( TgqContext * s,
AVFrame * frame,
int mb_x,
int mb_y,
const int8_t * dc )
static

Definition at line 144 of file eatgq.c.

Referenced by tgq_decode_mb().

◆ tgq_decode_mb()

static int tgq_decode_mb ( TgqContext * s,
GetByteContext * gbyte,
AVFrame * frame,
int mb_y,
int mb_x )
static

Definition at line 161 of file eatgq.c.

Referenced by tgq_decode_frame().

◆ tgq_calculate_qtable()

static void tgq_calculate_qtable ( TgqContext * s,
int quant )
static

Definition at line 230 of file eatgq.c.

Referenced by tgq_decode_frame().

◆ tgq_decode_frame()

static int tgq_decode_frame ( AVCodecContext * avctx,
AVFrame * frame,
int * got_frame,
AVPacket * avpkt )
static

Definition at line 241 of file eatgq.c.

◆ tgq_decode_close()

static av_cold int tgq_decode_close ( AVCodecContext * avctx)
static

Definition at line 292 of file eatgq.c.

Variable Documentation

◆ ff_eatgq_decoder

const FFCodec ff_eatgq_decoder
Initial value:
= {
.p.name = "eatgq",
CODEC_LONG_NAME("Electronic Arts TGQ video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_TGQ,
.priv_data_size = sizeof(TgqContext),
.p.capabilities = AV_CODEC_CAP_DR1,
}
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
static int tgq_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition eatgq.c:241
static av_cold int tgq_decode_init(AVCodecContext *avctx)
Definition eatgq.c:53
static av_cold int tgq_decode_close(AVCodecContext *avctx)
Definition eatgq.c:292
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_TGQ
Definition codec_id.h:171
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200

Definition at line 299 of file eatgq.c.