FFmpeg
Data Structures | Enumerations | Functions | Variables
avs.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  AvsContext
 

Enumerations

enum  AvsBlockType { AVS_VIDEO = 0x01, AVS_AUDIO = 0x02, AVS_PALETTE = 0x03, AVS_GAME_DATA = 0x04 }
 
enum  AvsVideoSubType { AVS_I_FRAME = 0x00, AVS_P_FRAME_3X3 = 0x01, AVS_P_FRAME_2X2 = 0x02, AVS_P_FRAME_2X3 = 0x03 }
 

Functions

static int avs_decode_frame (AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
 
static av_cold int avs_decode_init (AVCodecContext *avctx)
 
static av_cold int avs_decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_avs_decoder
 

Enumeration Type Documentation

◆ AvsBlockType

Enumerator
AVS_VIDEO 
AVS_AUDIO 
AVS_PALETTE 
AVS_GAME_DATA 

Definition at line 31 of file avs.c.

◆ AvsVideoSubType

Enumerator
AVS_I_FRAME 
AVS_P_FRAME_3X3 
AVS_P_FRAME_2X2 
AVS_P_FRAME_2X3 

Definition at line 38 of file avs.c.

Function Documentation

◆ avs_decode_frame()

static int avs_decode_frame ( AVCodecContext avctx,
AVFrame picture,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 46 of file avs.c.

◆ avs_decode_init()

static av_cold int avs_decode_init ( AVCodecContext avctx)
static

Definition at line 157 of file avs.c.

◆ avs_decode_end()

static av_cold int avs_decode_end ( AVCodecContext avctx)
static

Definition at line 170 of file avs.c.

Variable Documentation

◆ ff_avs_decoder

const FFCodec ff_avs_decoder
Initial value:
= {
.p.name = "avs",
CODEC_LONG_NAME("AVS (Audio Video Standard) video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_AVS,
.priv_data_size = sizeof(AvsContext),
.close = avs_decode_end,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 178 of file avs.c.

avs_decode_end
static av_cold int avs_decode_end(AVCodecContext *avctx)
Definition: avs.c:170
avs_decode_init
static av_cold int avs_decode_init(AVCodecContext *avctx)
Definition: avs.c:157
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
avs_decode_frame
static int avs_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition: avs.c:46
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:366
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
AvsContext
Definition: avs.c:27
AV_CODEC_ID_AVS
@ AV_CODEC_ID_AVS
Definition: codec_id.h:134
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201