/third_party/pulseaudio/sonic/ |
H A D | Sonic.java | 525 for(int period = minPeriod; period <= maxPeriod; period++) { in findPitchPeriodInRange() 527 for(int i = 0; i < period; i++) { in findPitchPeriodInRange() 529 short pVal = samples[position + period + i]; in findPitchPeriodInRange() 535 if(diff*bestPeriod < minDiff*period) { in findPitchPeriodInRange() 537 bestPeriod = period; in findPitchPeriodInRange() 539 if(diff*worstPeriod > maxDiff*period) { in findPitchPeriodInRange() 541 worstPeriod = period; in findPitchPeriodInRange() 550 // approximated by the previous pitch period estimat 551 prevPeriodBetter( int period, int minDiff, int maxDiff, boolean preferNewPeriod) prevPeriodBetter() argument 805 skipPitchPeriod( short samples[], int position, float speed, int period) skipPitchPeriod() argument 827 insertPitchPeriod( short samples[], int position, float speed, int period) insertPitchPeriod() argument [all...] |
H A D | sonic.c | 617 int period, bestPeriod = 0, worstPeriod = 255; in findPitchPeriodInRange() local 622 for(period = minPeriod; period <= maxPeriod; period++) { in findPitchPeriodInRange() 625 p = samples + period; in findPitchPeriodInRange() 626 for(i = 0; i < period; i++) { in findPitchPeriodInRange() 635 if(diff*bestPeriod < minDiff*period) { in findPitchPeriodInRange() 637 bestPeriod = period; in findPitchPeriodInRange() 639 if(diff*worstPeriod > maxDiff*period) { in findPitchPeriodInRange() 641 worstPeriod = period; in findPitchPeriodInRange() 651 prevPeriodBetter( sonicStream stream, int period, int minDiff, int maxDiff, int preferNewPeriod) prevPeriodBetter() argument 692 int period; findPitchPeriod() local 847 int period, newPeriod, separation; adjustPitch() local 956 skipPitchPeriod( sonicStream stream, short *samples, float speed, int period) skipPitchPeriod() argument 981 insertPitchPeriod( sonicStream stream, short *samples, float speed, int period) insertPitchPeriod() argument 1016 int position = 0, period, newSamples; changeSpeed() local [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | periodic_sampler_test.cc | 37 MOCK_METHOD(int, period, (), (const, noexcept)); 44 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(16)); in TEST() 65 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 83 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(0)); in TEST() 93 EXPECT_CALL(sampler, period()).Times(3).WillRepeatedly(Return(1)); in TEST() 103 EXPECT_CALL(sampler, period()).WillOnce(Return(16)); in TEST() 108 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(0)); in TEST() 117 EXPECT_CALL(sampler, period()).WillOnce(Return(0)); in TEST() 120 EXPECT_CALL(sampler, period()).Times(2).WillRepeatedly(Return(16)); in TEST() 142 EXPECT_THAT(sampler.period(), E in TEST() [all...] |
H A D | periodic_sampler.h | 29 // PeriodicSamplerBase provides the basic period sampler implementation. 33 // each specific PeriodSampler implementation holds its own global period. 43 // Returns true roughly once every `period` calls. This is established by a 46 // true is 1 in `period`. 109 virtual int64_t GetExponentialBiased(int period) noexcept; 112 // Returns the current period of this sampler. Thread-safe. 113 virtual int period() const noexcept = 0; 188 int period() const noexcept final { 192 // Sets the global period for this sampler. Thread-safe. 193 // Setting a period o 196 SetGlobalPeriod(int period) SetGlobalPeriod() argument [all...] |
H A D | periodic_sampler.cc | 25 int64_t PeriodicSamplerBase::GetExponentialBiased(int period) noexcept { 26 return rng_.GetStride(period); 30 int current_period = period(); 32 // Deal with period case 0 (always off) and 1 (always on)
|
/third_party/rust/crates/memchr/src/memmem/ |
H A D | twoway.rs | 73 /// corresponds to the "small period" and "large period" cases. 90 (min_suffix.period, min_suffix.pos) 92 (max_suffix.period, max_suffix.pos) 117 Shift::Small { period } => { 118 self.find_small_imp(pre, haystack, needle, period) 157 period: usize, in find_small_imp() 193 pos += period; in find_small_imp() 194 shift = needle.len() - period; in find_small_imp() 257 (min_suffix.period, min_suffi [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_query_hw.c | 87 assert(!hq->period); 90 hq->period = slab_alloc_st(&batch->ctx->sample_period_pool); 91 list_inithead(&hq->period->list); 92 hq->period->start = get_sample(batch, ring, hq->base.type); 94 hq->period->end = NULL; 104 assert(hq->period && !hq->period->end); 107 hq->period->end = get_sample(batch, ring, hq->base.type); 108 list_addtail(&hq->period->list, &hq->periods); 109 hq->period 115 struct fd_hw_sample_period *period, *s; destroy_periods() local 190 struct fd_hw_sample_period *period, *tmp; fd_hw_get_query_result() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | opusdsp.c | 23 static void postfilter_c(float *data, int period, float *gains, int len) in postfilter_c() argument 29 float x4 = data[-period - 2]; in postfilter_c() 30 float x3 = data[-period - 1]; in postfilter_c() 31 float x2 = data[-period + 0]; in postfilter_c() 32 float x1 = data[-period + 1]; in postfilter_c() 35 float x0 = data[i - period + 2]; in postfilter_c()
|
H A D | metasound.c | 42 static void add_peak(float period, int width, const float *shape, in add_peak() argument 53 center = (int)(i * period + 0.5); in add_peak() 59 center = (int)(i * period + 0.5); in add_peak() 74 float min_period, max_period, period_range, period; in decode_ppc() local 87 period = min_period + period_coef * period_range / in decode_ppc() 90 period = powf(2.0, period); in decode_ppc() 92 period = (int)(period * 400 + 0.5) / 400.0; in decode_ppc() 103 width = (int)(some_mult / (mtab->size / period) * mta in decode_ppc() [all...] |
/third_party/ltp/testcases/realtime/func/periodic_cpu_load/ |
H A D | periodic_cpu_load_single.c | 24 * at the specified period, priority, and loops. 55 static int period; variable 70 printf(" -tPERIOD period in ms\n"); in usage() 86 int periodic_thread(nsec_t period, int iterations, int loops) in periodic_thread() argument 116 next += period; in periodic_thread() 120 ("Missed period, aborting (didn't get scheduled in time)\n"); in periodic_thread() 137 ("Missed period, aborting (calc took too long)\n"); in periodic_thread() 186 period = atoi(v) * NS_PER_MS; in parse_args() 197 period = DEFAULT_PERIOD * NS_PER_MS; in main() 209 if (!period || !pri in main() [all...] |
/third_party/skia/tools/timer/ |
H A D | TimeUtils.h | 26 // Return the time scaled by "speed" and (if not zero) mod by period. 27 static inline float Scaled(float time, float speed, float period = 0) { in Scaled() 29 if (period) { in Scaled() 30 value = ::fmod(value, (double)(period)); in Scaled() 35 // Transitions from ends->mid->ends linearly over period time. The phase 38 float period, in PingPong() 42 double value = ::fmod(time + phase, period); in PingPong() 43 double half = period / 2.0; in PingPong() 37 PingPong(double time, float period, float phase, float ends, float mid) PingPong() argument
|
/third_party/python/Objects/stringlib/ |
H A D | fastsearch.h | 191 Also find the period of the right half. */ in _lex_search() 195 // The period of the right half. in _lex_search() 196 Py_ssize_t period = 1; in _lex_search() local 209 // We've ruled out any period smaller than what's in _lex_search() 211 period = candidate - max_suffix; in _lex_search() 214 if (k + 1 != period) { in _lex_search() 219 // Matched a whole period. in _lex_search() 220 // Start matching the next period. in _lex_search() 221 candidate += period; in _lex_search() 230 period in _lex_search() 274 Py_ssize_t cut1, period1, cut2, period2, cut, period; _factorize() local 308 Py_ssize_t period; STRINGLIB() local 367 Py_ssize_t period = p->period; _two_way() local [all...] |
/third_party/skia/third_party/externals/oboe/src/common/ |
H A D | MonotonicCounter.h | 69 * If the counter wraps around every 24 hours then we should measure it with a period 93 * Round 64-bit counter up to a multiple of the period. 95 * The period must be positive. 97 * @param period might be, for example, a buffer capacity 99 void roundUp64(int32_t period) { in roundUp64() argument 100 if (period > 0) { in roundUp64() 101 int64_t numPeriods = (mCounter64 + period - 1) / period; in roundUp64() 102 mCounter64 = numPeriods * period; in roundUp64()
|
/third_party/ffmpeg/tests/checkasm/ |
H A D | opusdsp.c | 36 /* period is between 15 and 1022, inclusive */ 37 static void test_postfilter(int period) in test_postfilter() argument 49 * (period + 2) is subtracted, but here we have to align it outselves. */ in test_postfilter() 50 int offset = FFALIGN(period + 2, 4); in test_postfilter() 52 declare_func(void, float *data, int period, float *gains, int len); in test_postfilter() 57 call_ref(data0 + offset, period, gains, MAX_SIZE); in test_postfilter() 58 call_new(data1 + offset, period, gains, MAX_SIZE); in test_postfilter() 62 bench_new(data1 + offset, period, gains, MAX_SIZE); in test_postfilter()
|
/third_party/ffmpeg/libavdevice/ |
H A D | timefilter.c | 51 double period, in ff_timefilter_new() 55 double o = 2 * M_PI * bandwidth * period * time_base; in ff_timefilter_new() 62 self->feedback3_factor = qexpneg(o * o) / period; in ff_timefilter_new() 76 double ff_timefilter_update(TimeFilter *self, double system_time, double period) in ff_timefilter_update() argument 83 self->cycle_time += self->clock_period * period; in ff_timefilter_update() 50 ff_timefilter_new(double time_base, double period, double bandwidth) ff_timefilter_new() argument
|
/third_party/ltp/testcases/realtime/func/sched_latency/ |
H A D | sched_latency.c | 26 * - It periodically sleeps for a specified duration(period). 29 * delay = (now - start - i*period) converted to microseconds 33 * at the start of the test, i = iteration number, period = period chosen 71 static nsec_t period = DEF_PERIOD; variable 85 printf(" -tPERIOD period in ms (default 5)\n"); in usage() 108 period = strtoull(v, NULL, 0) * NS_PER_MS; in parse_args() 141 /* wait for the period to start */ in periodic_thread() 142 next += period; in periodic_thread() 177 /* start of period */ in periodic_thread() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
H A D | BasicPeriodBuilderFactory.java | 286 * largest period less than or equal to the duration. 297 * Starting with the largest period less than or equal to the duration. 298 * It formats two periods if the first period has a count < 2 299 * and the next period has a count >= 1. 310 * starting with the largest period less than or equal to the 462 Period period = null; in handleCreate() 468 if (duration >= unitDuration || period != null) { in handleCreate() 470 if (period == null) { in handleCreate() 472 period = Period.at((float)count, unit); in handleCreate() 475 period in handleCreate() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/ |
H A D | BasicPeriodBuilderFactory.java | 287 * largest period less than or equal to the duration. 298 * Starting with the largest period less than or equal to the duration. 299 * It formats two periods if the first period has a count < 2 300 * and the next period has a count >= 1. 311 * starting with the largest period less than or equal to the 463 Period period = null; in handleCreate() 469 if (duration >= unitDuration || period != null) { in handleCreate() 471 if (period == null) { in handleCreate() 473 period = Period.at((float)count, unit); in handleCreate() 476 period in handleCreate() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_blockdetect.c | 42 int period_min; // minimum period to search for 43 int period_max; // maximum period to search for 55 { "period_min", "Minimum period to search for", OFFSET(period_min), AV_OPT_TYPE_INT, {.i64=3}, 2, 32, FLAGS}, 56 { "period_max", "Maximum period to search for", OFFSET(period_max), AV_OPT_TYPE_INT, {.i64=24}, 2, 64, FLAGS}, 119 // find horizontal period in calculate_blockiness() 120 for (int period = s->period_min; period < s->period_max + 1; period++) { in calculate_blockiness() 127 if ((i % period) == (period in calculate_blockiness() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | DayPeriodRules.java | 104 period = DayPeriod.fromStringOrNull(key); in processRules() 105 if (period == null) { throw new ICUException("Unknown day period in data."); } in processRules() 129 for (DayPeriod period : data.rules[ruleSetNum].dayPeriodForHour) { in processRules() 130 if (period == null) { in processRules() 142 private DayPeriod period; field in DayPeriodRules.DayPeriodRulesDataSink 157 if (startHour == 0 && period == DayPeriod.MIDNIGHT) { in setDayPeriodForHoursFromCutoffs() 159 } else if (startHour == 12 && period == DayPeriod.NOON) { in setDayPeriodForHoursFromCutoffs() 177 rule.add(startHour, hour, period); in setDayPeriodForHoursFromCutoffs() 337 // i o'clock is when a new period start in getEndHourForDayPeriod() 359 add(int startHour, int limitHour, DayPeriod period) add() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | DayPeriodRules.java | 111 period = DayPeriod.fromStringOrNull(key); in processRules() 112 if (period == null) { throw new ICUException("Unknown day period in data."); } in processRules() 136 for (DayPeriod period : data.rules[ruleSetNum].dayPeriodForHour) { in processRules() 137 if (period == null) { in processRules() 149 private DayPeriod period; field in DayPeriodRules.DayPeriodRulesDataSink 164 if (startHour == 0 && period == DayPeriod.MIDNIGHT) { in setDayPeriodForHoursFromCutoffs() 166 } else if (startHour == 12 && period == DayPeriod.NOON) { in setDayPeriodForHoursFromCutoffs() 184 rule.add(startHour, hour, period); in setDayPeriodForHoursFromCutoffs() 344 // i o'clock is when a new period start in getEndHourForDayPeriod() 366 add(int startHour, int limitHour, DayPeriod period) add() argument [all...] |
/third_party/alsa-utils/alsactl/ |
H A D | alsactl.c | 95 { INTARG | 'p', "period", "store period in seconds for the daemon command" }, 251 int period = 5*60; in main() local 357 period = atoi(optarg); in main() 358 if (period < 10) in main() 359 period = 5*60; in main() 360 else if (period > 24*60*60) in main() 361 period = 24*60*60; in main() 459 res = state_daemon(cfgfile, cardname, period, pidfile); in main() 465 res = state_daemon(cfgfile, cardname, period, pidfil in main() [all...] |
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/ |
H A D | PwmOut-js.cpp | 102 * PwmOut#period (native JavaScript method) 104 * Set the PWM period, specified in seconds (float), keeping the duty cycle the same. 110 DECLARE_CLASS_FUNCTION(PwmOut, period) { in DECLARE_CLASS_FUNCTION() 111 CHECK_ARGUMENT_COUNT(PwmOut, period, (args_count == 1)); in DECLARE_CLASS_FUNCTION() 112 CHECK_ARGUMENT_TYPE_ALWAYS(PwmOut, period, 0, number); in DECLARE_CLASS_FUNCTION() 126 native_ptr->period(static_cast<float>(arg0)); in DECLARE_CLASS_FUNCTION() 134 * Set the PWM period, specified in milli-seconds (int), keeping the duty cycle the same. 160 * Set the PWM period, specified in micro-seconds (int), keeping the duty cycle the same. 186 * Set the PWM pulsewidth, specified in seconds (float), keeping the period the same. 212 * Set the PWM pulsewidth, specified in milli-seconds (int), keeping the period th [all...] |
/third_party/skia/docs/examples/ |
H A D | pong.cpp | 5 static SkScalar PingPong(double t, SkScalar period, SkScalar phase, in REG_FIDDLE_ANIMATED() argument 7 double value = ::fmod(t + phase, period); in REG_FIDDLE_ANIMATED() 8 double half = period / 2.0; in REG_FIDDLE_ANIMATED()
|
/third_party/ninja/src/ |
H A D | metrics.cc | 43 static_assert(std::chrono::steady_clock::period::num == 1,
in GetFrequency() 45 return std::chrono::steady_clock::period::den /
in GetFrequency() 46 std::chrono::steady_clock::period::num;
in GetFrequency() 59 std::chrono::duration<double, std::chrono::steady_clock::period>;
in TimerToMicros()
|