FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
eatgq.c File Reference

Electronic Arts TGQ Video Decoder. More...

#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
#include "idctdsp.h"
#include "aandcttab.h"
#include "eaidct.h"
#include "internal.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 void 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, int 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, AVFrame *frame, 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 *got_frame, AVPacket *avpkt)
 

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.

Function Documentation

static av_cold int tgq_decode_init ( AVCodecContext avctx)
static

Definition at line 49 of file eatgq.c.

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

Definition at line 61 of file eatgq.c.

Referenced by tgq_decode_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 107 of file eatgq.c.

Referenced by tgq_decode_mb().

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

Definition at line 125 of file eatgq.c.

Referenced by 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 134 of file eatgq.c.

Referenced by tgq_decode_mb().

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

Definition at line 151 of file eatgq.c.

Referenced by tgq_decode_frame().

static void tgq_calculate_qtable ( TgqContext s,
int  quant 
)
static

Definition at line 186 of file eatgq.c.

Referenced by tgq_decode_frame().

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

Definition at line 197 of file eatgq.c.

Variable Documentation

AVCodec ff_eatgq_decoder
Initial value:
= {
.name = "eatgq",
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGQ video"),
.priv_data_size = sizeof(TgqContext),
.capabilities = CODEC_CAP_DR1,
}

Definition at line 244 of file eatgq.c.