FFmpeg
Data Structures | Enumerations | Functions | Variables
avs.c File Reference
#include "avcodec.h"
#include "get_bits.h"
#include "internal.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, void *data, 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 AVCodec ff_avs_decoder
 

Enumeration Type Documentation

◆ AvsBlockType

Enumerator
AVS_VIDEO 
AVS_AUDIO 
AVS_PALETTE 
AVS_GAME_DATA 

Definition at line 30 of file avs.c.

◆ AvsVideoSubType

Enumerator
AVS_I_FRAME 
AVS_P_FRAME_3X3 
AVS_P_FRAME_2X2 
AVS_P_FRAME_2X3 

Definition at line 37 of file avs.c.

Function Documentation

◆ avs_decode_frame()

static int avs_decode_frame ( AVCodecContext avctx,
void *  data,
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 158 of file avs.c.

◆ avs_decode_end()

static av_cold int avs_decode_end ( AVCodecContext avctx)
static

Definition at line 171 of file avs.c.

Variable Documentation

◆ ff_avs_decoder

const AVCodec ff_avs_decoder
Initial value:
= {
.name = "avs",
.long_name = NULL_IF_CONFIG_SMALL("AVS (Audio Video Standard) video"),
.priv_data_size = sizeof(AvsContext),
.close = avs_decode_end,
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 179 of file avs.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
avs_decode_end
static av_cold int avs_decode_end(AVCodecContext *avctx)
Definition: avs.c:171
avs_decode_init
static av_cold int avs_decode_init(AVCodecContext *avctx)
Definition: avs.c:158
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
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
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:117
AvsContext
Definition: avs.c:26
AV_CODEC_ID_AVS
@ AV_CODEC_ID_AVS
Definition: codec_id.h:132
avs_decode_frame
static int avs_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: avs.c:46
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201