#include "libavutil/common.h"
#include "libavutil/eval.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Definition in file vf_lut.c.
#define DEFINE_LUT_FILTER | ( | name_, | |||
description_ | ) |
Value:
AVFilter avfilter_vf_##name_ = { \ .name = #name_, \ .description = NULL_IF_CONFIG_SMALL(description_), \ .priv_size = sizeof(LutContext), \ \ .init = name_##_init, \ .uninit = uninit, \ .query_formats = query_formats, \ \ .inputs = inputs, \ .outputs = outputs, \ .priv_class = &name_##_class, \ }
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define OFFSET | ( | x | ) | offsetof(LutContext, x) |
#define RGB_FORMATS |
Value:
#define YUV_FORMATS |
enum var_name |
static double clip | ( | void * | opaque, | |
double | val | |||
) | [static] |
Clip value val in the minval - maxval range.
Definition at line 138 of file vf_lut.c.
Referenced by rv40_loop_filter(), and vc1_filter_line().
static double compute_gammaval | ( | void * | opaque, | |
double | gamma | |||
) | [static] |
static int config_props | ( | AVFilterLink * | inlink | ) | [static] |
static int draw_slice | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
static av_cold void uninit | ( | AVFilterContext * | ctx | ) | [static] |
enum PixelFormat all_pix_fmts[] = { RGB_FORMATS, YUV_FORMATS, PIX_FMT_NONE } [static] |
double(* const funcs1[])(void *, double) [static] |
Initial value:
{ (void *)clip, (void *)compute_gammaval, NULL }
Referenced by av_expr_parse(), av_expr_parse_and_eval(), av_parse_and_eval_expr(), av_parse_expr(), and config_props().
const char* const funcs1_names[] [static] |
const AVFilterPad inputs[] [static] |
Initial value:
{ { .name = "default", .type = AVMEDIA_TYPE_VIDEO, .draw_slice = draw_slice, .config_props = config_props, .min_perms = AV_PERM_READ, }, { .name = NULL} }
Definition at line 322 of file vf_lut.c.
Referenced by av_buffersink_read(), av_buffersink_read_samples(), avfilter_graph_parse(), avfilter_link(), configure_filtergraph(), exit_program(), init_filters(), insert_conv_filter(), join_config_output(), and push_frame().
Initial value:
{ {"c0", "set component #0 expression", OFFSET(comp_expr_str[0]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"c1", "set component #1 expression", OFFSET(comp_expr_str[1]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"c2", "set component #2 expression", OFFSET(comp_expr_str[2]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"c3", "set component #3 expression", OFFSET(comp_expr_str[3]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"y", "set Y expression", OFFSET(comp_expr_str[Y]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"u", "set U expression", OFFSET(comp_expr_str[U]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"v", "set V expression", OFFSET(comp_expr_str[V]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"r", "set R expression", OFFSET(comp_expr_str[R]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"g", "set G expression", OFFSET(comp_expr_str[G]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"b", "set B expression", OFFSET(comp_expr_str[B]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {"a", "set A expression", OFFSET(comp_expr_str[A]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX, FLAGS}, {NULL}, }
const AVFilterPad outputs[] [static] |
Initial value:
{ { .name = "default", .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL} }
Definition at line 330 of file vf_lut.c.
Referenced by avfilter_graph_parse(), configure_filtergraph(), exit_program(), and init_filters().
enum PixelFormat rgb_pix_fmts[] = { RGB_FORMATS, PIX_FMT_NONE } [static] |
const char* const var_names[] [static] |
enum PixelFormat yuv_pix_fmts[] = { YUV_FORMATS, PIX_FMT_NONE } [static] |