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

Go to the source code of this file.

Functions

static int decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 

Variables

static const int xl_table [32]
 
const FFCodec ff_xl_decoder
 

Detailed Description

Miro VideoXL codec.

Definition in file xl.c.

Function Documentation

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame p,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 40 of file xl.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 122 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 33 of file xl.c.

Referenced by decode_frame().

◆ ff_xl_decoder

const FFCodec ff_xl_decoder
Initial value:
= {
.p.name = "xl",
CODEC_LONG_NAME("Miro VideoXL"),
.p.type = AVMEDIA_TYPE_VIDEO,
.init = decode_init,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 129 of file xl.c.

decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: xl.c:122
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:306
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
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
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: xl.c:40
AV_CODEC_ID_VIXL
@ AV_CODEC_ID_VIXL
Definition: codec_id.h:111
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201