FFmpeg
Data Structures | Functions | Variables
qpeg.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  QpegContext
 

Functions

static void qpeg_decode_intra (QpegContext *qctx, uint8_t *dst, int stride, int width, int height)
 
static void av_noinline 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, AVFrame *p, int *got_frame, AVPacket *avpkt)
 
static void decode_flush (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 
static av_cold int decode_init (AVCodecContext *avctx)
 

Variables

static const uint8_t qpeg_table_h [16]
 
static const uint8_t qpeg_table_w [16]
 
const FFCodec ff_qpeg_decoder
 

Detailed Description

QPEG codec.

Definition in file qpeg.c.

Function Documentation

◆ qpeg_decode_intra()

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

Definition at line 39 of file qpeg.c.

Referenced by decode_frame().

◆ qpeg_decode_inter()

static void av_noinline 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 128 of file qpeg.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame p,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 268 of file qpeg.c.

◆ decode_flush()

static void decode_flush ( AVCodecContext avctx)
static

Definition at line 324 of file qpeg.c.

Referenced by decode_init().

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 338 of file qpeg.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 347 of file qpeg.c.

Variable Documentation

◆ qpeg_table_h

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

Referenced by qpeg_decode_inter().

◆ qpeg_table_w

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

Referenced by qpeg_decode_inter().

◆ ff_qpeg_decoder

const FFCodec ff_qpeg_decoder
Initial value:
= {
.p.name = "qpeg",
CODEC_LONG_NAME("Q-team QPEG"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(QpegContext),
.close = decode_end,
.flush = decode_flush,
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 362 of file qpeg.c.

FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:42
decode_flush
static void decode_flush(AVCodecContext *avctx)
Definition: qpeg.c:324
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: qpeg.c:268
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
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
decode_end
static av_cold int decode_end(AVCodecContext *avctx)
Definition: qpeg.c:338
AV_CODEC_ID_QPEG
@ AV_CODEC_ID_QPEG
Definition: codec_id.h:112
QpegContext
Definition: qpeg.c:32
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: qpeg.c:347
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201