FFmpeg
Functions | Variables
xl.c File Reference
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Functions

static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 

Variables

static const int xl_table [32]
 
const AVCodec ff_xl_decoder
 

Detailed Description

Miro VideoXL codec.

Definition in file xl.c.

Function Documentation

◆ decode_frame()

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

Definition at line 39 of file xl.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 123 of file xl.c.

Variable Documentation

◆ xl_table

const int xl_table[32]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 12, 15, 20, 25, 34, 46,
64, 82, 94, 103, 108, 113, 116, 119,
120, 121, 122, 123, 124, 125, 126, 127
}

Definition at line 32 of file xl.c.

Referenced by decode_frame().

◆ ff_xl_decoder

const AVCodec ff_xl_decoder
Initial value:
= {
.name = "xl",
.long_name = NULL_IF_CONFIG_SMALL("Miro VideoXL"),
.init = decode_init,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 130 of file xl.c.

decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: xl.c:123
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:41
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: xl.c:39
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
AV_CODEC_ID_VIXL
@ AV_CODEC_ID_VIXL
Definition: codec_id.h:108
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201