Home
last modified time | relevance | path

Searched full:peak (Results 1 - 25 of 324) sorted by relevance

12345678910>>...13

/third_party/ffmpeg/libavfilter/opencl/
H A Dtonemap.cl26 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) {
[all...]
H A Dcolorspace_common.cl80 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);
[all...]
/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 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_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 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 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 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 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 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 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...]
/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()
86 fprintf(bat->err, _(" FAIL: Peak freq too low %2.2f Hz\n"), in check_peak()
90 fprintf(bat->err, _(" FAIL: Peak fre in check_peak()
109 int i, start = -1, end = -1, peak = 0, signals = 0; check() local
[all...]
/third_party/libsnd/tests/
H A Dpeak_chunk_test.c60 printf (" aiff - test AIFF file PEAK chunk\n") ; in main()
61 printf (" caf - test CAF file PEAK chunk\n") ; in main()
62 printf (" wav - test WAV file peak chunk\n") ; in main()
130 /* Create some random data with a peak value of 0.66. */ in test_float_peak()
140 /* Write a file with PEAK chunks. */ in test_float_peak()
143 /* Try to confuse the header writer by adding a removing the PEAK chunk. */ in test_float_peak()
180 { printf ("\n\nLine %d: Bad peak value (%f should be %f) for command SFC_GET_SIGNAL_MAX.\n", __LINE__, data [0], (frames / 2) * 0.01) ; in test_float_peak()
190 { printf ("\n\nLine %d: Bad peak value (%f should be %f) for command SFC_GET_MAX_ALL_CHANNELS.\n", __LINE__, data [0], (frames / 2) * 0.01) ; in test_float_peak()
207 /* Write a file ***without*** PEAK chunks. */ in test_float_peak()
210 /* Try to confuse the header writer by adding a removing the PEAK chun in test_float_peak()
[all...]
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/libavformat/
H A Dwavenc.c11 * EBU Tech 3285 - Supplement 3 - Peak Envelope Chunk encoder
163 av_log(s, AV_LOG_ERROR, "Codec %s not supported for Peak Chunk\n", in peak_init_writer()
172 "Writing 16 bit peak for 8 bit audio does not make sense\n"); in peak_init_writer()
252 int64_t peak = ff_start_tag(s->pb, "levl"); in peak_write_chunk() local
257 /* Peak frame of incomplete block at end */ in peak_write_chunk()
267 av_log(s, AV_LOG_INFO, "Writing local time and date to Peak Envelope Chunk\n"); in peak_write_chunk()
283 avio_wl32(pb, wav->peak_num_frames); /* number of peak frames */ in peak_write_chunk()
291 ff_end_tag(pb, peak); in peak_write_chunk()
294 wav->data = peak; in peak_write_chunk()
488 { "write_peak", "Write Peak Envelop
[all...]
/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/ffmpeg/tests/ref/lavf/
H A Dpeak.wav1 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/jerryscript/jerry-core/jmem/
H A Djmem.h159 size_t peak_allocated_bytes; /**< peak allocated bytes */
162 size_t peak_waste_bytes; /**< peak wasted bytes */
165 size_t peak_byte_code_bytes; /**< peak allocated memory for byte code */
168 size_t peak_string_bytes; /**< peak allocated memory for strings */
171 size_t peak_object_bytes; /**< peak allocated memory for objects */
174 size_t peak_property_bytes; /**< peak allocated memory for properties */
/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-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/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 in cfhd_decode()
[all...]
H A Dcfhd.h134 typedef struct Peak { struct
138 } Peak; typedef
185 Peak peak; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/
H A Dmemory_buffer_alloc.h100 * \brief Get the peak heap usage so far
102 * \param max_used Peak number of bytes in use or committed. This
105 * \param max_blocks Peak number of blocks in use, including free and used
110 * \brief Reset peak statistics
/foundation/arkui/ace_engine_lite/frameworks/common/memory/
H A Dmem_proc.cpp133 size_t peak = stats.peak_allocated_bytes; in JerryMemTracing() local
153 // jerry peak memory in JerryMemTracing()
154 if (sprintf_s(markdata, MSG_LENGTH, "jerry heap peak:%d(KB)\n", uint32_t(peak / UNIT)) < 0) { in JerryMemTracing()
/third_party/mbedtls/include/mbedtls/
H A Dmemory_buffer_alloc.h103 * \brief Get the peak heap usage so far
105 * \param max_used Peak number of bytes in use or committed. This
108 * \param max_blocks Peak number of blocks in use, including free and used
113 * \brief Reset peak statistics

Completed in 16 milliseconds

12345678910>>...13