Home
last modified time | relevance | path

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

123

/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...]
/kernel/linux/linux-5.10/sound/pci/au88x0/
H A Dau88x0_eq.c312 static void vortex_EqHw_SetLevels(vortex_t *vortex, const u16 peaks[]) in vortex_EqHw_SetLevels() argument
317 /* set left peaks */ in vortex_EqHw_SetLevels()
319 hwwrite(vortex->mmio, 0x2b024 + i * VORTEX_BAND_COEFF_SIZE, peaks[i]); in vortex_EqHw_SetLevels()
322 hwwrite(vortex->mmio, 0x2b3cc, peaks[eqhw->this04]); in vortex_EqHw_SetLevels()
323 hwwrite(vortex->mmio, 0x2b3d8, peaks[eqhw->this04 + 1]); in vortex_EqHw_SetLevels()
325 /* set right peaks */ in vortex_EqHw_SetLevels()
328 peaks[i + (eqhw->this04 + 2)]); in vortex_EqHw_SetLevels()
331 hwwrite(vortex->mmio, 0x2b3e4, peaks[2 + (eqhw->this04 * 2)]); in vortex_EqHw_SetLevels()
332 hwwrite(vortex->mmio, 0x2b3f0, peaks[3 + (eqhw->this04 * 2)]); in vortex_EqHw_SetLevels()
475 /* Read all EQ peaks
476 vortex_EqHw_GetTenBandLevels(vortex_t * vortex, u16 peaks[]) vortex_EqHw_GetTenBandLevels() argument
658 vortex_Eqlzr_GetAllPeaks(vortex_t * vortex, u16 * peaks, int *count) vortex_Eqlzr_GetAllPeaks() argument
832 u16 peaks[20]; snd_vortex_peaks_get() local
[all...]
/kernel/linux/linux-6.6/sound/pci/au88x0/
H A Dau88x0_eq.c312 static void vortex_EqHw_SetLevels(vortex_t *vortex, const u16 peaks[]) in vortex_EqHw_SetLevels() argument
317 /* set left peaks */ in vortex_EqHw_SetLevels()
319 hwwrite(vortex->mmio, 0x2b024 + i * VORTEX_BAND_COEFF_SIZE, peaks[i]); in vortex_EqHw_SetLevels()
322 hwwrite(vortex->mmio, 0x2b3cc, peaks[eqhw->this04]); in vortex_EqHw_SetLevels()
323 hwwrite(vortex->mmio, 0x2b3d8, peaks[eqhw->this04 + 1]); in vortex_EqHw_SetLevels()
325 /* set right peaks */ in vortex_EqHw_SetLevels()
328 peaks[i + (eqhw->this04 + 2)]); in vortex_EqHw_SetLevels()
331 hwwrite(vortex->mmio, 0x2b3e4, peaks[2 + (eqhw->this04 * 2)]); in vortex_EqHw_SetLevels()
332 hwwrite(vortex->mmio, 0x2b3f0, peaks[3 + (eqhw->this04 * 2)]); in vortex_EqHw_SetLevels()
475 /* Read all EQ peaks
476 vortex_EqHw_GetTenBandLevels(vortex_t * vortex, u16 peaks[]) vortex_EqHw_GetTenBandLevels() argument
658 vortex_Eqlzr_GetAllPeaks(vortex_t * vortex, u16 * peaks, int *count) vortex_Eqlzr_GetAllPeaks() argument
832 u16 peaks[20]; snd_vortex_peaks_get() local
[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()
/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()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Djr3_pci.h392 * (ex. to watch filter3 data for peaks, set this value to 0x00a8).
481 * not miss any peaks. To read the data, use either the read peaks
482 * command (pg. 40), or the read and reset peaks command (pg. 39).
483 * The address of the data to watch for peaks is stored in the
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Djr3_pci.h392 * (ex. to watch filter3 data for peaks, set this value to 0x00a8).
481 * not miss any peaks. To read the data, use either the read peaks
482 * command (pg. 40), or the read and reset peaks command (pg. 39).
483 * The address of the data to watch for peaks is stored in the
/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..
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/
H A Dsntp_opts.h164 * between 1 and 5 minutes (in milliseconds) to prevent load peaks.
/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',

Completed in 25 milliseconds

123