qpeg.c File Reference


Detailed Description

QPEG codec.

Definition in file qpeg.c.

Go to the source code of this file.

Classes

struct  QpegContext

Functions

static void qpeg_decode_intra (uint8_t *src, uint8_t *dst, int size, int stride, int width, int height)
static void qpeg_decode_inter (uint8_t *src, uint8_t *dst, int size, int stride, int width, int height, int delta, uint8_t *ctable, uint8_t *refdata)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int decode_init (AVCodecContext *avctx)
static int decode_end (AVCodecContext *avctx)

Variables

static int qpeg_table_h [16]
static int qpeg_table_w [16]
AVCodec qpeg_decoder


Function Documentation

static void qpeg_decode_intra ( uint8_t *  src,
uint8_t *  dst,
int  size,
int  stride,
int  width,
int  height 
) [static]

Definition at line 36 of file qpeg.c.

Referenced by decode_frame().

static void qpeg_decode_inter ( uint8_t *  src,
uint8_t *  dst,
int  size,
int  stride,
int  width,
int  height,
int  delta,
uint8_t *  ctable,
uint8_t *  refdata 
) [static]

Definition at line 118 of file qpeg.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 250 of file qpeg.c.

static int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 288 of file qpeg.c.

static int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 299 of file qpeg.c.


Variable Documentation

int qpeg_table_h[16] [static]

Initial value:

 { 0x00, 0x20, 0x20, 0x20, 0x18, 0x10, 0x10, 0x20, 0x10, 0x08, 0x18, 0x08, 0x08, 0x18, 0x10, 0x04}

Definition at line 112 of file qpeg.c.

Referenced by qpeg_decode_inter().

int qpeg_table_w[16] [static]

Initial value:

 { 0x00, 0x20, 0x18, 0x08, 0x18, 0x10, 0x20, 0x10, 0x08, 0x10, 0x20, 0x20, 0x08, 0x10, 0x18, 0x04}

Definition at line 114 of file qpeg.c.

Referenced by qpeg_decode_inter().

Initial value:

 {
    "qpeg",
    CODEC_TYPE_VIDEO,
    CODEC_ID_QPEG,
    sizeof(QpegContext),
    decode_init,
    NULL,
    decode_end,
    decode_frame,
    CODEC_CAP_DR1,
}

Definition at line 310 of file qpeg.c.


Generated on Sat Dec 18 05:15:55 2010 for MythTV by  doxygen 1.5.5