FFmpeg
Data Structures | Macros | Functions | Variables
vf_iccgen.c File Reference
#include <lcms2.h>
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "fflcms2.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  IccGenContext
 

Macros

#define OFFSET(x)   offsetof(IccGenContext, x)
 
#define VF   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (iccgen)
 
static av_cold void iccgen_uninit (AVFilterContext *avctx)
 
static av_cold int iccgen_init (AVFilterContext *avctx)
 
static int iccgen_filter_frame (AVFilterLink *inlink, AVFrame *frame)
 

Variables

static const AVOption iccgen_options []
 
static const AVFilterPad iccgen_inputs []
 
static const AVFilterPad iccgen_outputs []
 
const AVFilter ff_vf_iccgen
 

Detailed Description

filter for generating ICC profiles

Definition in file vf_iccgen.c.

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(IccGenContext, x)

Definition at line 47 of file vf_iccgen.c.

◆ VF

Definition at line 48 of file vf_iccgen.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( iccgen  )

◆ iccgen_uninit()

static av_cold void iccgen_uninit ( AVFilterContext avctx)
static

Definition at line 86 of file vf_iccgen.c.

◆ iccgen_init()

static av_cold int iccgen_init ( AVFilterContext avctx)
static

Definition at line 93 of file vf_iccgen.c.

◆ iccgen_filter_frame()

static int iccgen_filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 99 of file vf_iccgen.c.

Variable Documentation

◆ iccgen_options

const AVOption iccgen_options[]
static

Definition at line 50 of file vf_iccgen.c.

◆ iccgen_inputs

const AVFilterPad iccgen_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = iccgen_filter_frame,
},
}

Definition at line 156 of file vf_iccgen.c.

◆ iccgen_outputs

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

Definition at line 164 of file vf_iccgen.c.

◆ ff_vf_iccgen

const AVFilter ff_vf_iccgen
Initial value:
= {
.name = "iccgen",
.description = NULL_IF_CONFIG_SMALL("Generate and attach ICC profiles."),
.priv_size = sizeof(IccGenContext),
.priv_class = &iccgen_class,
}

Definition at line 171 of file vf_iccgen.c.

IccGenContext
Definition: vf_iccgen.c:34
iccgen_init
static av_cold int iccgen_init(AVFilterContext *avctx)
Definition: vf_iccgen.c:93
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:194
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:115
iccgen_uninit
static av_cold void iccgen_uninit(AVFilterContext *avctx)
Definition: vf_iccgen.c:86
iccgen_outputs
static const AVFilterPad iccgen_outputs[]
Definition: vf_iccgen.c:164
iccgen_inputs
static const AVFilterPad iccgen_inputs[]
Definition: vf_iccgen.c:156
AVFILTER_FLAG_METADATA_ONLY
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
Definition: avfilter.h:133
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:195
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
uninit
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:285
iccgen_filter_frame
static int iccgen_filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_iccgen.c:99