FFmpeg
Data Structures | Functions | Variables
vf_lcevc.c File Reference
#include <stdint.h>
#include <LCEVC/lcevc_dec.h>
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "filters.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  LCEVCContext
 

Functions

static LCEVC_ColorFormat map_format (int format)
 
static LCEVC_ColorRange map_range (int range)
 
static enum AVColorRange map_av_range (int range)
 
static int alloc_base_frame (AVFilterLink *inlink, const AVFrame *in, LCEVC_PictureHandle *picture)
 
static int send_frame (AVFilterLink *inlink, AVFrame *in)
 
static int alloc_enhanced_frame (AVFilterLink *inlink, const AVFrame *out, LCEVC_PictureHandle *picture)
 
static int generate_output (AVFilterLink *inlink, AVFrame *out)
 
static int receive_frame (AVFilterLink *inlink, AVFrame *out)
 
static int config_props (AVFilterLink *outlink)
 
static void flush_bases (AVFilterContext *ctx)
 
static int activate (AVFilterContext *ctx)
 
static void log_callback (LCEVC_DecoderHandle dec, LCEVC_Event event, LCEVC_PictureHandle pic, const LCEVC_DecodeInformation *info, const uint8_t *data, uint32_t size, void *logctx)
 
static av_cold int init (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVFilterPad lcevc_outputs []
 
static enum AVPixelFormat pix_fmts []
 
const AVFilter ff_vf_lcevc
 

Function Documentation

◆ map_format()

static LCEVC_ColorFormat map_format ( int  format)
static

Definition at line 35 of file vf_lcevc.c.

Referenced by alloc_base_frame(), and alloc_enhanced_frame().

◆ map_range()

static LCEVC_ColorRange map_range ( int  range)
inlinestatic

Definition at line 55 of file vf_lcevc.c.

Referenced by alloc_base_frame(), and generate_output().

◆ map_av_range()

static enum AVColorRange map_av_range ( int  range)
inlinestatic

Definition at line 67 of file vf_lcevc.c.

◆ alloc_base_frame()

static int alloc_base_frame ( AVFilterLink inlink,
const AVFrame in,
LCEVC_PictureHandle *  picture 
)
static

Definition at line 79 of file vf_lcevc.c.

Referenced by send_frame().

◆ send_frame()

static int send_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 128 of file vf_lcevc.c.

Referenced by activate().

◆ alloc_enhanced_frame()

static int alloc_enhanced_frame ( AVFilterLink inlink,
const AVFrame out,
LCEVC_PictureHandle *  picture 
)
static

Definition at line 161 of file vf_lcevc.c.

Referenced by receive_frame().

◆ generate_output()

static int generate_output ( AVFilterLink inlink,
AVFrame out 
)
static

Definition at line 189 of file vf_lcevc.c.

Referenced by receive_frame().

◆ receive_frame()

static int receive_frame ( AVFilterLink inlink,
AVFrame out 
)
static

Definition at line 248 of file vf_lcevc.c.

Referenced by activate(), and main().

◆ config_props()

static int config_props ( AVFilterLink outlink)
static

Definition at line 269 of file vf_lcevc.c.

Referenced by activate().

◆ flush_bases()

static void flush_bases ( AVFilterContext ctx)
static

Definition at line 282 of file vf_lcevc.c.

Referenced by activate().

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 291 of file vf_lcevc.c.

◆ log_callback()

static void log_callback ( LCEVC_DecoderHandle  dec,
LCEVC_Event  event,
LCEVC_PictureHandle  pic,
const LCEVC_DecodeInformation *  info,
const uint8_t *  data,
uint32_t  size,
void *  logctx 
)
static

Definition at line 347 of file vf_lcevc.c.

Referenced by init().

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 360 of file vf_lcevc.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 398 of file vf_lcevc.c.

Variable Documentation

◆ lcevc_outputs

const AVFilterPad lcevc_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_props,
},
}

Definition at line 405 of file vf_lcevc.c.

◆ pix_fmts

enum AVPixelFormat pix_fmts[]
static

◆ ff_vf_lcevc

const AVFilter ff_vf_lcevc
Initial value:
= {
.name = "lcevc",
.description = NULL_IF_CONFIG_SMALL("LCEVC"),
.activate = activate,
.priv_size = sizeof(LCEVCContext),
.init = init,
}

Definition at line 420 of file vf_lcevc.c.

config_props
static int config_props(AVFilterLink *outlink)
Definition: vf_lcevc.c:269
FILTER_PIXFMTS_ARRAY
#define FILTER_PIXFMTS_ARRAY(array)
Definition: filters.h:242
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_lcevc.c:398
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
AV_PIX_FMT_GRAY10LE
@ AV_PIX_FMT_GRAY10LE
Y , 10bpp, little-endian.
Definition: pixfmt.h:321
lcevc_outputs
static const AVFilterPad lcevc_outputs[]
Definition: vf_lcevc.c:405
AV_PIX_FMT_YUV420P10LE
@ AV_PIX_FMT_YUV420P10LE
planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
Definition: pixfmt.h:156
ff_video_default_filterpad
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition: video.c:37
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_lcevc.c:360
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:73
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
activate
static int activate(AVFilterContext *ctx)
Definition: vf_lcevc.c:291
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: vf_lcevc.c:413
AV_PIX_FMT_GRAY8
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
Definition: pixfmt.h:81
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:94
LCEVCContext
Definition: vf_lcevc.c:30
AV_PIX_FMT_NV21
@ AV_PIX_FMT_NV21
as above, but U and V bytes are swapped
Definition: pixfmt.h:97
AV_PIX_FMT_NV12
@ AV_PIX_FMT_NV12
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
Definition: pixfmt.h:96
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201