eq 136 libavfilter/allfilters.c REGISTER_FILTER(EQ, eq, vf); eq 102 libavfilter/vf_eq.c static void check_values(EQParameters *param, EQContext *eq) eq 107 libavfilter/vf_eq.c param->adjust = eq->process; eq 112 libavfilter/vf_eq.c static void set_contrast(EQContext *eq) eq 114 libavfilter/vf_eq.c eq->var_values[VAR_CONTRAST] = av_clipf(av_expr_eval(eq->contrast_pexpr, eq->var_values, eq),-2.0, 2.0); eq 115 libavfilter/vf_eq.c eq->param[0].contrast = eq->var_values[VAR_CONTRAST]; eq 116 libavfilter/vf_eq.c eq->param[0].lut_clean = 0; eq 117 libavfilter/vf_eq.c check_values(&eq->param[0], eq); eq 120 libavfilter/vf_eq.c static void set_brightness(EQContext *eq) eq 122 libavfilter/vf_eq.c eq->var_values[VAR_BRIGHTNESS] = av_clipf(av_expr_eval(eq->brightness_pexpr, eq->var_values, eq), -1.0, 1.0); eq 123 libavfilter/vf_eq.c eq->param[0].brightness = eq->var_values[VAR_BRIGHTNESS]; eq 124 libavfilter/vf_eq.c eq->param[0].lut_clean = 0; eq 125 libavfilter/vf_eq.c check_values(&eq->param[0], eq); eq 128 libavfilter/vf_eq.c static void set_gamma(EQContext *eq) eq 132 libavfilter/vf_eq.c eq->var_values[VAR_GAMMA] = av_clipf(av_expr_eval(eq->gamma_pexpr, eq->var_values, eq), 0.1, 10.0); eq 133 libavfilter/vf_eq.c eq->var_values[VAR_GAMMA_R] = av_clipf(av_expr_eval(eq->gamma_r_pexpr, eq->var_values, eq), 0.1, 10.0); eq 134 libavfilter/vf_eq.c eq->var_values[VAR_GAMMA_G] = av_clipf(av_expr_eval(eq->gamma_g_pexpr, eq->var_values, eq), 0.1, 10.0); eq 135 libavfilter/vf_eq.c eq->var_values[VAR_GAMMA_B] = av_clipf(av_expr_eval(eq->gamma_b_pexpr, eq->var_values, eq), 0.1, 10.0); eq 136 libavfilter/vf_eq.c eq->var_values[VAR_GAMMA_WEIGHT] = av_clipf(av_expr_eval(eq->gamma_weight_pexpr, eq->var_values, eq), 0.0, 1.0); eq 138 libavfilter/vf_eq.c eq->param[0].gamma = eq->var_values[VAR_GAMMA] * eq->var_values[VAR_GAMMA_G]; eq 139 libavfilter/vf_eq.c eq->param[1].gamma = sqrt(eq->var_values[VAR_GAMMA_B] / eq->var_values[VAR_GAMMA_G]); eq 140 libavfilter/vf_eq.c eq->param[2].gamma = sqrt(eq->var_values[VAR_GAMMA_R] / eq->var_values[VAR_GAMMA_G]); eq 143 libavfilter/vf_eq.c eq->param[i].gamma_weight = eq->var_values[VAR_GAMMA_WEIGHT]; eq 144 libavfilter/vf_eq.c eq->param[i].lut_clean = 0; eq 145 libavfilter/vf_eq.c check_values(&eq->param[i], eq); eq 149 libavfilter/vf_eq.c static void set_saturation(EQContext *eq) eq 153 libavfilter/vf_eq.c eq->var_values[VAR_SATURATION] = av_clipf(av_expr_eval(eq->saturation_pexpr, eq->var_values, eq), 0.0, 3.0); eq 156 libavfilter/vf_eq.c eq->param[i].contrast = eq->var_values[VAR_SATURATION]; eq 157 libavfilter/vf_eq.c eq->param[i].lut_clean = 0; eq 158 libavfilter/vf_eq.c check_values(&eq->param[i], eq); eq 185 libavfilter/vf_eq.c EQContext *eq = ctx->priv; eq 188 libavfilter/vf_eq.c eq->process = process_c; eq 190 libavfilter/vf_eq.c if ((ret = set_expr(&eq->contrast_pexpr, eq->contrast_expr, "contrast", ctx)) < 0 || eq 191 libavfilter/vf_eq.c (ret = set_expr(&eq->brightness_pexpr, eq->brightness_expr, "brightness", ctx)) < 0 || eq 192 libavfilter/vf_eq.c (ret = set_expr(&eq->saturation_pexpr, eq->saturation_expr, "saturation", ctx)) < 0 || eq 193 libavfilter/vf_eq.c (ret = set_expr(&eq->gamma_pexpr, eq->gamma_expr, "gamma", ctx)) < 0 || eq 194 libavfilter/vf_eq.c (ret = set_expr(&eq->gamma_r_pexpr, eq->gamma_r_expr, "gamma_r", ctx)) < 0 || eq 195 libavfilter/vf_eq.c (ret = set_expr(&eq->gamma_g_pexpr, eq->gamma_g_expr, "gamma_g", ctx)) < 0 || eq 196 libavfilter/vf_eq.c (ret = set_expr(&eq->gamma_b_pexpr, eq->gamma_b_expr, "gamma_b", ctx)) < 0 || eq 197 libavfilter/vf_eq.c (ret = set_expr(&eq->gamma_weight_pexpr, eq->gamma_weight_expr, "gamma_weight", ctx)) < 0 ) eq 201 libavfilter/vf_eq.c ff_eq_init_x86(eq); eq 203 libavfilter/vf_eq.c set_gamma(eq); eq 204 libavfilter/vf_eq.c set_contrast(eq); eq 205 libavfilter/vf_eq.c set_brightness(eq); eq 206 libavfilter/vf_eq.c set_saturation(eq); eq 213 libavfilter/vf_eq.c EQContext *eq = ctx->priv; eq 215 libavfilter/vf_eq.c av_expr_free(eq->contrast_pexpr); eq->contrast_pexpr = NULL; eq 216 libavfilter/vf_eq.c av_expr_free(eq->brightness_pexpr); eq->brightness_pexpr = NULL; eq 217 libavfilter/vf_eq.c av_expr_free(eq->saturation_pexpr); eq->saturation_pexpr = NULL; eq 218 libavfilter/vf_eq.c av_expr_free(eq->gamma_pexpr); eq->gamma_pexpr = NULL; eq 219 libavfilter/vf_eq.c av_expr_free(eq->gamma_weight_pexpr); eq->gamma_weight_pexpr = NULL; eq 220 libavfilter/vf_eq.c av_expr_free(eq->gamma_r_pexpr); eq->gamma_r_pexpr = NULL; eq 221 libavfilter/vf_eq.c av_expr_free(eq->gamma_g_pexpr); eq->gamma_g_pexpr = NULL; eq 222 libavfilter/vf_eq.c av_expr_free(eq->gamma_b_pexpr); eq->gamma_b_pexpr = NULL; eq 246 libavfilter/vf_eq.c EQContext *eq = ctx->priv; eq 267 libavfilter/vf_eq.c if (eq->param[i].adjust) eq 268 libavfilter/vf_eq.c eq->param[i].adjust(&eq->param[i], out->data[i], out->linesize[i], eq 282 libavfilter/vf_eq.c EQContext *eq = ctx->priv; eq 286 libavfilter/vf_eq.c ret = set_expr(&eq->contrast_pexpr, args, cmd, ctx); eq 287 libavfilter/vf_eq.c set_contrast(eq); eq 291 libavfilter/vf_eq.c ret = set_expr(&eq->brightness_pexpr, args, cmd, ctx); eq 292 libavfilter/vf_eq.c set_brightness(eq); eq 296 libavfilter/vf_eq.c ret = set_expr(&eq->saturation_pexpr, args, cmd, ctx); eq 297 libavfilter/vf_eq.c set_saturation(eq); eq 301 libavfilter/vf_eq.c ret = set_expr(&eq->gamma_pexpr, args, cmd, ctx); eq 302 libavfilter/vf_eq.c set_gamma(eq); eq 306 libavfilter/vf_eq.c ret = set_expr(&eq->gamma_r_pexpr, args, cmd, ctx); eq 307 libavfilter/vf_eq.c set_gamma(eq); eq 311 libavfilter/vf_eq.c ret = set_expr(&eq->gamma_g_pexpr, args, cmd, ctx); eq 312 libavfilter/vf_eq.c set_gamma(eq); eq 316 libavfilter/vf_eq.c ret = set_expr(&eq->gamma_b_pexpr, args, cmd, ctx); eq 317 libavfilter/vf_eq.c set_gamma(eq); eq 321 libavfilter/vf_eq.c ret = set_expr(&eq->gamma_weight_pexpr, args, cmd, ctx); eq 322 libavfilter/vf_eq.c set_gamma(eq); eq 369 libavfilter/vf_eq.c AVFILTER_DEFINE_CLASS(eq); eq 56 libavfilter/vf_eq.h void (*adjust)(struct EQParameters *eq, uint8_t *dst, int dst_stride, eq 102 libavfilter/vf_eq.h void ff_eq_init_x86(EQContext *eq); eq 95 libavfilter/vf_xbr.c if (e < i && (!eq(PF,PB) && !eq(PH,PD) || eq(PE,PI) \ eq 96 libavfilter/vf_xbr.c && (!eq(PF,I4) && !eq(PH,I5)) \ eq 97 libavfilter/vf_xbr.c || eq(PE,PG) || eq(PE,PC))) { \ eq 129 libavfilter/vf_xbr.c if (e < i && (!eq(PF,PB) && !eq(PF,PC) || !eq(PH,PD) && !eq(PH,PG) || eq(PE,PI) \ eq 130 libavfilter/vf_xbr.c && (!eq(PF,F4) && !eq(PF,I4) || !eq(PH,H5) && !eq(PH,I5)) \ eq 131 libavfilter/vf_xbr.c || eq(PE,PG) || eq(PE,PC))) { \ eq 171 libavfilter/vf_xbr.c if (e < i && (!eq(PF,PB) && !eq(PH,PD) || eq(PE,PI) \ eq 172 libavfilter/vf_xbr.c && (!eq(PF,I4) && !eq(PH,I5)) \ eq 173 libavfilter/vf_xbr.c || eq(PE,PG) || eq(PE,PC))) { \ eq 87 libavfilter/x86/vf_eq.c av_cold void ff_eq_init_x86(EQContext *eq) eq 93 libavfilter/x86/vf_eq.c eq->process = process_MMX;