FFmpeg
Loading...
Searching...
No Matches
avs.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "libavutil/attributes.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 32 of file avs.c.

◆ AvsVideoSubType

Enumerator
AVS_I_FRAME 
AVS_P_FRAME_3X3 
AVS_P_FRAME_2X2 
AVS_P_FRAME_2X3 

Definition at line 39 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 47 of file avs.c.

◆ avs_decode_init()

static av_cold int avs_decode_init ( AVCodecContext * avctx)
static

Definition at line 159 of file avs.c.

◆ avs_decode_end()

static av_cold int avs_decode_end ( AVCodecContext * avctx)
static

Definition at line 172 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,
}
#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_AVS
Definition codec_id.h:132
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int avs_decode_init(AVCodecContext *avctx)
Definition avs.c:159
static int avs_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition avs.c:47
static av_cold int avs_decode_end(AVCodecContext *avctx)
Definition avs.c:172

Definition at line 180 of file avs.c.