#include "libavutil/eval.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Definition in file vf_lut.c.
#define DEFINE_LUT_FILTER | ( | name_, | |||
description_, | |||||
init_ | ) |
Value:
AVFilter avfilter_vf_##name_ = { \ .name = #name_, \ .description = NULL_IF_CONFIG_SMALL(description_), \ .priv_size = sizeof(LutContext), \ \ .init = init_, \ .uninit = uninit, \ .query_formats = query_formats, \ \ .inputs = (const AVFilterPad[]) {{ .name = "default", \ .type = AVMEDIA_TYPE_VIDEO, \ .draw_slice = draw_slice, \ .config_props = config_props, \ .min_perms = AV_PERM_READ, }, \ { .name = NULL}}, \ .outputs = (const AVFilterPad[]) {{ .name = "default", \ .type = AVMEDIA_TYPE_VIDEO, }, \ { .name = NULL}}, \ }
#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 162 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 void draw_slice | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
static int init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [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 AVOption lut_options[] [static] |
Initial value:
{ {"c0", "set component #0 expression", OFFSET(comp_expr_str[0]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"c1", "set component #1 expression", OFFSET(comp_expr_str[1]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"c2", "set component #2 expression", OFFSET(comp_expr_str[2]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"c3", "set component #3 expression", OFFSET(comp_expr_str[3]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"y", "set Y expression", OFFSET(comp_expr_str[Y]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"u", "set U expression", OFFSET(comp_expr_str[U]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"v", "set V expression", OFFSET(comp_expr_str[V]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"r", "set R expression", OFFSET(comp_expr_str[R]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"g", "set G expression", OFFSET(comp_expr_str[G]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"b", "set B expression", OFFSET(comp_expr_str[B]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"a", "set A expression", OFFSET(comp_expr_str[A]), AV_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {NULL}, }
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] |