eatgq.c File Reference

Electronic Arts TGQ Video Decoder. More...

#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
#include "dsputil.h"
#include "aandcttab.h"

Go to the source code of this file.

Data Structures

struct  TgqContext
 

Macros

#define BITSTREAM_READER_LE
 

Typedefs

typedef struct TgqContext TgqContext
 

Functions

static av_cold int tgq_decode_init (AVCodecContext *avctx)
 
static void tgq_decode_block (TgqContext *s, DCTELEM block[64], GetBitContext *gb)
 
static void tgq_idct_put_mb (TgqContext *s, DCTELEM(*block)[64], int mb_x, int mb_y)
 
static void tgq_dconly (TgqContext *s, unsigned char *dst, int dst_stride, int dc)
 
static void tgq_idct_put_mb_dconly (TgqContext *s, int mb_x, int mb_y, const int8_t *dc)
 
static void tgq_decode_mb (TgqContext *s, int mb_y, int mb_x)
 
static void tgq_calculate_qtable (TgqContext *s, int quant)
 
static int tgq_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 
static av_cold int tgq_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec 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

#define BITSTREAM_READER_LE

Definition at line 32 of file eatgq.c.

Typedef Documentation

typedef struct TgqContext TgqContext

Function Documentation

static void tgq_calculate_qtable ( TgqContext s,
int  quant 
)
static

Definition at line 177 of file eatgq.c.

Referenced by tgq_decode_frame().

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

Definition at line 122 of file eatgq.c.

Referenced by tgq_idct_put_mb_dconly().

static void tgq_decode_block ( TgqContext s,
DCTELEM  block[64],
GetBitContext gb 
)
static

Definition at line 61 of file eatgq.c.

Referenced by tgq_decode_mb().

static av_cold int tgq_decode_end ( AVCodecContext avctx)
static

Definition at line 239 of file eatgq.c.

static int tgq_decode_frame ( AVCodecContext avctx,
void data,
int *  data_size,
AVPacket avpkt 
)
static

Definition at line 189 of file eatgq.c.

static av_cold int tgq_decode_init ( AVCodecContext avctx)
static

Definition at line 49 of file eatgq.c.

static void tgq_decode_mb ( TgqContext s,
int  mb_y,
int  mb_x 
)
static

Definition at line 145 of file eatgq.c.

Referenced by tgq_decode_frame().

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

Definition at line 106 of file eatgq.c.

Referenced by tgq_decode_mb().

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

Definition at line 129 of file eatgq.c.

Referenced by tgq_decode_mb().

Variable Documentation

AVCodec ff_eatgq_decoder
Initial value:
= {
.name = "eatgq",
.id = CODEC_ID_TGQ,
.priv_data_size = sizeof(TgqContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGQ video"),
}
static int tgq_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: eatgq.c:189
static av_cold int tgq_decode_init(AVCodecContext *avctx)
Definition: eatgq.c:49
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:336
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:719
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
struct TgqContext TgqContext
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327
static av_cold int tgq_decode_end(AVCodecContext *avctx)
Definition: eatgq.c:239

Definition at line 246 of file eatgq.c.