qpeg.c File Reference

QPEG codec. More...

#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
Include dependency graph for qpeg.c:

Go to the source code of this file.

Data Structures

struct  QpegContext
 

Typedefs

typedef struct QpegContext QpegContext
 

Functions

static void qpeg_decode_intra (QpegContext *qctx, uint8_t *dst, int stride, int width, int height)
 
static void qpeg_decode_inter (QpegContext *qctx, uint8_t *dst, int stride, int width, int height, int delta, const uint8_t *ctable, uint8_t *refdata)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static void decode_flush (AVCodecContext *avctx)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

static const int qpeg_table_h [16]
 
static const int qpeg_table_w [16]
 
AVCodec ff_qpeg_decoder
 

Detailed Description

QPEG codec.

Definition in file qpeg.c.

Typedef Documentation

typedef struct QpegContext QpegContext

Function Documentation

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 330 of file qpeg.c.

static void decode_flush ( AVCodecContext avctx)
static

Definition at line 303 of file qpeg.c.

Referenced by decode_init().

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

Definition at line 252 of file qpeg.c.

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 315 of file qpeg.c.

static void qpeg_decode_inter ( QpegContext qctx,
uint8_t dst,
int  stride,
int  width,
int  height,
int  delta,
const uint8_t ctable,
uint8_t refdata 
)
static

Definition at line 113 of file qpeg.c.

Referenced by decode_frame().

static void qpeg_decode_intra ( QpegContext qctx,
uint8_t dst,
int  stride,
int  width,
int  height 
)
static

Definition at line 38 of file qpeg.c.

Referenced by decode_frame().

Variable Documentation

AVCodec ff_qpeg_decoder
Initial value:
= {
.name = "qpeg",
.priv_data_size = sizeof(QpegContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Q-team QPEG"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
static av_cold int decode_init(AVCodecContext *avctx)
Definition: qpeg.c:315
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct QpegContext QpegContext
static void decode_flush(AVCodecContext *avctx)
Definition: qpeg.c:303
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: qpeg.c:252
static void flush(AVCodecContext *avctx)
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static av_cold int decode_end(AVCodecContext *avctx)
Definition: qpeg.c:330
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 341 of file qpeg.c.

const 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 107 of file qpeg.c.

Referenced by qpeg_decode_inter().

const 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 109 of file qpeg.c.

Referenced by qpeg_decode_inter().