Home
last modified time | relevance | path

Searched refs:peak (Results 1 - 25 of 44) sorted by relevance

12

/third_party/ffmpeg/libavfilter/
H A Dvf_tonemap.c60 double peak; member
96 static float mobius(float in, float j, double peak) in mobius() argument
103 a = -j * j * (peak - 1.0f) / (j * j - 2.0f * j + peak); in mobius()
104 b = (j * j - 2.0f * j * peak + peak) / FFMAX(peak - 1.0f, 1e-6); in mobius()
111 const AVPixFmtDescriptor *desc, int x, int y, double peak) in tonemap()
148 sig = sig * s->param / peak; in tonemap()
151 sig = sig > 0.05f ? pow(sig / peak, 1. in tonemap()
110 tonemap(TonemapContext *s, AVFrame *out, const AVFrame *in, const AVPixFmtDescriptor *desc, int x, int y, double peak) tonemap() argument
178 double peak; global() member
190 double peak = td->peak; tonemap_slice() local
209 double peak = s->peak; filter_frame() local
[all...]
H A Daf_alimiter.c110 double peak, double limit, double patt, int asc) in get_rdelta()
166 double peak = 0; in filter_frame() local
172 peak = FFMAX(peak, fabs(sample)); in filter_frame()
175 if (s->auto_release && peak > limit) { in filter_frame()
176 s->asc += peak; in filter_frame()
180 if (peak > limit) { in filter_frame()
181 double patt = FFMIN(limit / peak, 1.); in filter_frame()
183 peak, limit, patt, 0); in filter_frame()
184 double delta = (limit / peak in filter_frame()
109 get_rdelta(AudioLimiterContext *s, double release, int sample_rate, double peak, double limit, double patt, int asc) get_rdelta() argument
[all...]
H A Dcolorspace.c156 double peak = 0; in ff_determine_signal_peak() local
160 peak = clm->MaxCLL / REFERENCE_WHITE; in ff_determine_signal_peak()
164 if (!peak && sd) { in ff_determine_signal_peak()
167 peak = av_q2d(metadata->max_luminance) / REFERENCE_WHITE; in ff_determine_signal_peak()
170 // For untagged source, use peak of 10000 if SMPTE ST.2084 in ff_determine_signal_peak()
171 // otherwise assume HLG with reference display peak 1000. in ff_determine_signal_peak()
172 if (!peak) in ff_determine_signal_peak()
173 peak = in->color_trc == AVCOL_TRC_SMPTE2084 ? 100.0f : 10.0f; in ff_determine_signal_peak()
175 return peak; in ff_determine_signal_peak()
178 void ff_update_hdr_metadata(AVFrame *in, double peak) in ff_update_hdr_metadata() argument
[all...]
H A Daf_drmeter.c34 float peak; member
74 float peak, rms; in finish_block() local
77 peak = p->peak; in finish_block()
79 peak_bin = av_clip(lrintf(peak * BINS), 0, BINS); in finish_block()
83 p->peak = 0; in finish_block()
95 p->peak = FFMAX(FFABS(sample), p->peak); in update_stat()
H A Daf_replaygain.c310 float peak; member
374 float peak = 0.0; in calc_stereo_peak() local
377 if (samples[0] > peak) in calc_stereo_peak()
378 peak = samples[0]; in calc_stereo_peak()
379 else if (-samples[0] > peak) in calc_stereo_peak()
380 peak = -samples[0]; in calc_stereo_peak()
382 if (samples[1] > peak) in calc_stereo_peak()
383 peak = samples[1]; in calc_stereo_peak()
384 else if (-samples[1] > peak) in calc_stereo_peak()
385 peak in calc_stereo_peak()
[all...]
H A Dasrc_sinc.c219 int i, work_len, begin, end, imp_peak = 0, peak = 0; in fir_to_phase() local
291 /* Find peak pos. */ in fir_to_phase()
296 peak = i; in fir_to_phase()
302 while (peak && fabsf(work[peak - 1]) > fabsf(work[peak]) && (work[peak - 1] * work[peak] > 0)) { in fir_to_phase()
303 peak--; in fir_to_phase()
309 begin = peak in fir_to_phase()
[all...]
H A Dvf_convolution.c110 const uint8_t *c[], int peak, int radius, in filter16_prewitt()
122 dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); in filter16_prewitt()
128 const uint8_t *c[], int peak, int radius, in filter16_roberts()
138 dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); in filter16_roberts()
144 const uint8_t *c[], int peak, int radius, in filter16_sobel()
156 dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); in filter16_sobel()
162 const uint8_t *c[], int peak, int radius, in filter16_scharr()
176 dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); in filter16_scharr()
182 const uint8_t *c[], int peak, int radius, in filter16_kirsch()
225 dst[x] = av_clip(FFABS(sum0) * scale + delta, 0, peak); in filter16_kirsch()
108 filter16_prewitt(uint8_t *dstp, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_prewitt() argument
126 filter16_roberts(uint8_t *dstp, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_roberts() argument
142 filter16_sobel(uint8_t *dstp, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_sobel() argument
160 filter16_scharr(uint8_t *dstp, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_scharr() argument
180 filter16_kirsch(uint8_t *dstp, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_kirsch() argument
229 filter_prewitt(uint8_t *dst, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_prewitt() argument
249 filter_roberts(uint8_t *dst, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_roberts() argument
264 filter_sobel(uint8_t *dst, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_sobel() argument
284 filter_scharr(uint8_t *dst, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_scharr() argument
306 filter_kirsch(uint8_t *dst, int width, float scale, float delta, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_kirsch() argument
354 filter16_3x3(uint8_t *dstp, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_3x3() argument
377 filter16_5x5(uint8_t *dstp, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_5x5() argument
396 filter16_7x7(uint8_t *dstp, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_7x7() argument
415 filter16_row(uint8_t *dstp, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_row() argument
434 filter16_column(uint8_t *dstp, int height, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter16_column() argument
459 filter_7x7(uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_7x7() argument
477 filter_5x5(uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_5x5() argument
495 filter_3x3(uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_3x3() argument
514 filter_row(uint8_t *dst, int width, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_row() argument
532 filter_column(uint8_t *dst, int height, float rdiv, float bias, const int *const matrix, const uint8_t *c[], int peak, int radius, int dstride, int stride, int size) filter_column() argument
[all...]
H A Dvf_tonemap_opencl.c34 // - separate peak-detection from tone-mapping kernel to solve
62 double peak; member
147 // SDR peak is 1.0f in tonemap_opencl_init()
305 AVFrame *output, AVFrame *input, float peak) { in launch_kernel()
317 CL_SET_KERNEL_ARG(kernel, 5, cl_float, &peak); in launch_kernel()
344 double peak = ctx->peak; in tonemap_opencl_filter_frame() local
366 if (!peak) in tonemap_opencl_filter_frame()
367 peak = ff_determine_signal_peak(input); in tonemap_opencl_filter_frame()
409 err = launch_kernel(avctx, ctx->kernel, output, input, peak); in tonemap_opencl_filter_frame()
304 launch_kernel(AVFilterContext *avctx, cl_kernel kernel, AVFrame *output, AVFrame *input, float peak) launch_kernel() argument
[all...]
H A Daf_apsyclip.c89 // 1/window to calculate unwindowed peak. in generate_hann_window()
405 float peak; in feed() local
424 // It would be easier to calculate the peak from the unwindowed input. in feed()
425 // This is just for consistency with the clipped peak calculateion in feed()
430 peak = orig_peak; in feed()
439 // The last 1/3 of rounds have boosted delta to help reach the peak target faster in feed()
443 if (peak < 2.f) in feed()
460 peak = 0; in feed()
462 peak = FFMAX(peak, FFAB in feed()
[all...]
H A Dvf_vectorscope.c78 uint8_t **peak; member
108 { "peak", 0, 0, AV_OPT_TYPE_CONST, {.i64=2}, 0, 0, TFLAGS, "envelope" },
109 { "peak+instant", 0, 0, AV_OPT_TYPE_CONST, {.i64=3}, 0, 0, TFLAGS, "envelope" },
283 s->peak = av_calloc(s->size, sizeof(*s->peak)); in config_output()
284 if (!s->peak) in config_output()
288 s->peak[i] = s->peak_memory + s->size * i; in config_output()
326 s->peak[i][j] = 1; in envelope_peak16()
337 if (s->peak[i][j] && (((!j || !s->peak[ in envelope_peak16()
[all...]
H A Daf_ashowinfo.c120 static void print_peak(AVFilterContext *ctx, const char *str, uint32_t peak) in print_peak() argument
123 if (!peak) in print_peak()
126 av_log(ctx, AV_LOG_INFO, "%f", (float)peak / UINT32_MAX); in print_peak()
142 print_peak(ctx, "track peak", rg->track_peak); in dump_replaygain()
144 print_peak(ctx, "album peak", rg->album_peak); in dump_replaygain()
H A Daf_volume.c341 uint32_t peak = 100000; in filter_frame() local
349 peak = replaygain->track_peak; in filter_frame()
354 peak = replaygain->album_peak; in filter_frame()
360 p = peak / 100000.0f; in filter_frame()
H A Dcolorspace.h39 void ff_update_hdr_metadata(AVFrame *in, double peak);
H A Dconvolution.h59 const uint8_t *c[], int peak, int radius,
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-var-gvar-table.hh119 int peak = peak_tuple[i]; in calculate_scalar() local
120 if (!peak || v == peak) continue; in calculate_scalar()
126 if (unlikely (start > peak || peak > end || in calculate_scalar()
127 (start < 0 && end > 0 && peak))) continue; in calculate_scalar()
129 if (v < peak) in calculate_scalar()
130 { if (peak != start) scalar *= (float) (v - start) / (peak - start); } in calculate_scalar()
132 { if (peak ! in calculate_scalar()
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A Dftbbox.c272 FT_Pos peak = 0; in cubic_peak() local
276 /* This function finds a peak of a cubic segment if it is above 0 */ in cubic_peak()
283 /* for the peak to exist and avoids undefined FT_MSB. */ in cubic_peak()
309 /* for a peak to exist above 0, the cubic segment must have */ in cubic_peak()
340 peak = q1; in cubic_peak()
345 peak = q4; in cubic_peak()
351 peak >>= shift; in cubic_peak()
353 peak <<= -shift; in cubic_peak()
355 return peak; in cubic_peak()
/third_party/alsa-utils/bat/
H A Danalyze.c42 /* calculate peak-to-average amplitude */ in check_amplitude()
62 * @return 0 if peak detected at right frequency,
63 * 1 if peak detected somewhere else
66 int check_peak(struct bat *bat, struct analyze *a, int end, int peak, float hz, in check_peak() argument
70 float hz_peak = (float) (peak) * hz; in check_peak()
75 fprintf(bat->log, _("Detected peak at %2.2f Hz of %2.2f dB\n"), hz_peak, in check_peak()
76 10.0 * log10f(a->mag[peak] / mean)); in check_peak()
81 fprintf(bat->err, _(" WARNING: Found low peak %2.2f Hz,"), in check_peak()
109 int i, start = -1, end = -1, peak = 0, signals = 0; in check() local
130 /* find peak star in check()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dcfhd.c83 s->peak.level = 0; in init_peak_table_defaults()
84 s->peak.offset = 0; in init_peak_table_defaults()
85 memset(&s->peak.base, 0, sizeof(s->peak.base)); in init_peak_table_defaults()
130 static inline void peak_table(int16_t *band, Peak *peak, int length) in peak_table() argument
134 if (abs(band[i]) > peak->level) in peak_table()
135 band[i] = bytestream2_get_le16(&peak->base); in peak_table()
519 s->peak.level = 0; in cfhd_decode()
617 s->peak.offset &= ~0xffff; in cfhd_decode()
618 s->peak in cfhd_decode()
[all...]
H A Ddcaadpcm.c186 int len, int32_t peak) in ff_dcaadpcm_do_real()
200 out[i] = quantize_value(av_clip64(delta, -peak, peak), quant); in ff_dcaadpcm_do_real()
183 ff_dcaadpcm_do_real(int pred_vq_index, softfloat quant, int32_t scale_factor, int32_t step_size, const int32_t *prev_hist, const int32_t *in, int32_t *next_hist, int32_t *out, int len, int32_t peak) ff_dcaadpcm_do_real() argument
/third_party/alsa-lib/src/pcm/scopes/
H A Dlevel.c28 /* milliseconds for peak to disappear */
33 int16_t peak; member
146 lev >= l->peak) { in level_update()
147 l->peak = lev; in level_update()
154 peak_pos = l->peak * level->bar_width / 32768; in level_update()
/third_party/libsnd/src/
H A Dcommand.c388 psf_get_signal_max (SF_PRIVATE *psf, double *peak) in psf_get_signal_max() argument
394 peak [0] = psf->peak_info->peaks [0].value ; in psf_get_signal_max()
397 peak [0] = SF_MAX (peak [0], psf->peak_info->peaks [k].value) ; in psf_get_signal_max()
/third_party/libsnd/tests/
H A Dcommand_test.c85 printf (" peak - test peak calculation\n") ; in main()
123 if (do_all || strcmp (argv [1], "peak") == 0) in main()
124 { calc_peak_test (SF_ENDIAN_BIG | SF_FORMAT_RAW, "be-peak.raw", 1) ; in main()
125 calc_peak_test (SF_ENDIAN_LITTLE | SF_FORMAT_RAW, "le-peak.raw", 1) ; in main()
126 calc_peak_test (SF_ENDIAN_BIG | SF_FORMAT_RAW, "be-peak.raw", 7) ; in main()
127 calc_peak_test (SF_ENDIAN_LITTLE | SF_FORMAT_RAW, "le-peak.raw", 7) ; in main()
562 double peak ; in calc_peak_test() local
604 sf_command (file, SFC_CALC_SIGNAL_MAX, &peak, sizeof (peak)) ; in calc_peak_test()
[all...]
/third_party/ffmpeg/tests/fate/
H A Dlavf-audio.mak11 FATE_LAVF_AUDIO-$(call ENCDEC, PCM_S16LE, WAV) += peak.wav
36 fate-lavf-peak.wav: CMD = lavf_audio "" "-write_peak on"
/third_party/ltp/testcases/kernel/sched/tool/
H A Dtime-schedule.c441 unsigned long peak = 0; in compute_median() local
452 /* Now search for peak. Position of peak is median */ in compute_median()
454 if (table[count] < peak) in compute_median()
456 peak = table[count]; in compute_median()
/third_party/ffmpeg/libavfilter/x86/
H A Dvf_convolution_init.c29 const uint8_t *c[], int peak, int radius,

Completed in 17 milliseconds

12