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 "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 31 of file vf_colorchannelmixer.c.

◆ G

#define G   1

Definition at line 32 of file vf_colorchannelmixer.c.

◆ B

#define B   2

Definition at line 33 of file vf_colorchannelmixer.c.

◆ A

#define A   3

Definition at line 34 of file vf_colorchannelmixer.c.

◆ DEPTH [1/3]

#define DEPTH   8

Definition at line 80 of file vf_colorchannelmixer.c.

◆ DEPTH [2/3]

#define DEPTH   16

Definition at line 80 of file vf_colorchannelmixer.c.

◆ DEPTH [3/3]

#define DEPTH   32

Definition at line 80 of file vf_colorchannelmixer.c.

◆ OFFSET

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

Definition at line 83 of file vf_colorchannelmixer.c.

◆ FLAGS

Definition at line 84 of file vf_colorchannelmixer.c.

Function Documentation

◆ lerpf()

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

Definition at line 58 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 63 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 135 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 140 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 145 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 150 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 155 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 160 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 165 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 170 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 175 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 180 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 185 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 190 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 195 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 200 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 205 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 210 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 215 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 220 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 225 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 230 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 235 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 240 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 245 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 250 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 255 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 260 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 265 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 270 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 275 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 280 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 285 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 290 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 295 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 300 of file vf_colorchannelmixer.c.

Referenced by config_output().

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 305 of file vf_colorchannelmixer.c.

Referenced by process_command().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 431 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 461 of file vf_colorchannelmixer.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 472 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, .unit = "preserve" },
{ "none", "disabled", 0, AV_OPT_TYPE_CONST, {.i64=P_NONE}, 0, 0, FLAGS, .unit = "preserve" },
{ "lum", "luminance", 0, AV_OPT_TYPE_CONST, {.i64=P_LUM}, 0, 0, FLAGS, .unit = "preserve" },
{ "max", "max", 0, AV_OPT_TYPE_CONST, {.i64=P_MAX}, 0, 0, FLAGS, .unit = "preserve" },
{ "avg", "average", 0, AV_OPT_TYPE_CONST, {.i64=P_AVG}, 0, 0, FLAGS, .unit = "preserve" },
{ "sum", "sum", 0, AV_OPT_TYPE_CONST, {.i64=P_SUM}, 0, 0, FLAGS, .unit = "preserve" },
{ "nrm", "norm", 0, AV_OPT_TYPE_CONST, {.i64=P_NRM}, 0, 0, FLAGS, .unit = "preserve" },
{ "pwr", "power", 0, AV_OPT_TYPE_CONST, {.i64=P_PWR}, 0, 0, FLAGS, .unit = "preserve" },
{ "pa", "set the preserve color amount", OFFSET(preserve_amount), AV_OPT_TYPE_DOUBLE, {.dbl=0}, 0, 1, FLAGS },
{ NULL }
}

Definition at line 86 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 479 of file vf_colorchannelmixer.c.

◆ colorchannelmixer_outputs

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

Definition at line 487 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 495 of file vf_colorchannelmixer.c.

AV_PIX_FMT_GBRAP16
#define AV_PIX_FMT_GBRAP16
Definition: pixfmt.h:501
P_AVG
@ P_AVG
Definition: preserve_color.h:30
FILTER_PIXFMTS_ARRAY
#define FILTER_PIXFMTS_ARRAY(array)
Definition: internal.h:162
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
AV_PIX_FMT_BGR24
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:76
AV_PIX_FMT_BGRA
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:102
P_MAX
@ P_MAX
Definition: preserve_color.h:29
ra
#define ra
Definition: regdef.h:57
P_PWR
@ P_PWR
Definition: preserve_color.h:33
AV_PIX_FMT_GBRP14
#define AV_PIX_FMT_GBRP14
Definition: pixfmt.h:496
AV_PIX_FMT_GBRAP
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
Definition: pixfmt.h:212
AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_GBRP10
Definition: pixfmt.h:494
P_NONE
@ P_NONE
Definition: preserve_color.h:27
AV_PIX_FMT_GBRAP10
#define AV_PIX_FMT_GBRAP10
Definition: pixfmt.h:498
AV_PIX_FMT_GBRAP12
#define AV_PIX_FMT_GBRAP12
Definition: pixfmt.h:499
FLAGS
#define FLAGS
Definition: vf_colorchannelmixer.c:84
AV_OPT_TYPE_DOUBLE
@ AV_OPT_TYPE_DOUBLE
Definition: opt.h:237
P_LUM
@ P_LUM
Definition: preserve_color.h:28
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:182
AV_PIX_FMT_RGBA
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:100
ColorChannelMixerContext
Definition: vf_colorchannelmixer.c:40
colorchannelmixer_outputs
static const AVFilterPad colorchannelmixer_outputs[]
Definition: vf_colorchannelmixer.c:487
AV_PIX_FMT_GBRP16
#define AV_PIX_FMT_GBRP16
Definition: pixfmt.h:497
AV_PIX_FMT_RGBA64
#define AV_PIX_FMT_RGBA64
Definition: pixfmt.h:468
AV_PIX_FMT_BGR48
#define AV_PIX_FMT_BGR48
Definition: pixfmt.h:469
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:265
AV_PIX_FMT_GBRP9
#define AV_PIX_FMT_GBRP9
Definition: pixfmt.h:493
AV_PIX_FMT_ABGR
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:101
AV_PIX_FMT_RGB24
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:75
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
AV_PIX_FMT_GBRPF32
#define AV_PIX_FMT_GBRPF32
Definition: pixfmt.h:508
AV_PIX_FMT_RGB48
#define AV_PIX_FMT_RGB48
Definition: pixfmt.h:464
AV_PIX_FMT_RGB0
@ AV_PIX_FMT_RGB0
packed RGB 8:8:8, 32bpp, RGBXRGBX... X=unused/undefined
Definition: pixfmt.h:263
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:147
AV_PIX_FMT_ARGB
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:99
AV_PIX_FMT_BGRA64
#define AV_PIX_FMT_BGRA64
Definition: pixfmt.h:473
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_colorchannelmixer.c:431
AV_PIX_FMT_GBRP12
#define AV_PIX_FMT_GBRP12
Definition: pixfmt.h:495
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_colorchannelmixer.c:472
AV_PIX_FMT_0BGR
@ AV_PIX_FMT_0BGR
packed BGR 8:8:8, 32bpp, XBGRXBGR... X=unused/undefined
Definition: pixfmt.h:264
P_SUM
@ P_SUM
Definition: preserve_color.h:31
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:235
AV_PIX_FMT_GBRAPF32
#define AV_PIX_FMT_GBRAPF32
Definition: pixfmt.h:509
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_colorchannelmixer.c:305
AV_PIX_FMT_GBRP
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
Definition: pixfmt.h:165
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:117
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
OFFSET
#define OFFSET(x)
Definition: vf_colorchannelmixer.c:83
P_NRM
@ P_NRM
Definition: preserve_color.h:32
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:183
AV_PIX_FMT_0RGB
@ AV_PIX_FMT_0RGB
packed RGB 8:8:8, 32bpp, XRGBXRGB... X=unused/undefined
Definition: pixfmt.h:262
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:461
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: vf_colorchannelmixer.c:117
colorchannelmixer_inputs
static const AVFilterPad colorchannelmixer_inputs[]
Definition: vf_colorchannelmixer.c:479
NB_PRESERVE
@ NB_PRESERVE
Definition: preserve_color.h:34
AV_OPT_TYPE_CONST
@ AV_OPT_TYPE_CONST
Definition: opt.h:244