FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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,
  AVS_NONE = 0x00, 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 
AVS_NONE 
AVS_VIDEO 
AVS_AUDIO 
AVS_PALETTE 
AVS_GAME_DATA 

Definition at line 30 of file avs.c.

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

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

Definition at line 46 of file avs.c.

static av_cold int avs_decode_init ( AVCodecContext avctx)
static

Definition at line 158 of file avs.c.

static av_cold int avs_decode_end ( AVCodecContext avctx)
static

Definition at line 171 of file avs.c.

Variable Documentation

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,
}
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)
Definition: avs.c:46
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#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:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
Definition: avs.c:26
static av_cold int avs_decode_init(AVCodecContext *avctx)
Definition: avs.c:158
static av_cold int avs_decode_end(AVCodecContext *avctx)
Definition: avs.c:171
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:1002

Definition at line 179 of file avs.c.