FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/file.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | process_range |
struct | ThreadData |
struct | SelectiveColorContext |
Macros | |
#define | OFFSET(x) offsetof(SelectiveColorContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | RANGE_OPTION(color_name, range) { color_name"s", "adjust "color_name" regions", OFFSET(opt_cmyk_adjust[range]), AV_OPT_TYPE_STRING, {.str=NULL}, CHAR_MIN, CHAR_MAX, FLAGS } |
#define | READ16(dst) |
#define | DEF_SELECTIVE_COLOR_FUNC(name, direct, correction_method) |
Typedefs | |
typedef int(* | get_adjust_range_func )(int r, int g, int b, int min_val, int max_val) |
typedef int(* | selective_color_func_type )(AVFilterContext *ctx, void *td, int jobnr, int nb_jobs) |
Enumerations | |
enum | color_range { RANGE_REDS, RANGE_YELLOWS, RANGE_GREENS, RANGE_CYANS, RANGE_BLUES, RANGE_MAGENTAS, RANGE_WHITES, RANGE_NEUTRALS, RANGE_BLACKS, NB_RANGES } |
enum | correction_method { CORRECTION_METHOD_ABSOLUTE, CORRECTION_METHOD_RELATIVE, NB_CORRECTION_METHODS } |
Functions | |
AVFILTER_DEFINE_CLASS (selectivecolor) | |
static int | get_mid_val (int r, int g, int b) |
static int | get_rgb_adjust_range (int r, int g, int b, int min_val, int max_val) |
static int | get_cmy_adjust_range (int r, int g, int b, int min_val, int max_val) |
static int | get_neutrals_adjust_range (int r, int g, int b, int min_val, int max_val) |
static int | get_whites_adjust_range (int r, int g, int b, int min_val, int max_val) |
static int | get_blacks_adjust_range (int r, int g, int b, int min_val, int max_val) |
static int | register_range (SelectiveColorContext *s, int range_id) |
static int | parse_psfile (AVFilterContext *ctx, const char *fname) |
static av_cold int | init (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | comp_adjust (int adjust_range, float value, float adjust, float k, int correction_method) |
static int | selective_color (AVFilterContext *ctx, ThreadData *td, int jobnr, int nb_jobs, int direct, int correction_method) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
Variables | |
static const char * | color_names [NB_RANGES] |
static const AVOption | selectivecolor_options [] |
static const AVFilterPad | selectivecolor_inputs [] |
static const AVFilterPad | selectivecolor_outputs [] |
AVFilter | ff_vf_selectivecolor |
#define OFFSET | ( | x | ) | offsetof(SelectiveColorContext, x) |
Definition at line 82 of file vf_selectivecolor.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 83 of file vf_selectivecolor.c.
#define RANGE_OPTION | ( | color_name, | |
range | |||
) | { color_name"s", "adjust "color_name" regions", OFFSET(opt_cmyk_adjust[range]), AV_OPT_TYPE_STRING, {.str=NULL}, CHAR_MIN, CHAR_MAX, FLAGS } |
Definition at line 84 of file vf_selectivecolor.c.
#define READ16 | ( | dst | ) |
Referenced by parse_psfile().
#define DEF_SELECTIVE_COLOR_FUNC | ( | name, | |
direct, | |||
correction_method | |||
) |
Definition at line 382 of file vf_selectivecolor.c.
Definition at line 60 of file vf_selectivecolor.c.
typedef int(* selective_color_func_type)(AVFilterContext *ctx, void *td, int jobnr, int nb_jobs) |
Definition at line 393 of file vf_selectivecolor.c.
enum color_range |
Enumerator | |
---|---|
RANGE_REDS | |
RANGE_YELLOWS | |
RANGE_GREENS | |
RANGE_CYANS | |
RANGE_BLUES | |
RANGE_MAGENTAS | |
RANGE_WHITES | |
RANGE_NEUTRALS | |
RANGE_BLACKS | |
NB_RANGES |
Definition at line 36 of file vf_selectivecolor.c.
enum correction_method |
Enumerator | |
---|---|
CORRECTION_METHOD_ABSOLUTE | |
CORRECTION_METHOD_RELATIVE | |
NB_CORRECTION_METHODS |
Definition at line 50 of file vf_selectivecolor.c.
AVFILTER_DEFINE_CLASS | ( | selectivecolor | ) |
|
inlinestatic |
Definition at line 106 of file vf_selectivecolor.c.
Referenced by get_cmy_adjust_range(), and get_rgb_adjust_range().
|
static |
Definition at line 114 of file vf_selectivecolor.c.
Referenced by register_range().
|
static |
Definition at line 129 of file vf_selectivecolor.c.
Referenced by register_range().
|
static |
Definition at line 144 of file vf_selectivecolor.c.
Referenced by register_range().
|
static |
Definition at line 150 of file vf_selectivecolor.c.
Referenced by register_range().
|
static |
Definition at line 156 of file vf_selectivecolor.c.
Referenced by register_range().
|
static |
Definition at line 162 of file vf_selectivecolor.c.
Referenced by init(), and parse_psfile().
|
static |
Definition at line 194 of file vf_selectivecolor.c.
Referenced by init().
|
static |
Definition at line 247 of file vf_selectivecolor.c.
|
static |
Definition at line 288 of file vf_selectivecolor.c.
|
inlinestatic |
Definition at line 297 of file vf_selectivecolor.c.
Referenced by selective_color().
|
inlinestatic |
Definition at line 307 of file vf_selectivecolor.c.
|
static |
Definition at line 395 of file vf_selectivecolor.c.
|
static |
Definition at line 56 of file vf_selectivecolor.c.
Referenced by init(), and register_range().
|
static |
Definition at line 87 of file vf_selectivecolor.c.
|
static |
Definition at line 431 of file vf_selectivecolor.c.
|
static |
Definition at line 440 of file vf_selectivecolor.c.
AVFilter ff_vf_selectivecolor |
Definition at line 448 of file vf_selectivecolor.c.