FFmpeg
Data Structures | Functions | Variables
qpeg.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "internal.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, void *data, 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 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.

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

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 264 of file qpeg.c.

◆ decode_flush()

static void decode_flush ( AVCodecContext avctx)
static

Definition at line 318 of file qpeg.c.

Referenced by decode_init().

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 330 of file qpeg.c.

Referenced by decode_init().

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 340 of file qpeg.c.

Variable Documentation

◆ qpeg_table_h

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

Referenced by qpeg_decode_inter().

◆ qpeg_table_w

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

Referenced by qpeg_decode_inter().

◆ ff_qpeg_decoder

AVCodec ff_qpeg_decoder
Initial value:
= {
.name = "qpeg",
.long_name = NULL_IF_CONFIG_SMALL("Q-team QPEG"),
.priv_data_size = sizeof(QpegContext),
.close = decode_end,
.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 358 of file qpeg.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
decode_flush
static void decode_flush(AVCodecContext *avctx)
Definition: qpeg.c:318
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
flush
static void flush(AVCodecContext *avctx)
Definition: aacdec_template.c:500
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:981
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
decode_end
static av_cold int decode_end(AVCodecContext *avctx)
Definition: qpeg.c:330
AV_CODEC_ID_QPEG
@ AV_CODEC_ID_QPEG
Definition: avcodec.h:278
QpegContext
Definition: qpeg.c:31
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: qpeg.c:340
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: qpeg.c:264
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201