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"
#include "video.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 []
 
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 46 of file vf_iccdetect.c.

◆ VF

Definition at line 47 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 56 of file vf_iccdetect.c.

◆ iccdetect_init()

static av_cold int iccdetect_init ( AVFilterContext avctx)
static

Definition at line 63 of file vf_iccdetect.c.

◆ iccdetect_filter_frame()

static int iccdetect_filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

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

◆ iccdetect_inputs

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

Definition at line 121 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 129 of file vf_iccdetect.c.

iccdetect_filter_frame
static int iccdetect_filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_iccdetect.c:69
OFFSET
#define OFFSET(x)
Definition: vf_iccdetect.c:46
iccdetect_inputs
static const AVFilterPad iccdetect_inputs[]
Definition: vf_iccdetect.c:121
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
VF
#define VF
Definition: vf_iccdetect.c:47
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:182
NULL
#define NULL
Definition: coverity.c:32
iccdetect_uninit
static av_cold void iccdetect_uninit(AVFilterContext *avctx)
Definition: vf_iccdetect.c:56
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
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:106
uninit
static void uninit(AVBSFContext *ctx)
Definition: pcm_rechunk.c:68
IccDetectContext
Definition: vf_iccdetect.c:36
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
iccdetect_init
static av_cold int iccdetect_init(AVFilterContext *avctx)
Definition: vf_iccdetect.c:63
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:251
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:183
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:474