/third_party/ffmpeg/libavcodec/ |
D | audiodsp.c | 67 dst[i] = av_clipf(src[i], min, max); in vector_clipf_c() 68 dst[i + 1] = av_clipf(src[i + 1], min, max); in vector_clipf_c() 69 dst[i + 2] = av_clipf(src[i + 2], min, max); in vector_clipf_c() 70 dst[i + 3] = av_clipf(src[i + 3], min, max); in vector_clipf_c() 71 dst[i + 4] = av_clipf(src[i + 4], min, max); in vector_clipf_c() 72 dst[i + 5] = av_clipf(src[i + 5], min, max); in vector_clipf_c() 73 dst[i + 6] = av_clipf(src[i + 6], min, max); in vector_clipf_c() 74 dst[i + 7] = av_clipf(src[i + 7], min, max); in vector_clipf_c()
|
D | mpc.c | 73 … c->sb_samples[ch][j][i] = av_clipf(mul * c->Q[ch][j + off], INT32_MIN, INT32_MAX); in ff_mpc_dequantize_and_synth() 76 … c->sb_samples[ch][j][i] = av_clipf(mul * c->Q[ch][j + off], INT32_MIN, INT32_MAX); in ff_mpc_dequantize_and_synth() 79 … c->sb_samples[ch][j][i] = av_clipf(mul * c->Q[ch][j + off], INT32_MIN, INT32_MAX); in ff_mpc_dequantize_and_synth()
|
D | opus_silk.c | 701 resptr[j] = av_clipf(sum, -1.0f, 1.0f) * scale / sf[i].gain; in silk_decode_frame() 726 dst[j] = av_clipf(sum, -1.0f, 1.0f); in silk_decode_frame() 753 l[i] = av_clipf((1 + interp1) * mid[i - 1] + side[i - 1] + interp0 * p0, -1.0, 1.0); in silk_unmix_ms() 754 r[i] = av_clipf((1 - interp1) * mid[i - 1] - side[i - 1] - interp0 * p0, -1.0, 1.0); in silk_unmix_ms() 760 l[i] = av_clipf((1 + w1) * mid[i - 1] + side[i - 1] + w0 * p0, -1.0, 1.0); in silk_unmix_ms() 761 r[i] = av_clipf((1 - w1) * mid[i - 1] - side[i - 1] - w0 * p0, -1.0, 1.0); in silk_unmix_ms()
|
D | aaccoder_twoloop.h | 94 float rdlambda = av_clipf(2.0f * 120.f / lambda, 0.0625f, 16.0f); in search_for_quantizers_twoloop() 104 float sfoffs = av_clipf(log2f(120.0f / lambda) * 4.0f, -5, 10); in search_for_quantizers_twoloop() 125 zeroscale = av_clipf(powf(120.f / lambda, 0.25f), 0.0625f, 1.0f); in search_for_quantizers_twoloop() 328 float cleanup_factor = ff_sqrf(av_clipf(start / (cutoff * 0.75f), 1.0f, 2.0f)); in search_for_quantizers_twoloop() 340 uplims[w*16+g] *= av_clipf(rdlambda * energy2uplim, rdmin, rdmax) in search_for_quantizers_twoloop() 354 euplims[w*16+g] *= av_clipf(rdlambda * energy2uplim * sce->ics.group_len[w], in search_for_quantizers_twoloop()
|
D | twinvq.h | 194 y = av_clipf(y / clip, -1, 1); in twinvq_mulawinv()
|
D | aacpsy.c | 361 coeff->min_snr = av_clipf(1.0f / minsnr, PSY_SNR_25DB, PSY_SNR_1DB); in psy_3gpp_init() 507 fill_level = av_clipf((float)ctx->fill_level / size, clip_low, clip_high); in calc_bit_demand() 508 clipped_pe = av_clipf(pe, ctx->pe.min, ctx->pe.max); in calc_bit_demand() 735 desired_pe *= av_clipf(pctx->pe.previous / PSY_3GPP_BITS_TO_PE(ctx->bitres.bits), in psy_3gpp_analyze_channel()
|
D | ra288.c | 111 sum = av_clipf(sum, 0, 60); in decode()
|
D | libopusdec.c | 185 *pcm = av_clipf(*pcm * opus->gain.d, -1, 1); in libopus_decode()
|
D | libwebpenc_common.c | 49 s->quality = av_clipf(avctx->global_quality / (float)FF_QP2LAMBDA, in ff_libwebp_encode_init_common()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_eq.c | 109 eq->contrast = av_clipf(av_expr_eval(eq->contrast_pexpr, eq->var_values, eq), -1000.0, 1000.0); in set_contrast() 117 eq->brightness = av_clipf(av_expr_eval(eq->brightness_pexpr, eq->var_values, eq), -1.0, 1.0); in set_brightness() 127 … eq->gamma = av_clipf(av_expr_eval(eq->gamma_pexpr, eq->var_values, eq), 0.1, 10.0); in set_gamma() 128 … eq->gamma_r = av_clipf(av_expr_eval(eq->gamma_r_pexpr, eq->var_values, eq), 0.1, 10.0); in set_gamma() 129 … eq->gamma_g = av_clipf(av_expr_eval(eq->gamma_g_pexpr, eq->var_values, eq), 0.1, 10.0); in set_gamma() 130 … eq->gamma_b = av_clipf(av_expr_eval(eq->gamma_b_pexpr, eq->var_values, eq), 0.1, 10.0); in set_gamma() 131 … eq->gamma_weight = av_clipf(av_expr_eval(eq->gamma_weight_pexpr, eq->var_values, eq), 0.0, 1.0); in set_gamma() 148 eq->saturation = av_clipf(av_expr_eval(eq->saturation_pexpr, eq->var_values, eq), 0.0, 3.0); in set_saturation()
|
D | af_extrastereo.c | 93 left = av_clipf(left, -1, 1); in filter_frame() 94 right = av_clipf(right, -1, 1); in filter_frame()
|
D | vf_colorbalance.c | 106 s *= av_clipf((b - l) * a + 0.5f, 0, 1) * scale; in get_component() 107 m *= av_clipf((l - b) * a + 0.5f, 0, 1) * av_clipf((1.0 - l - b) * a + 0.5f, 0, 1) * scale; in get_component() 108 h *= av_clipf((l + b - 1) * a + 0.5f, 0, 1) * scale; in get_component() 114 return av_clipf(v, 0, 1); in get_component() 122 return av_clipf(l - a * FFMAX(FFMIN3(k - 3.f, 9.f - k, 1), -1.f), 0, 1); in hfun()
|
D | vf_lut3d.c | 352 const float x = av_clipf(scaled, 0.0f, lut_max); in prelut_interp_1d_linear() 415 … const struct rgbvec scaled_rgb = {av_clipf(prelut_rgb.r * scale_r, 0, lut_max), \ 416 … av_clipf(prelut_rgb.g * scale_g, 0, lut_max), \ 417 … av_clipf(prelut_rgb.b * scale_b, 0, lut_max)}; \ 512 … const struct rgbvec scaled_rgb = {av_clipf(prelut_rgb.r * scale_r, 0, lut_max), \ 513 … av_clipf(prelut_rgb.g * scale_g, 0, lut_max), \ 514 … av_clipf(prelut_rgb.b * scale_b, 0, lut_max)}; \ 573 … const struct rgbvec scaled_rgb = {av_clipf(prelut_rgb.r * scale_r, 0, lut_max), \ 574 … av_clipf(prelut_rgb.g * scale_g, 0, lut_max), \ 575 … av_clipf(prelut_rgb.b * scale_b, 0, lut_max)}; \ [all …]
|
D | af_crystalizer.c | 110 dst[c] = av_clipf(dst[c], -1, 1); in filter_flt() 182 dst[n] = av_clipf(dst[n], -1, 1); in filter_fltp() 248 dst[c] = av_clipf(dst[c], -1, 1); in ifilter_flt() 322 dst[n] = av_clipf(dst[n], -1, 1); in ifilter_fltp()
|
D | transform.c | 181 y_s = av_clipf(y_s, 0, height - 1); in avfilter_transform() 182 x_s = av_clipf(x_s, 0, width - 1); in avfilter_transform()
|
D | avf_ahistogram.c | 209 bin = lrint(av_clipf(fabsf(src[n]), 0, 1) * (w - 1)); in filter_frame() 219 bin = lrint(av_clipf(fabsf(src2[n]), 0, 1) * (w - 1)); in filter_frame() 232 bin = lrint(av_clipf(1 + log10(fabsf(src[n])) / 6, 0, 1) * (w - 1)); in filter_frame() 242 bin = lrint(av_clipf(1 + log10(fabsf(src2[n])) / 6, 0, 1) * (w - 1)); in filter_frame()
|
D | vf_colorcontrast.c | 76 ng = av_clipf((g0 * gmw + g1 * byw + g2 * rcw) * scale, 0.f, max); \ 77 nb = av_clipf((b0 * gmw + b1 * byw + b2 * rcw) * scale, 0.f, max); \ 78 nr = av_clipf((r0 * gmw + r1 * byw + r2 * rcw) * scale, 0.f, max); \
|
D | vf_deshake.c | 308 t->vec.x = av_clipf(t->vec.x, -deshake->rx * 2, deshake->rx * 2); in find_motion() 309 t->vec.y = av_clipf(t->vec.y, -deshake->ry * 2, deshake->ry * 2); in find_motion() 310 t->angle = av_clipf(t->angle, -0.1, 0.1); in find_motion()
|
D | avf_showvolume.c | 282 max_val = av_clipf(0.21 * log10(max) + 1, 0, 1); in calc_max_draw() 365 max = av_clipf(max, 0, 1); in filter_frame() 400 max = av_clipf(max, 0, 1); in filter_frame()
|
D | vf_cas.c | 101 amp = sqrtf(av_clipf(FFMIN(mn, 511 - mx) / (float)mx, 0.f, 1.f)); in cas_slice8() 168 amp = sqrtf(av_clipf(FFMIN(mn, max - mx) / (float)mx, 0.f, 1.f)); in cas_slice16()
|
D | avf_showspatial.c | 262 float cr = av_clipf(cbrtf(l / sum), 0, 1) * 255.f; in draw_spatial() 263 float cb = av_clipf(cbrtf(r / sum), 0, 1) * 255.f; in draw_spatial()
|
D | avf_showspectrum.c | 903 a = av_clipf(a, 0, 1); in get_value() 906 a = av_clipf(sqrtf(a), 0, 1); in get_value() 909 a = av_clipf(cbrtf(a), 0, 1); in get_value() 912 a = av_clipf(sqrtf(sqrtf(a)), 0, 1); in get_value() 915 a = av_clipf(powf(a, 0.20), 0, 1); in get_value() 918 a = 1.f + log10f(av_clipf(a, 1e-6, 1)) / 6.f; // zero = -120dBFS in get_value() 1324 *p = lrintf(av_clipf(s->combine_buffer[3 * y + plane], 0, 255)); in plot_spectrum_column() 1352 *p = lrintf(av_clipf(s->combine_buffer[3 * x + plane], 0, 255)); in plot_spectrum_column()
|
D | vf_scdet.c | 140 ret = av_clipf(FFMIN(mafd, diff), 0, 100.); in get_scene_score()
|
/third_party/ffmpeg/libavutil/x86/ |
D | intmath.h | 123 #define av_clipf av_clipf_sse macro
|
/third_party/ffmpeg/libavutil/ |
D | common.h | 169 #ifndef av_clipf 170 # define av_clipf av_clipf_c macro
|