#include "libavutil/eval.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.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 = (AVFilterPad[]) {{ .name = "default", \ .type = AVMEDIA_TYPE_VIDEO, \ .draw_slice = draw_slice, \ .config_props = config_props, \ .min_perms = AV_PERM_READ, }, \ { .name = NULL}}, \ .outputs = (AVFilterPad[]) {{ .name = "default", \ .type = AVMEDIA_TYPE_VIDEO, }, \ { .name = NULL}}, \ }
#define OFFSET | ( | x | ) | offsetof(LutContext, x) |
#define RGB_FORMATS |
Value:
#define U 1 |
Definition at line 74 of file vf_lut.c.
Referenced by altivec_uyvy_rgb32(), asf_read_file_properties(), aura_decode_frame(), av_adler32_update(), av_audio_convert(), av_normalize1_sf(), av_reduce(), avi_read_header(), bfin_prepare_coefficients(), check_mv(), clipf_c_one(), config_input(), config_props(), decode_exponents(), decode_frame(), decode_header(), decode_hrd_parameters(), decode_main_header(), decode_mb_i(), decode_residual(), decode_residual_inter(), decode_scalefactors(), decode_slice_header(), decode_spectrum_and_dequant(), decode_vui_parameters(), draw_slice(), dv_init_enc_block(), ff_adts_decode_extradata(), ff_asf_get_packet(), ff_dirac_parse_sequence_header(), ff_get_cpu_flags_x86(), ff_h263_decode_frame(), ff_h264_check_intra_pred_mode(), ff_h264_decode_seq_parameter_set(), ff_imdct_half_3dn2(), ff_ivi_decode_blocks(), ff_yuv2packedX_altivec(), filter(), flt16_even(), flt16_round(), flt16_trunc(), init(), intra_predict(), parse_source_parameters(), pred_spatial_direct_motion(), pRNG(), put_bits(), put_float(), qdm2_decode_init(), read_quant_tables(), rgb16_32ToUV_half_c_template(), rgb24toyv12_c(), rgb48ToUV_half_c_template(), rv30_decode_intra_types(), rv30_decode_mb_info(), rv34_mc(), rv34_output_macroblock(), sox_read_header(), svq3_decode_block(), svq3_decode_mb(), svq3_decode_slice_header(), tm2_decode_blocks(), tm2_hi_res_block(), tm2_low_res_block(), tm2_med_res_block(), tm2_motion_block(), tm2_null_res_block(), tm2_still_block(), tm2_update_block(), unpack_vlcs(), vector_clipf_c_opposite_sign(), VMUL4S(), wv_get_value(), xan_decode_chroma(), yuv2422_1_c_template(), yuv2422_2_c_template(), yuv2422_X_c_template(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), and yuv2rgb48_X_c_template().
#define Y 0 |
Definition at line 73 of file vf_lut.c.
Referenced by altivec_uyvy_rgb32(), aura_decode_frame(), config_input(), config_props(), decode_frame(), deNoise(), deNoiseSpacial(), deNoiseTemporal(), draw_slice(), init(), main(), rgb24toyv12_c(), rv30_loop_filter(), rv34_mc(), rv34_output_macroblock(), rv40_loop_filter(), tm2_decode_blocks(), tm2_hi_res_block(), tm2_low_res_block(), tm2_med_res_block(), tm2_motion_block(), tm2_null_res_block(), tm2_still_block(), tm2_update_block(), ulti_decode_frame(), vc1_pred_b_mv(), and vc1_pred_mv().
#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 181 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] |
DEFINE_LUT_FILTER | ( | lutrgb | , | |
"Compute and apply a lookup table to the RGB input video." | , | |||
init | ||||
) |
DEFINE_LUT_FILTER | ( | lutyuv | , | |
"Compute and apply a lookup table to the YUV input video." | , | |||
init | ||||
) |
DEFINE_LUT_FILTER | ( | lut | , | |
"Compute and apply a lookup table to the RGB/YUV input video." | , | |||
init | ||||
) |
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 pix_fmt_is_in | ( | enum PixelFormat | pix_fmt, | |
enum PixelFormat * | pix_fmts | |||
) | [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]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"c1", "set component #1 expression", OFFSET(comp_expr_str[1]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"c2", "set component #2 expression", OFFSET(comp_expr_str[2]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"c3", "set component #3 expression", OFFSET(comp_expr_str[3]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"y", "set Y expression", OFFSET(comp_expr_str[Y]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"u", "set U expression", OFFSET(comp_expr_str[U]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"v", "set V expression", OFFSET(comp_expr_str[V]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"r", "set R expression", OFFSET(comp_expr_str[R]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"g", "set G expression", OFFSET(comp_expr_str[G]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"b", "set B expression", OFFSET(comp_expr_str[B]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {"a", "set A expression", OFFSET(comp_expr_str[A]), FF_OPT_TYPE_STRING, {.str="val"}, CHAR_MIN, CHAR_MAX}, {NULL}, }
enum PixelFormat rgb_pix_fmts[] = { RGB_FORMATS, PIX_FMT_NONE } [static] |
const char* var_names[] [static] |
enum PixelFormat yuv_pix_fmts[] = { YUV_FORMATS, PIX_FMT_NONE } [static] |