FFmpeg
Data Structures | Functions | Variables
eatqi.c File Reference
#include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h"
#include "blockdsp.h"
#include "bswapdsp.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "aandcttab.h"
#include "eaidct.h"
#include "mpeg12data.h"
#include "mpeg12dec.h"

Go to the source code of this file.

Data Structures

struct  TqiContext
 

Functions

static av_cold int tqi_decode_init (AVCodecContext *avctx)
 
static int tqi_decode_mb (TqiContext *t, int16_t(*block)[64])
 
static void tqi_idct_put (AVCodecContext *avctx, AVFrame *frame, int16_t(*block)[64])
 
static void tqi_calculate_qtable (TqiContext *t, int quant)
 
static int tqi_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static av_cold int tqi_decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_eatqi_decoder
 

Detailed Description

Electronic Arts TQI Video Decoder

Author
Peter Ross pross.nosp@m.@xvi.nosp@m.d.org
See also
http://wiki.multimedia.cx/index.php?title=Electronic_Arts_TQI

Definition in file eatqi.c.

Function Documentation

◆ tqi_decode_init()

static av_cold int tqi_decode_init ( AVCodecContext avctx)
static

Definition at line 59 of file eatqi.c.

◆ tqi_decode_mb()

static int tqi_decode_mb ( TqiContext t,
int16_t(*)  block[64] 
)
static

Definition at line 72 of file eatqi.c.

Referenced by tqi_decode_frame().

◆ tqi_idct_put()

static void tqi_idct_put ( AVCodecContext avctx,
AVFrame frame,
int16_t(*)  block[64] 
)
inlinestatic

Definition at line 92 of file eatqi.c.

Referenced by tqi_decode_frame().

◆ tqi_calculate_qtable()

static void tqi_calculate_qtable ( TqiContext t,
int  quant 
)
static

Definition at line 112 of file eatqi.c.

Referenced by tqi_decode_frame().

◆ tqi_decode_frame()

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

Definition at line 122 of file eatqi.c.

◆ tqi_decode_end()

static av_cold int tqi_decode_end ( AVCodecContext avctx)
static

Definition at line 172 of file eatqi.c.

Variable Documentation

◆ ff_eatqi_decoder

const FFCodec ff_eatqi_decoder
Initial value:
= {
.p.name = "eatqi",
CODEC_LONG_NAME("Electronic Arts TQI Video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_TQI,
.priv_data_size = sizeof(TqiContext),
.close = tqi_decode_end,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 179 of file eatqi.c.

AV_CODEC_ID_TQI
@ AV_CODEC_ID_TQI
Definition: codec_id.h:174
tqi_decode_end
static av_cold int tqi_decode_end(AVCodecContext *avctx)
Definition: eatqi.c:172
tqi_decode_frame
static int tqi_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: eatqi.c:122
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
TqiContext
Definition: eatqi.c:43
tqi_decode_init
static av_cold int tqi_decode_init(AVCodecContext *avctx)
Definition: eatqi.c:59
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201