FFmpeg
Data Structures | Macros | Functions | Variables
vf_iccdetect.c File Reference
#include <lcms2.h>
#include "libavutil/csp.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  IccDetectContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (iccdetect)
 
static av_cold void iccdetect_uninit (AVFilterContext *avctx)
 
static av_cold int iccdetect_init (AVFilterContext *avctx)
 
static int iccdetect_filter_frame (AVFilterLink *inlink, AVFrame *frame)
 

Variables

static const AVOption iccdetect_options []
 
static const AVFilterPad iccdetect_inputs []
 
static const AVFilterPad iccdetect_outputs []
 
const AVFilter ff_vf_iccdetect
 

Detailed Description

filter for generating ICC profiles

Definition in file vf_iccdetect.c.

Macro Definition Documentation

◆ OFFSET

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

Definition at line 45 of file vf_iccdetect.c.

◆ VF

Definition at line 46 of file vf_iccdetect.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( iccdetect  )

◆ iccdetect_uninit()

static av_cold void iccdetect_uninit ( AVFilterContext avctx)
static

Definition at line 55 of file vf_iccdetect.c.

◆ iccdetect_init()

static av_cold int iccdetect_init ( AVFilterContext avctx)
static

Definition at line 62 of file vf_iccdetect.c.

◆ iccdetect_filter_frame()

static int iccdetect_filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 68 of file vf_iccdetect.c.

Variable Documentation

◆ iccdetect_options

const AVOption iccdetect_options[]
static
Initial value:
= {
{ "force", "overwrite existing tags", OFFSET(force), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, VF },
{ NULL }
}

Definition at line 48 of file vf_iccdetect.c.

◆ iccdetect_inputs

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

Definition at line 118 of file vf_iccdetect.c.

◆ iccdetect_outputs

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

Definition at line 126 of file vf_iccdetect.c.

◆ ff_vf_iccdetect

const AVFilter ff_vf_iccdetect
Initial value:
= {
.name = "iccdetect",
.description = NULL_IF_CONFIG_SMALL("Detect and parse ICC profiles."),
.priv_size = sizeof(IccDetectContext),
.priv_class = &iccdetect_class,
}

Definition at line 133 of file vf_iccdetect.c.

iccdetect_filter_frame
static int iccdetect_filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_iccdetect.c:68
OFFSET
#define OFFSET(x)
Definition: vf_iccdetect.c:45
iccdetect_inputs
static const AVFilterPad iccdetect_inputs[]
Definition: vf_iccdetect.c:118
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:363
VF
#define VF
Definition: vf_iccdetect.c:46
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:190
NULL
#define NULL
Definition: coverity.c:32
iccdetect_uninit
static av_cold void iccdetect_uninit(AVFilterContext *avctx)
Definition: vf_iccdetect.c:55
iccdetect_outputs
static const AVFilterPad iccdetect_outputs[]
Definition: vf_iccdetect.c:126
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
IccDetectContext
Definition: vf_iccdetect.c:35
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:143
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
iccdetect_init
static av_cold int iccdetect_init(AVFilterContext *avctx)
Definition: vf_iccdetect.c:62
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:244
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:191
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
uninit
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:285