FFmpeg
Data Structures | Macros | Functions | Variables
vf_colorchannelmixer.c File Reference
#include <float.h>
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "preserve_color.h"
#include "colorchannelmixer_template.c"

Go to the source code of this file.

Data Structures

struct  ThreadData
 Used for passing data between threads. More...
 
struct  ColorChannelMixerContext
 

Macros

#define R   0
 
#define G   1
 
#define B   2
 
#define A   3
 
#define DEPTH   8
 
#define DEPTH   16
 
#define DEPTH   32
 
#define OFFSET(x)   offsetof(ColorChannelMixerContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 

Functions

static float lerpf (float v0, float v1, float f)
 
static void preservel (float *r, float *g, float *b, float lin, float lout, float max)
 
 AVFILTER_DEFINE_CLASS (colorchannelmixer)
 
static int filter_slice_gbrp (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp9 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp10 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap10 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp12 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap12 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp14 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp9_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp10_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap10_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp12_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap12_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp14_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp16_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap16_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgba64 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgb48 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgba64_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgb48_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgba (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgb24 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgb0 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgba_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgb24_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_rgb0_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp32 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap32 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrp32_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int filter_slice_gbrap32_pl (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int config_output (AVFilterLink *outlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static int process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption colorchannelmixer_options []
 
static enum AVPixelFormat pix_fmts []
 
static const AVFilterPad colorchannelmixer_inputs []
 
static const AVFilterPad colorchannelmixer_outputs []
 
const AVFilter ff_vf_colorchannelmixer
 

Macro Definition Documentation

◆ R

#define R   0

Definition at line 32 of file vf_colorchannelmixer.c.

◆ G

#define G   1

Definition at line 33 of file vf_colorchannelmixer.c.

◆ B

#define B   2

Definition at line 34 of file vf_colorchannelmixer.c.

◆ A

#define A   3

Definition at line 35 of file vf_colorchannelmixer.c.

◆ DEPTH [1/3]

#define DEPTH   8

Definition at line 81 of file vf_colorchannelmixer.c.

◆ DEPTH [2/3]

#define DEPTH   16

Definition at line 81 of file vf_colorchannelmixer.c.

◆ DEPTH [3/3]

#define DEPTH   32

Definition at line 81 of file vf_colorchannelmixer.c.

◆ OFFSET

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

Definition at line 84 of file vf_colorchannelmixer.c.

◆ FLAGS

Definition at line 85 of file vf_colorchannelmixer.c.

Function Documentation

◆ lerpf()

static float lerpf ( float  v0,
float  v1,
float  f 
)
static

Definition at line 59 of file vf_colorchannelmixer.c.

◆ preservel()

static void preservel ( float r,
float g,
float b,
float  lin,
float  lout,
float  max 
)
static

Definition at line 64 of file vf_colorchannelmixer.c.

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( colorchannelmixer  )

◆ filter_slice_gbrp()

static int filter_slice_gbrp ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 136 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap()

static int filter_slice_gbrap ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 141 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp_pl()

static int filter_slice_gbrp_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 146 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap_pl()

static int filter_slice_gbrap_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 151 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp9()

static int filter_slice_gbrp9 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 156 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp10()

static int filter_slice_gbrp10 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 161 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap10()

static int filter_slice_gbrap10 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 166 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp12()

static int filter_slice_gbrp12 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 171 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap12()

static int filter_slice_gbrap12 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 176 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp14()

static int filter_slice_gbrp14 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 181 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp16()

static int filter_slice_gbrp16 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 186 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap16()

static int filter_slice_gbrap16 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 191 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp9_pl()

static int filter_slice_gbrp9_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 196 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp10_pl()

static int filter_slice_gbrp10_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 201 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap10_pl()

static int filter_slice_gbrap10_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 206 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp12_pl()

static int filter_slice_gbrp12_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 211 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap12_pl()

static int filter_slice_gbrap12_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 216 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp14_pl()

static int filter_slice_gbrp14_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 221 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp16_pl()

static int filter_slice_gbrp16_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 226 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap16_pl()

static int filter_slice_gbrap16_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 231 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgba64()

static int filter_slice_rgba64 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 236 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgb48()

static int filter_slice_rgb48 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 241 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgba64_pl()

static int filter_slice_rgba64_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 246 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgb48_pl()

static int filter_slice_rgb48_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 251 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgba()

static int filter_slice_rgba ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 256 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgb24()

static int filter_slice_rgb24 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 261 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgb0()

static int filter_slice_rgb0 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 266 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgba_pl()

static int filter_slice_rgba_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 271 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgb24_pl()

static int filter_slice_rgb24_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 276 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_rgb0_pl()

static int filter_slice_rgb0_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 281 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp32()

static int filter_slice_gbrp32 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 286 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap32()

static int filter_slice_gbrap32 ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 291 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrp32_pl()

static int filter_slice_gbrp32_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 296 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ filter_slice_gbrap32_pl()

static int filter_slice_gbrap32_pl ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 301 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 306 of file vf_colorchannelmixer.c.

Referenced by process_command().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 432 of file vf_colorchannelmixer.c.

◆ process_command()

static int process_command ( AVFilterContext ctx,
const char *  cmd,
const char *  args,
char *  res,
int  res_len,
int  flags 
)
static

Definition at line 462 of file vf_colorchannelmixer.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 473 of file vf_colorchannelmixer.c.

Variable Documentation

◆ colorchannelmixer_options

const AVOption colorchannelmixer_options[]
static
Initial value:
= {
{ "rr", "set the red gain for the red channel", OFFSET(rr), AV_OPT_TYPE_DOUBLE, {.dbl=1}, -2, 2, FLAGS },
{ "rg", "set the green gain for the red channel", OFFSET(rg), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "rb", "set the blue gain for the red channel", OFFSET(rb), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "ra", "set the alpha gain for the red channel", OFFSET(ra), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "gr", "set the red gain for the green channel", OFFSET(gr), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "gg", "set the green gain for the green channel", OFFSET(gg), AV_OPT_TYPE_DOUBLE, {.dbl=1}, -2, 2, FLAGS },
{ "gb", "set the blue gain for the green channel", OFFSET(gb), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "ga", "set the alpha gain for the green channel", OFFSET(ga), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "br", "set the red gain for the blue channel", OFFSET(br), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "bg", "set the green gain for the blue channel", OFFSET(bg), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "bb", "set the blue gain for the blue channel", OFFSET(bb), AV_OPT_TYPE_DOUBLE, {.dbl=1}, -2, 2, FLAGS },
{ "ba", "set the alpha gain for the blue channel", OFFSET(ba), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "ar", "set the red gain for the alpha channel", OFFSET(ar), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "ag", "set the green gain for the alpha channel", OFFSET(ag), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "ab", "set the blue gain for the alpha channel", OFFSET(ab), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -2, 2, FLAGS },
{ "aa", "set the alpha gain for the alpha channel", OFFSET(aa), AV_OPT_TYPE_DOUBLE, {.dbl=1}, -2, 2, FLAGS },
{ "pc", "set the preserve color mode", OFFSET(preserve_color), AV_OPT_TYPE_INT, {.i64=0}, 0, NB_PRESERVE-1, FLAGS, "preserve" },
{ "none", "disabled", 0, AV_OPT_TYPE_CONST, {.i64=P_NONE}, 0, 0, FLAGS, "preserve" },
{ "lum", "luminance", 0, AV_OPT_TYPE_CONST, {.i64=P_LUM}, 0, 0, FLAGS, "preserve" },
{ "max", "max", 0, AV_OPT_TYPE_CONST, {.i64=P_MAX}, 0, 0, FLAGS, "preserve" },
{ "avg", "average", 0, AV_OPT_TYPE_CONST, {.i64=P_AVG}, 0, 0, FLAGS, "preserve" },
{ "sum", "sum", 0, AV_OPT_TYPE_CONST, {.i64=P_SUM}, 0, 0, FLAGS, "preserve" },
{ "nrm", "norm", 0, AV_OPT_TYPE_CONST, {.i64=P_NRM}, 0, 0, FLAGS, "preserve" },
{ "pwr", "power", 0, AV_OPT_TYPE_CONST, {.i64=P_PWR}, 0, 0, FLAGS, "preserve" },
{ "pa", "set the preserve color amount", OFFSET(preserve_amount), AV_OPT_TYPE_DOUBLE, {.dbl=0}, 0, 1, FLAGS },
{ NULL }
}

Definition at line 87 of file vf_colorchannelmixer.c.

◆ pix_fmts

enum AVPixelFormat pix_fmts[]
static

◆ colorchannelmixer_inputs

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

Definition at line 480 of file vf_colorchannelmixer.c.

◆ colorchannelmixer_outputs

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

Definition at line 488 of file vf_colorchannelmixer.c.

◆ ff_vf_colorchannelmixer

const AVFilter ff_vf_colorchannelmixer
Initial value:
= {
.name = "colorchannelmixer",
.description = NULL_IF_CONFIG_SMALL("Adjust colors by mixing color channels."),
.priv_size = sizeof(ColorChannelMixerContext),
.priv_class = &colorchannelmixer_class,
.process_command = process_command,
}

Definition at line 496 of file vf_colorchannelmixer.c.

AV_PIX_FMT_GBRAP16
#define AV_PIX_FMT_GBRAP16
Definition: pixfmt.h:453
NB_PRESERVE
@ NB_PRESERVE
Definition: preserve_color.h:34
P_LUM
@ P_LUM
Definition: preserve_color.h:28
FILTER_PIXFMTS_ARRAY
#define FILTER_PIXFMTS_ARRAY(array)
Definition: internal.h:170
preserve_color
static void preserve_color(int preserve_color, float ir, float ig, float ib, float r, float g, float b, float max, float *icolor, float *ocolor)
Definition: preserve_color.h:53
P_NRM
@ P_NRM
Definition: preserve_color.h:32
AV_PIX_FMT_BGR24
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:69
AV_PIX_FMT_BGRA
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:95
P_SUM
@ P_SUM
Definition: preserve_color.h:31
ra
#define ra
Definition: regdef.h:57
AV_PIX_FMT_GBRP14
#define AV_PIX_FMT_GBRP14
Definition: pixfmt.h:449
AV_PIX_FMT_GBRAP
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
Definition: pixfmt.h:205
AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_GBRP10
Definition: pixfmt.h:447
P_MAX
@ P_MAX
Definition: preserve_color.h:29
AV_PIX_FMT_GBRAP10
#define AV_PIX_FMT_GBRAP10
Definition: pixfmt.h:451
AV_PIX_FMT_GBRAP12
#define AV_PIX_FMT_GBRAP12
Definition: pixfmt.h:452
FLAGS
#define FLAGS
Definition: vf_colorchannelmixer.c:85
AV_OPT_TYPE_DOUBLE
@ AV_OPT_TYPE_DOUBLE
Definition: opt.h:227
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:190
AV_PIX_FMT_RGBA
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:93
ColorChannelMixerContext
Definition: vf_colorchannelmixer.c:41
colorchannelmixer_outputs
static const AVFilterPad colorchannelmixer_outputs[]
Definition: vf_colorchannelmixer.c:488
AV_PIX_FMT_GBRP16
#define AV_PIX_FMT_GBRP16
Definition: pixfmt.h:450
AV_PIX_FMT_RGBA64
#define AV_PIX_FMT_RGBA64
Definition: pixfmt.h:421
AV_PIX_FMT_BGR48
#define AV_PIX_FMT_BGR48
Definition: pixfmt.h:422
NULL
#define NULL
Definition: coverity.c:32
AV_PIX_FMT_BGR0
@ AV_PIX_FMT_BGR0
packed BGR 8:8:8, 32bpp, BGRXBGRX... X=unused/undefined
Definition: pixfmt.h:230
AV_PIX_FMT_GBRP9
#define AV_PIX_FMT_GBRP9
Definition: pixfmt.h:446
AV_PIX_FMT_ABGR
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:94
AV_PIX_FMT_RGB24
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:68
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
P_NONE
@ P_NONE
Definition: preserve_color.h:27
AV_PIX_FMT_GBRPF32
#define AV_PIX_FMT_GBRPF32
Definition: pixfmt.h:460
AV_PIX_FMT_RGB48
#define AV_PIX_FMT_RGB48
Definition: pixfmt.h:417
AV_PIX_FMT_RGB0
@ AV_PIX_FMT_RGB0
packed RGB 8:8:8, 32bpp, RGBXRGBX... X=unused/undefined
Definition: pixfmt.h:228
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:152
AV_PIX_FMT_ARGB
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:92
AV_PIX_FMT_BGRA64
#define AV_PIX_FMT_BGRA64
Definition: pixfmt.h:426
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_colorchannelmixer.c:432
AV_PIX_FMT_GBRP12
#define AV_PIX_FMT_GBRP12
Definition: pixfmt.h:448
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_colorchannelmixer.c:473
AV_PIX_FMT_0BGR
@ AV_PIX_FMT_0BGR
packed BGR 8:8:8, 32bpp, XBGRXBGR... X=unused/undefined
Definition: pixfmt.h:229
P_PWR
@ P_PWR
Definition: preserve_color.h:33
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
AV_PIX_FMT_GBRAPF32
#define AV_PIX_FMT_GBRAPF32
Definition: pixfmt.h:461
P_AVG
@ P_AVG
Definition: preserve_color.h:30
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_colorchannelmixer.c:306
AV_PIX_FMT_GBRP
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
Definition: pixfmt.h:158
AVFILTER_FLAG_SLICE_THREADS
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:127
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
OFFSET
#define OFFSET(x)
Definition: vf_colorchannelmixer.c:84
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:191
AV_PIX_FMT_0RGB
@ AV_PIX_FMT_0RGB
packed RGB 8:8:8, 32bpp, XRGBXRGB... X=unused/undefined
Definition: pixfmt.h:227
process_command
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: vf_colorchannelmixer.c:462
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: vf_colorchannelmixer.c:118
colorchannelmixer_inputs
static const AVFilterPad colorchannelmixer_inputs[]
Definition: vf_colorchannelmixer.c:480
AV_OPT_TYPE_CONST
@ AV_OPT_TYPE_CONST
Definition: opt.h:234