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 "filters.h"
#include "video.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 []
 
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 48 of file vf_iccgen.c.

◆ VF

Definition at line 49 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 87 of file vf_iccgen.c.

◆ iccgen_init()

static av_cold int iccgen_init ( AVFilterContext avctx)
static

Definition at line 94 of file vf_iccgen.c.

◆ iccgen_filter_frame()

static int iccgen_filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 100 of file vf_iccgen.c.

Variable Documentation

◆ iccgen_options

const AVOption iccgen_options[]
static

Definition at line 51 of file vf_iccgen.c.

◆ iccgen_inputs

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

Definition at line 157 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 165 of file vf_iccgen.c.

IccGenContext
Definition: vf_iccgen.c:35
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
iccgen_init
static av_cold int iccgen_init(AVFilterContext *avctx)
Definition: vf_iccgen.c:94
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
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
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
iccgen_uninit
static av_cold void iccgen_uninit(AVFilterContext *avctx)
Definition: vf_iccgen.c:87
uninit
static void uninit(AVBSFContext *ctx)
Definition: pcm_rechunk.c:68
iccgen_inputs
static const AVFilterPad iccgen_inputs[]
Definition: vf_iccgen.c:157
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:168
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:482
iccgen_filter_frame
static int iccgen_filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_iccgen.c:100