Home
last modified time | relevance | path

Searched full:peaks (Results 1 - 25 of 49) sorted by relevance

12

/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/
H A Dpeak_finder.cpp66 std::vector<bool> PeakFinder::GetVoiceFlag(const std::vector<double> &data, const std::vector<int32_t> &peaks, in GetVoiceFlag() argument
74 for (size_t i = 0; i < peaks.size(); i++) { in GetVoiceFlag()
75 if (peaks[i] > data.size()) { in GetVoiceFlag()
78 peakAmp.push_back(fabs(data[peaks[i]])); in GetVoiceFlag()
104 GetEachIndependentEnvelope(triangularEnvelope, peaks, lowerAmp, mountainPosition); in GetVoiceFlag()
145 void PeakFinder::GetEachIndependentEnvelope(const std::vector<double> &data, const std::vector<int32_t> &peaks, in GetEachIndependentEnvelope() argument
152 for (size_t i = 0; i < peaks.size(); i++) { in GetEachIndependentEnvelope()
153 int32_t index = peaks[i]; in GetEachIndependentEnvelope()
214 std::vector<int32_t> PeakFinder::PeakFilterMinRange(const std::vector<double> &data, std::vector<int32_t> &peaks, in PeakFilterMinRange() argument
217 if (peaks in PeakFilterMinRange()
240 FilterLowPeak(const std::vector<double> &envelope, const std::vector<int32_t> &peaks, double removeRatio) FilterLowPeak() argument
264 FilterSecondaryPeak(const std::vector<double> &envelope, const std::vector<int32_t> &peaks, double lowerAmp) FilterSecondaryPeak() argument
452 std::vector<int32_t> peaks; DetectPeak() local
483 GetLowestPeakValue(const std::vector<double> &envelope, const std::vector<int32_t> &peaks) GetLowestPeakValue() argument
659 GetIsolatedEnvelope(const std::vector<double> &data, const std::vector<int32_t> &peaks, double lowerAmp, IsolatedEnvelopeInfo &isolatedEnvelopeInfo) GetIsolatedEnvelope() argument
[all...]
/third_party/libsnd/src/
H A Dcommand.c342 psf_calc_max_all_channels (SF_PRIVATE *psf, double *peaks, int normalize) in psf_calc_max_all_channels() argument
359 memset (peaks, 0, sizeof (double) * psf->sf.channels) ; in psf_calc_max_all_channels()
375 peaks [chan] = temp > peaks [chan] ? temp : peaks [chan] ; in psf_calc_max_all_channels()
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()
403 psf_get_max_all_channels (SF_PRIVATE *psf, double *peaks) in psf_get_max_all_channels() argument
410 peaks [k] = psf->peak_info->peaks [ in psf_get_max_all_channels()
[all...]
H A Daiff.c527 psf->peak_info->peaks [k].value = value ; in aiff_read_header()
528 psf->peak_info->peaks [k].position = position ; in aiff_read_header()
531 k, psf->peak_info->peaks [k].position, psf->peak_info->peaks [k].value) ; in aiff_read_header()
1191 psf_binheader_writef (psf, "Eft8", BHWf ((float) psf->peak_info->peaks [ch].value), BHW8 (psf->peak_info->peaks [ch].position)) ; in aiff_rewrite_header()
1468 psf_binheader_writef (psf, "Eft8", BHWf ((float) psf->peak_info->peaks [k].value), BHW8 (psf->peak_info->peaks [k].position)) ; in aiff_write_header()
1518 psf_binheader_writef (psf, "Eft8", BHWf ((float) psf->peak_info->peaks [k].value), BHW8 (psf->peak_info->peaks [ in aiff_write_tailer()
[all...]
H A Dcaf.c433 psf->peak_info->peaks [k].value = value ; in caf_read_header()
434 psf->peak_info->peaks [k].position = position ; in caf_read_header()
733 psf_binheader_writef (psf, "Ef8", BHWf ((float) psf->peak_info->peaks [k].value), BHW8 (psf->peak_info->peaks [k].position)) ; in caf_write_header()
H A Dwavlike.c1241 psf->peak_info->peaks [uk].value = value ; in wavlike_read_peak_chunk()
1242 psf->peak_info->peaks [uk].position = position ; in wavlike_read_peak_chunk()
1245 uk, psf->peak_info->peaks [uk].position, psf->peak_info->peaks [uk].value) ; in wavlike_read_peak_chunk()
1263 psf_binheader_writef (psf, "ft8", BHWf (psf->peak_info->peaks [k].value), BHW8 (psf->peak_info->peaks [k].position)) ; in wavlike_write_peak_chunk()
H A Dcommon.h224 PEAK_POS peaks [] ; member
801 int psf_calc_max_all_channels (SF_PRIVATE *psf, double *peaks, int normalize) ;
804 int psf_get_max_all_channels (SF_PRIVATE *psf, double *peaks) ;
H A Ddouble64.c448 if (fmaxval > psf->peak_info->peaks [chan].value) in double64_peak_update()
449 { psf->peak_info->peaks [chan].value = fmaxval ; in double64_peak_update()
450 psf->peak_info->peaks [chan].position = psf->write_current + indx + (position / psf->sf.channels) ; in double64_peak_update()
H A Dfloat32.c399 if (fmaxval > psf->peak_info->peaks [chan].value) in float32_peak_update()
400 { psf->peak_info->peaks [chan].value = fmaxval ; in float32_peak_update()
401 psf->peak_info->peaks [chan].position = psf->write_current + indx + (position / psf->sf.channels) ; in float32_peak_update()
/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/include/
H A Dpeak_finder.h114 * @return Return the index of peaks.
141 const std::vector<int32_t> &peaks, double lowerAmp);
142 void GetEachIndependentEnvelope(const std::vector<double> &data, const std::vector<int32_t> &peaks,
147 std::vector<int32_t> &peaks, int32_t minSampleCount);
149 const std::vector<int32_t> &peaks, double removeRatio);
153 const std::vector<int32_t> &peaks, double lowerAmp);
159 double GetLowestPeakValue(const std::vector<double> &envelope, const std::vector<int32_t> &peaks);
181 int32_t GetIsolatedEnvelope(const std::vector<double> &data, const std::vector<int32_t> &peaks,
/third_party/ffmpeg/libavfilter/
H A Daf_drmeter.c36 uint32_t peaks[BINS+1]; member
81 p->peaks[peak_bin]++; in finish_block()
150 if (p->peaks[BINS - i]) { in print_stats()
H A Df_ebur128.c83 double *true_peaks; ///< true peaks per channel
84 double *sample_peaks; ///< sample peaks per channel
85 double *true_peaks_per_frame; ///< true peaks in a frame per channel
415 * As for the true peaks mode, it just simplifies the resampling buffer in config_audio_input()
H A Daf_apsyclip.c436 // repeat clipping-filtering process a few times to control both the peaks and the spectrum in feed()
442 // boosting the delta when largs peaks are still present is dangerous in feed()
/third_party/libsnd/docs/
H A Dcommand.md275 double peaks [number_of_channels] ;
276 sf_command (sndfile, SFC_CALC_MAX_ALL_CHANNELS, peaks, sizeof (peaks)) ;
281 Zero if peaks have been calculated successfully and non-zero otherwise.
305 double peaks [number_of_channels] ;
306 sf_command (sndfile, SFC_CALC_NORM_MAX_ALL_CHANNELS, peaks, sizeof (peaks)) ;
311 Zero if peaks have been calculated successfully and non-zero otherwise.
364 double peaks [number_of_channels] ;
365 sf_command (sndfile, SFC_GET_MAX_ALL_CHANNELS, peaks, sizeo
[all...]
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/include/
H A Dconversion_fft.h303 std::shared_ptr<float> peaks_ { nullptr }; // peaks of the averages, aka "maxAverages" in other implementations
305 int32_t peakHoldTime_ { 0 }; // how long do we hold peaks? (in fft frames)
306 float peakDecayRate_ { 0.0F }; // how quickly the peaks decay: 0f=instantly .. 1f=not at all
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
H A DPeakDetector.h23 * Measure a peak envelope by rising with the peaks,
/third_party/skia/third_party/externals/oboe/src/flowgraph/
H A DClipToRange.h30 // It is designed to allow occasional transient peaks.
/third_party/libsnd/tests/
H A Dpeak_chunk_test.c134 /* Insert some larger peaks a know locations. */ in test_float_peak()
148 /* Write the data in four passed. The data is designed so that peaks will in test_float_peak()
215 /* Write the data in four passed. The data is designed so that peaks will in test_float_peak()
/base/sensors/sensor/vibration_convert/core/algorithm/onset/include/
H A Donset.h52 * @brief Locate note onset events by picking peaks in an onset strength envelope..
/third_party/alsa-utils/speaker-test/
H A Dst2095.c155 // Limit peaks to +/-MaxAmp in generate_st2095_noise_sample()
/third_party/lwip/src/include/lwip/apps/
H A Dsntp_opts.h139 * between 1 and 5 minutes (in milliseconds) to prevent load peaks.
/third_party/pulseaudio/src/pulsecore/
H A Dmeson.build38 'resampler/peaks.c',
H A Dresampler.c194 /* The Peaks resampler only supports downsampling. in fix_method()
198 pa_log_warn("The 'peaks' resampler only supports downsampling, reverting to resampler 'auto'."); in fix_method()
318 /* PEAKS, COPY and TRIVIAL do not benefit from increased in choose_work_format()
810 "peaks",
/third_party/pulseaudio/ohosbuild/src/pulsecore/
H A DBUILD.gn75 "../../../src/pulsecore/resampler/peaks.c",
/third_party/skia/gm/
H A Dpath_stroke_with_zero_length.cpp36 // visible pieces of cap geometry. These are counted by scanning horizontally for peaks (blobs).
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/src/
H A Dconversion_fft.cpp297 // update the peaks separately in Calculate()

Completed in 25 milliseconds

12