FFmpeg
|
#include "libavfilter/internal.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "vf_eq.h"
Go to the source code of this file.
Macros | |
#define | SET_PARAM(param_name, set_fn_name) if (!strcmp(cmd, #param_name)) return set_param(&eq->param_name##_pexpr, args, cmd, set_##set_fn_name, ctx); |
#define | OFFSET(x) offsetof(EQContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
Functions | |
static void | create_lut (EQParameters *param) |
static void | apply_lut (EQParameters *param, uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int w, int h) |
static void | process_c (EQParameters *param, uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int w, int h) |
static void | check_values (EQParameters *param, EQContext *eq) |
static void | set_contrast (EQContext *eq) |
static void | set_brightness (EQContext *eq) |
static void | set_gamma (EQContext *eq) |
static void | set_saturation (EQContext *eq) |
static int | set_expr (AVExpr **pexpr, const char *expr, const char *option, void *log_ctx) |
void | ff_eq_init (EQContext *eq) |
static int | initialize (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | set_param (AVExpr **pexpr, const char *args, const char *cmd, void(*set_fn)(EQContext *eq), AVFilterContext *ctx) |
static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
AVFILTER_DEFINE_CLASS (eq) | |
Variables | |
static enum AVPixelFormat | pixel_fmts_eq [] |
static const AVFilterPad | eq_inputs [] |
static const AVFilterPad | eq_outputs [] |
static const AVOption | eq_options [] |
const AVFilter | ff_vf_eq |
very simple video equalizer
Definition in file vf_eq.c.
#define SET_PARAM | ( | param_name, | |
set_fn_name | |||
) | if (!strcmp(cmd, #param_name)) return set_param(&eq->param_name##_pexpr, args, cmd, set_##set_fn_name, ctx); |
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
|
static |
Definition at line 37 of file vf_eq.c.
Referenced by apply_lut().
|
static |
Definition at line 62 of file vf_eq.c.
Referenced by check_values().
|
static |
Definition at line 77 of file vf_eq.c.
Referenced by ff_eq_init().
|
static |
Definition at line 97 of file vf_eq.c.
Referenced by set_brightness(), set_contrast(), set_gamma(), and set_saturation().
|
static |
Definition at line 107 of file vf_eq.c.
Referenced by filter_frame(), and initialize().
|
static |
Definition at line 115 of file vf_eq.c.
Referenced by filter_frame(), and initialize().
|
static |
Definition at line 123 of file vf_eq.c.
Referenced by filter_frame(), and initialize().
|
static |
Definition at line 144 of file vf_eq.c.
Referenced by filter_frame(), and initialize().
|
static |
Definition at line 157 of file vf_eq.c.
Referenced by initialize(), and set_param().
void ff_eq_init | ( | EQContext * | eq | ) |
Definition at line 177 of file vf_eq.c.
Referenced by check_eq(), and initialize().
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
AVFILTER_DEFINE_CLASS | ( | eq | ) |
|
static |
|
static |
|
static |
|
static |
const AVFilter ff_vf_eq |