/third_party/ffmpeg/libavfilter/opencl/ |
D | tonemap.cl | 26 extern float3 ootf(float3 c, float peak); 27 extern float3 inverse_ootf(float3 c, float peak); 31 float peak; 40 float direct(float s, float peak) { 44 float linear(float s, float peak) { 45 return s * tone_param / peak; 48 float gamma(float s, float peak) { 49 float p = s > 0.05f ? s /peak : 0.05f / peak; 54 float clip(float s, float peak) { 58 float reinhard(float s, float peak) { [all …]
|
D | colorspace_common.cl | 80 float3 ootf_hlg(float3 c, float peak) { 82 float gamma = 1.2f + 0.42f * log10(peak * REFERENCE_WHITE / 1000.0f); 84 float factor = peak * powr(luma, gamma - 1.0f) / powr(12.0f, gamma); 88 float3 inverse_ootf_hlg(float3 c, float peak) { 89 float gamma = 1.2f + 0.42f * log10(peak * REFERENCE_WHITE / 1000.0f); 90 c *= powr(12.0f, gamma) / peak; 191 float3 ootf(float3 c, float peak) { 193 return ootf_impl(c, peak); 199 float3 inverse_ootf(float3 c, float peak) { 201 return inverse_ootf_impl(c, peak);
|
/third_party/ffmpeg/libavfilter/ |
D | vf_tonemap.c | 69 double peak; member 116 static float mobius(float in, float j, double peak) in mobius() argument 123 a = -j * j * (peak - 1.0f) / (j * j - 2.0f * j + peak); in mobius() 124 b = (j * j - 2.0f * j * peak + peak) / FFMAX(peak - 1.0f, 1e-6); in mobius() 131 const AVPixFmtDescriptor *desc, int x, int y, double peak) in tonemap() argument 167 sig = sig * s->param / peak; in tonemap() 170 sig = sig > 0.05f ? pow(sig / peak, 1.0f / s->param) in tonemap() 171 : sig * pow(0.05f / peak, 1.0f / s->param) / 0.05f; in tonemap() 177 sig = hable(sig) / hable(peak); in tonemap() 180 sig = sig / (sig + s->param) * (peak + s->param) / peak; in tonemap() [all …]
|
D | af_alimiter.c | 97 double peak, double limit, double patt, int asc) in get_rdelta() argument 148 double peak = 0; in filter_frame() local 154 peak = FFMAX(peak, fabs(sample)); in filter_frame() 157 if (s->auto_release && peak > limit) { in filter_frame() 158 s->asc += peak; in filter_frame() 162 if (peak > limit) { in filter_frame() 163 double patt = FFMIN(limit / peak, 1.); in filter_frame() 165 peak, limit, patt, 0); in filter_frame() 166 double delta = (limit / peak - s->att) / buffer_size * channels; in filter_frame() 183 …pdelta = (limit / peak - limit / ppeak) / (((buffer_size - nextpos[j] + s->pos) % buffer_size) / c… in filter_frame() [all …]
|
D | colorspace.c | 171 double peak = 0; in ff_determine_signal_peak() local 175 peak = clm->MaxCLL / REFERENCE_WHITE; in ff_determine_signal_peak() 179 if (!peak && sd) { in ff_determine_signal_peak() 182 peak = av_q2d(metadata->max_luminance) / REFERENCE_WHITE; in ff_determine_signal_peak() 187 if (!peak) in ff_determine_signal_peak() 188 peak = in->color_trc == AVCOL_TRC_SMPTE2084 ? 100.0f : 10.0f; in ff_determine_signal_peak() 190 return peak; in ff_determine_signal_peak() 193 void ff_update_hdr_metadata(AVFrame *in, double peak) in ff_update_hdr_metadata() argument 199 clm->MaxCLL = (unsigned)(peak * REFERENCE_WHITE); in ff_update_hdr_metadata() 206 metadata->max_luminance = av_d2q(peak * REFERENCE_WHITE, 10000); in ff_update_hdr_metadata()
|
D | af_replaygain.c | 310 float peak; member 375 float peak = 0.0; in calc_stereo_peak() local 378 if (samples[0] > peak) in calc_stereo_peak() 379 peak = samples[0]; in calc_stereo_peak() 380 else if (-samples[0] > peak) in calc_stereo_peak() 381 peak = -samples[0]; in calc_stereo_peak() 383 if (samples[1] > peak) in calc_stereo_peak() 384 peak = samples[1]; in calc_stereo_peak() 385 else if (-samples[1] > peak) in calc_stereo_peak() 386 peak = -samples[1]; in calc_stereo_peak() [all …]
|
D | af_drmeter.c | 32 float peak; member 102 float peak, rms; in finish_block() local 105 peak = p->peak; in finish_block() 107 peak_bin = av_clip(peak * 10000, 0, 10000); in finish_block() 111 p->peak = 0; in finish_block() 123 p->peak = FFMAX(FFABS(sample), p->peak); in update_stat()
|
D | asrc_sinc.c | 224 int i, work_len, begin, end, imp_peak = 0, peak = 0; in fir_to_phase() local 304 peak = i; in fir_to_phase() 310 while (peak && fabsf(work[peak - 1]) > fabsf(work[peak]) && (work[peak - 1] * work[peak] > 0)) { in fir_to_phase() 311 peak--; in fir_to_phase() 317 begin = peak - *len / 2; in fir_to_phase() 321 begin = peak - (begin & ~3); in fir_to_phase() 322 end = peak + 1 + ((end + 3) & ~3); in fir_to_phase() 334 *post_len = phase > 50 ? peak - begin : begin + *len - (peak + 1); in fir_to_phase() 337 work_len, pi_wraps[work_len >> 1] / M_PI, peak, peak_imp_sum, imp_peak, in fir_to_phase()
|
D | vf_convolution.c | 112 const uint8_t *c[], int peak, int radius, in filter16_prewitt() argument 124 dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); in filter16_prewitt() 130 const uint8_t *c[], int peak, int radius, in filter16_roberts() argument 140 dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); in filter16_roberts() 146 const uint8_t *c[], int peak, int radius, in filter16_sobel() argument 158 dst[x] = av_clip(sqrtf(suma*suma + sumb*sumb) * scale + delta, 0, peak); in filter16_sobel() 164 const uint8_t *c[], int peak, int radius, in filter16_kirsch() argument 207 dst[x] = av_clip(FFABS(sum0) * scale + delta, 0, peak); in filter16_kirsch() 213 const uint8_t *c[], int peak, int radius, in filter_prewitt() argument 233 const uint8_t *c[], int peak, int radius, in filter_roberts() argument [all …]
|
D | vf_tonemap_opencl.c | 63 double peak; member 307 AVFrame *output, AVFrame *input, float peak) { in launch_kernel() argument 319 CL_SET_KERNEL_ARG(kernel, 5, cl_float, &peak); in launch_kernel() 346 double peak = ctx->peak; in tonemap_opencl_filter_frame() local 368 if (!peak) in tonemap_opencl_filter_frame() 369 peak = ff_determine_signal_peak(input); in tonemap_opencl_filter_frame() 411 err = launch_kernel(avctx, ctx->kernel, output, input, peak); in tonemap_opencl_filter_frame() 515 …{ "peak", "signal peak override", OFFSET(peak), AV_OPT_TYPE_DOUBLE, {.dbl = 0}, 0, DBL_MAX, F…
|
/third_party/gstreamer/gstplugins_good/gst/replaygain/ |
D | rganalysis.c | 77 gdouble peak; member 343 acc->peak = MAX (acc->peak, acc_other->peak); in accumulator_add() 352 acc->peak = 0.; in accumulator_clear() 382 *result_peak = acc->peak; in accumulator_result() 529 ctx->track.peak = MAX (ctx->track.peak, fabs (conv_samples[i])); in rg_analysis_analyze_mono_float() 558 ctx->track.peak = MAX (ctx->track.peak, fabs (old_sample)); in rg_analysis_analyze_stereo_float() 562 ctx->track.peak = MAX (ctx->track.peak, fabs (old_sample)); in rg_analysis_analyze_stereo_float() 597 ctx->track.peak = MAX (ctx->track.peak, in rg_analysis_analyze_mono_int16() 634 ctx->track.peak = MAX (ctx->track.peak, in rg_analysis_analyze_stereo_int16() 773 rg_analysis_track_result (RgAnalysisCtx * ctx, gdouble * gain, gdouble * peak) in rg_analysis_track_result() argument [all …]
|
D | gstrgvolume.c | 643 gdouble gain, peak; in gst_rg_volume_determine_gain() local 649 peak = 1.0; in gst_rg_volume_determine_gain() 656 peak = self->album_peak; in gst_rg_volume_determine_gain() 659 peak = 1.0; in gst_rg_volume_determine_gain() 670 peak = self->track_peak; in gst_rg_volume_determine_gain() 673 peak = 1.0; in gst_rg_volume_determine_gain() 684 if (LINEAR_TO_DB (peak) + gain > self->headroom) { in gst_rg_volume_determine_gain() 685 *result_gain = LINEAR_TO_DB (1. / peak) + self->headroom; in gst_rg_volume_determine_gain()
|
D | rganalysis.h | 48 gdouble * peak); 50 gdouble * peak);
|
/third_party/ffmpeg/tests/ref/lavf/ |
D | peak.wav | 1 105805963fb767d00da056f42f32d9f3 *tests/data/lavf/lavf.peak.wav 2 89094 tests/data/lavf/lavf.peak.wav 3 tests/data/lavf/lavf.peak.wav CRC=0x3a1da17e
|
/third_party/gstreamer/gstplugins_good/gst/level/ |
D | gstlevel.c | 219 filter->peak = NULL; in gst_level_init() 245 g_free (filter->peak); in gst_level_finalize() 252 filter->peak = NULL; in gst_level_finalize() 486 g_free (filter->peak); in gst_level_set_caps() 492 filter->peak = g_new (gdouble, channels); in gst_level_set_caps() 500 filter->CS[i] = filter->peak[i] = filter->last_peak[i] = in gst_level_set_caps() 561 gst_level_message_append_channel (GstMessage * m, gdouble rms, gdouble peak, in gst_level_message_append_channel() argument 580 g_value_set_double (&v, peak); in gst_level_message_append_channel() 663 &filter->peak[i]); in gst_level_transform_ip() 670 filter->peak[i] = 0.0; in gst_level_transform_ip() [all …]
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-var-gvar-table.hh | 119 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 != end) scalar *= (float) (end - v) / (end - peak); } in calculate_scalar() 134 else if (!v || v < hb_min (0, peak) || v > hb_max (0, peak)) return 0.f; in calculate_scalar() 136 scalar *= (float) v / peak; in calculate_scalar()
|
/third_party/harfbuzz/src/ |
D | hb-ot-var-gvar-table.hh | 119 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 != end) scalar *= (float) (end - v) / (end - peak); } in calculate_scalar() 134 else if (!v || v < hb_min (0, peak) || v > hb_max (0, peak)) return 0.f; in calculate_scalar() 136 scalar *= (float) v / peak; in calculate_scalar()
|
/third_party/skia/third_party/externals/freetype/src/base/ |
D | ftbbox.c | 272 FT_Pos peak = 0; in cubic_peak() local 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/freetype/src/base/ |
D | ftbbox.c | 272 FT_Pos peak = 0; in cubic_peak() local 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/flutter/skia/third_party/externals/freetype/src/base/ |
D | ftbbox.c | 273 FT_Pos peak = 0; in cubic_peak() local 341 peak = q1; in cubic_peak() 346 peak = q4; in cubic_peak() 352 peak >>= shift; in cubic_peak() 354 peak <<= -shift; in cubic_peak() 356 return peak; in cubic_peak()
|
/third_party/alsa-utils/bat/ |
D | analyze.c | 65 int check_peak(struct bat *bat, struct analyze *a, int end, int peak, float hz, in check_peak() argument 69 float hz_peak = (float) (peak) * hz; in check_peak() 75 10.0 * log10f(a->mag[peak] / mean)); in check_peak() 108 int i, start = -1, end = -1, peak = 0, signals = 0; in check() local 131 start = peak = end = i; in check() 134 if (a->mag[i] > a->mag[peak]) in check() 135 peak = i; in check() 141 err |= check_peak(bat, a, end, peak, hz, mean, in check()
|
/third_party/ffmpeg/libavcodec/ |
D | cfhd.c | 82 s->peak.level = 0; in init_peak_table_defaults() 83 s->peak.offset = 0; in init_peak_table_defaults() 84 memset(&s->peak.base, 0, sizeof(s->peak.base)); in init_peak_table_defaults() 129 static inline void peak_table(int16_t *band, Peak *peak, int length) in peak_table() argument 133 if (abs(band[i]) > peak->level) in peak_table() 134 band[i] = bytestream2_get_le16(&peak->base); in peak_table() 520 s->peak.level = 0; in cfhd_decode() 618 s->peak.offset &= ~0xffff; in cfhd_decode() 619 s->peak.offset |= (data & 0xffff); in cfhd_decode() 620 s->peak.base = gb; in cfhd_decode() [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | id3v2mux.c | 237 gdouble peak; in test_taglib_id3mux_check_tags() local 239 fail_unless (gst_tag_list_get_double (tags, GST_TAG_TRACK_PEAK, &peak)); in test_taglib_id3mux_check_tags() 240 fail_unless_sorta_equals_float (peak, TEST_TRACK_PEAK); in test_taglib_id3mux_check_tags() 243 gdouble peak; in test_taglib_id3mux_check_tags() local 245 fail_unless (gst_tag_list_get_double (tags, GST_TAG_ALBUM_PEAK, &peak)); in test_taglib_id3mux_check_tags() 246 fail_unless_sorta_equals_float (peak, TEST_ALBUM_PEAK); in test_taglib_id3mux_check_tags()
|
/third_party/alsa-lib/src/pcm/scopes/ |
D | level.c | 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/ |
D | command.c | 373 psf_get_signal_max (SF_PRIVATE *psf, double *peak) in psf_get_signal_max() argument 379 peak [0] = psf->peak_info->peaks [0].value ; in psf_get_signal_max() 382 peak [0] = SF_MAX (peak [0], psf->peak_info->peaks [k].value) ; in psf_get_signal_max()
|