libavcodec/avs.c File Reference
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
Include dependency graph for libavcodec/avs.c:

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

AVCodec ff_avs_decoder
 

Enumeration Type Documentation

Enumerator
AVS_VIDEO 
AVS_AUDIO 
AVS_PALETTE 
AVS_GAME_DATA 

Definition at line 31 of file libavcodec/avs.c.

Enumerator
AVS_I_FRAME 
AVS_P_FRAME_3X3 
AVS_P_FRAME_2X2 
AVS_P_FRAME_2X3 

Definition at line 38 of file libavcodec/avs.c.

Function Documentation

static av_cold int avs_decode_end ( AVCodecContext avctx)
static

Definition at line 168 of file libavcodec/avs.c.

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

Definition at line 47 of file libavcodec/avs.c.

static av_cold int avs_decode_init ( AVCodecContext avctx)
static

Definition at line 159 of file libavcodec/avs.c.

Variable Documentation

AVCodec ff_avs_decoder
Initial value:
= {
.name = "avs",
.priv_data_size = sizeof(AvsContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("AVS (Audio Video Standard) video"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int avs_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static av_cold int avs_decode_init(AVCodecContext *avctx)
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
static av_cold int avs_decode_end(AVCodecContext *avctx)

Definition at line 176 of file libavcodec/avs.c.