#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (colorbalance) |
|
static int | query_formats (AVFilterContext *ctx) |
|
static float | get_component (float v, float l, float s, float m, float h) |
|
static float | hfun (float n, float h, float s, float l) |
|
static void | preservel (float *r, float *g, float *b, float l) |
|
static int | color_balance8_p (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | color_balance16_p (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | color_balance8 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | color_balance16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | config_output (AVFilterLink *outlink) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
|
◆ OFFSET
◆ FLAGS
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
colorbalance |
| ) |
|
◆ query_formats()
◆ get_component()
static float get_component |
( |
float |
v, |
|
|
float |
l, |
|
|
float |
s, |
|
|
float |
m, |
|
|
float |
h |
|
) |
| |
|
static |
◆ hfun()
static float hfun |
( |
float |
n, |
|
|
float |
h, |
|
|
float |
s, |
|
|
float |
l |
|
) |
| |
|
static |
◆ preservel()
static void preservel |
( |
float * |
r, |
|
|
float * |
g, |
|
|
float * |
b, |
|
|
float |
l |
|
) |
| |
|
static |
◆ color_balance8_p()
◆ color_balance16_p()
◆ color_balance8()
◆ color_balance16()
◆ config_output()
◆ filter_frame()
◆ colorbalance_options
◆ colorbalance_inputs
◆ colorbalance_outputs
◆ ff_vf_colorbalance
Initial value:= {
.name = "colorbalance",
.priv_class = &colorbalance_class,
}
Definition at line 442 of file vf_colorbalance.c.
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
static const AVFilterPad colorbalance_outputs[]
static const AVFilterPad colorbalance_inputs[]
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad outputs[]
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options.
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
static int config_output(AVFilterLink *outlink)
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
#define flags(name, subs,...)