FFmpeg
Loading...
Searching...
No Matches
kgv1dec.c File Reference

Kega Game Video decoder. More...

#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  KgvContext
 

Functions

static void decode_flush (AVCodecContext *avctx)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_kgv1_decoder
 

Detailed Description

Kega Game Video decoder.

Definition in file kgv1dec.c.

Function Documentation

◆ decode_flush()

static void decode_flush ( AVCodecContext * avctx)
static

Definition at line 40 of file kgv1dec.c.

Referenced by decode_end(), and decode_frame().

◆ decode_frame()

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

Definition at line 48 of file kgv1dec.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext * avctx)
static

Definition at line 167 of file kgv1dec.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext * avctx)
static

Definition at line 174 of file kgv1dec.c.

Variable Documentation

◆ ff_kgv1_decoder

const FFCodec ff_kgv1_decoder
Initial value:
= {
.p.name = "kgv1",
CODEC_LONG_NAME("Kega Game Video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(KgvContext),
.flush = decode_flush,
.p.capabilities = AV_CODEC_CAP_DR1,
}
static av_cold void decode_flush(AVCodecContext *avctx)
Definition agm.c:1253
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_KGV1
Definition codec_id.h:188
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int decode_init(AVCodecContext *avctx)
Definition 4xm.c:998
static av_cold int decode_end(AVCodecContext *avctx)
Definition 4xm.c:980
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition 4xm.c:837

Definition at line 180 of file kgv1dec.c.