Home
last modified time | relevance | path

Searched refs:av_clipd (Results 1 – 22 of 22) sorted by relevance

/third_party/ffmpeg/libavfilter/
Daf_crystalizer.c131 filters(dbl, double, inverse, noclip, 1, 0, 1.0, av_clipd, 1)
132 filters(dbl, double, inverse, clip, 1, 1, 1.0, av_clipd, 1)
133 filters(dbl, double, noinverse, noclip, 0, 0, 1.0, av_clipd, 1)
134 filters(dbl, double, noinverse, clip, 0, 1, 1.0, av_clipd, 1)
136 filters(dblp, double, inverse, noclip, 1, 0, 1.0, av_clipd, 0)
137 filters(dblp, double, inverse, clip, 1, 1, 1.0, av_clipd, 0)
138 filters(dblp, double, noinverse, noclip, 0, 0, 1.0, av_clipd, 0)
139 filters(dblp, double, noinverse, clip, 0, 1, 1.0, av_clipd, 0)
Dvf_geq.c112 xi = x = av_clipd(x, 0, w - 2); in getpix()
113 yi = y = av_clipd(y, 0, h - 2); in getpix()
135 xi = av_clipd(x, 0, w - 1); in getpix()
136 yi = av_clipd(y, 0, h - 1); in getpix()
233 …return getpix_integrate_internal(geq, lrint(av_clipd(x, -w, 2*w)), lrint(av_clipd(y, -h, 2*h)), pl… in getpix_integrate()
Dvf_chromakey.c65 return av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0) * 255.0; in do_chromakey_pixel()
87 return av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0) * max; in do_chromakey_pixel16()
204 double f = 1. - av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0); in do_chromahold_slice()
243 double f = 1. - av_clipd((diff - ctx->similarity) / ctx->blend, 0.0, 1.0); in do_chromahold16_slice()
Dvf_zoompan.c179 *zoom = av_clipd(*zoom, 1, 10); in output_single_frame()
186 x = *dx = av_clipd(*dx, 0, FFMAX(in->width - w, 0)); in output_single_frame()
192 y = *dy = av_clipd(*dy, 0, FFMAX(in->height - h, 0)); in output_single_frame()
Davf_showfreqs.c314 a = log(av_clipd(a, min, 1)) / log(min); in plot_freq()
447 a = av_clipd(M(RE(f, ch), IM(f, ch)) / s->scale, 0, 1); in plot_freqs()
454 a = av_clipd((M_PI + P(RE(f, ch), IM(f, ch))) / (2. * M_PI), 0, 1); in plot_freqs()
461 a = av_clipd((M_PI - P(IM(f, ch) * RE(f-1, ch) - IM(f-1, ch) * RE(f, ch), in plot_freqs()
Daf_asubboost.c140 boost = av_clipd((1. - (fabs(src[n] * dry))) / fabs(buffer[write_pos]), 0., max_boost); in filter_channels()
142 w[2] = av_clipd(w[2], 0., max_boost); in filter_channels()
Daf_afftdn.c386 const double new_floor = av_clipd(10.0 * log10(den) - 100.0 + offset, -90., -20.); in process_frame()
543 band_noise[i] = av_clipd(noise, -24., 24.); in read_custom_noise()
574 …dnch->last_residual_floor = av_clipd(dnch->last_noise_floor - dnch->last_noise_reduction, -80, -20… in set_parameters()
786 dnch->band_excit[i] = av_clipd(dnch->band_excit[i], min, max); in config_input()
965 new_band_noise[m] = av_clipd(new_band_noise[m], -24.0, 24.0); in set_noise_profile()
Dvf_colorkey.c60 return av_clipd((diff - similarity) * iblend, 0.0, 1.0) * max; in do_colorkey_pixel()
Daf_afade.c75 gain = av_clipd(1.0 * index / range, 0, 1.0); in fade_gain()
100 gain = av_clipd(1 + 0.2 * log10(gain), 0, 1.0); in fade_gain()
Daf_aecho.c189 *d = av_clipd(out, min, max); \
Daf_alimiter.c285 dst[c] = av_clipd(dst[c], -limit, limit) * level * level_out; in filter_frame()
Daf_astats.c318 index = av_clip(lrint(av_clipd(FFABS(nd), 0.0, 1.0) * HISTOGRAM_MAX), 0, HISTOGRAM_MAX); in update_stat()
323 … p->histogram[av_clip(lrint(av_clipd(FFABS(drop), 0.0, 1.0) * HISTOGRAM_MAX), 0, HISTOGRAM_MAX)]--; in update_stat()
Daf_asoftclip.c294 dst[n] = av_clipd(dst[n] * factor, -1., 1.); in filter_dbl()
Davf_showcqt.c442 x = av_clipd(x, 0.0, 1.0); in r_func()
448 x = av_clipd(x, 0.0, 1.0); in g_func()
454 x = av_clipd(x, 0.0, 1.0); in b_func()
Dvf_deshake_opencl.c501 confidence = av_clipd(confidence, 0.0, 1.0); in ransac_update_num_iters()
502 num_outliers = av_clipd(num_outliers, 0.0, 1.0); in ransac_update_num_iters()
Dvf_pseudocolor.c130 return av_clipd(x, 0., 1.); in limit()
Dvf_xfade.c1752 xi = av_clipd(x, 0, w - 1); in getpix()
1753 yi = av_clipd(y, 0, h - 1); in getpix()
/third_party/ffmpeg/libavutil/x86/
Dintmath.h107 #define av_clipd av_clipd_sse2 macro
139 #undef av_clipd
140 #define av_clipd av_clipd_avx macro
/third_party/ffmpeg/libavutil/
Dcommon.h145 #ifndef av_clipd
146 # define av_clipd av_clipd_c macro
Deval.c213 return e->value * av_clipd(eval_expr(p, e->param[0]), min, max); in eval_expr()
/third_party/ffmpeg/libavformat/
Dcafdec.c75 st->codecpar->sample_rate = av_clipd(av_int2double(avio_rb64(pb)), 0, INT_MAX); in read_desc_chunk()
Dsbgdec.c201 ts = av_clipd(seconds * AV_TIME_BASE, INT64_MIN/2, INT64_MAX/2); in str_to_time()