/third_party/pulseaudio/sonic/ |
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() 552 int period, in prevPeriodBetter() argument 588 int period, retPeriod; in findPitchPeriod() local 595 … period = findPitchPeriodInRange(samples, position, minPeriod, maxPeriod, minDiff, maxDiff); in findPitchPeriod() [all …]
|
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() 653 int period, in prevPeriodBetter() argument 692 int period; in findPitchPeriod() local [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
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(), Eq(0)); in TEST() [all …]
|
D | periodic_sampler.h | 109 virtual int64_t GetExponentialBiased(int period) noexcept; 113 virtual int period() const noexcept = 0; 188 int period() const noexcept final { in period() function 196 static void SetGlobalPeriod(int period) { in SetGlobalPeriod() argument 197 period_.store(period, std::memory_order_relaxed); in SetGlobalPeriod()
|
/third_party/rust/crates/memchr/src/memmem/ |
D | twoway.rs | 90 (min_suffix.period, min_suffix.pos) in new() 92 (max_suffix.period, max_suffix.pos) in new() 117 Shift::Small { period } => { in find() 118 self.find_small_imp(pre, haystack, needle, period) in find() 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_suffix.pos) in new() 259 (max_suffix.period, max_suffix.pos) in new() 287 Shift::Small { period } => { in rfind() [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_query_hw.c | 87 assert(!hq->period); in resume_query() 90 hq->period = slab_alloc_st(&batch->ctx->sample_period_pool); in resume_query() 91 list_inithead(&hq->period->list); in resume_query() 92 hq->period->start = get_sample(batch, ring, hq->base.type); in resume_query() 94 hq->period->end = NULL; in resume_query() 104 assert(hq->period && !hq->period->end); in pause_query() 107 hq->period->end = get_sample(batch, ring, hq->base.type); in pause_query() 108 list_addtail(&hq->period->list, &hq->periods); in pause_query() 109 hq->period = NULL; in pause_query() 115 struct fd_hw_sample_period *period, *s; in destroy_periods() local [all …]
|
/third_party/python/Objects/stringlib/ |
D | fastsearch.h | 189 Py_ssize_t period = 1; in STRINGLIB() local 204 period = candidate - max_suffix; in STRINGLIB() 207 if (k + 1 != period) { in STRINGLIB() 214 candidate += period; in STRINGLIB() 223 period = 1; in STRINGLIB() 226 *return_period = period; in STRINGLIB() 267 Py_ssize_t cut1, period1, cut2, period2, cut, period; in STRINGLIB() local 273 period = period1; in STRINGLIB() 277 period = period2; in STRINGLIB() 285 *return_period = period; in STRINGLIB() [all …]
|
D | stringlib_find_two_way_notes.txt | 180 mismatch was impossible due to the period, but we now see that the 184 that no matter the period of the original needle, you can cut it in 186 needle[cut-k:cut] mismatches needle[cut:cut+k] for all k < the period. 188 Even "non-periodic" strings are periodic with a period equal to 194 So long as the period exceeds that, we're good. 196 The more general shorter-period case is a bit harder. The essentials 219 - Jump forward a period, remembering the existing comparisons 267 - Right half matches, so use memory and skip ahead by period=3 275 The one tricky skip by 8 here generalizes: if we have a period of p, 278 matching characters and mismatched character one period earlier. [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/ |
D | WGL_NV_delay_before_swap.txt | 75 than the length in seconds of the swap period on the associated window. 76 When buffer swaps are synchronized, the swap period is composed of one or 77 multiple video frame periods. A video frame period is the time required by 82 not wait for the end of the swap period. If <seconds> is greater than a 83 swap period, wglDelayBeforeSwapNV will return immediately without 87 complete its work before the end of the swap period. If <seconds> is close 88 to 0.0, the application may miss the end of the swap period and it will 89 have to wait an additional swap period before it can swap. 92 before the end of the swap period, it will return immediately and the 94 video frame period to have an exact delay of <seconds> seconds. [all …]
|
D | GLX_NV_delay_before_swap.txt | 77 than the length in seconds of the swap period on the associated drawable. 78 When buffer swaps are synchronized, the swap period is composed of one or 79 multiple video frame periods. A video frame period is the time required by 83 will return False and will not wait for the end of the swap period. If 84 <seconds> is greater than a swap period, glXDelayBeforeSwapNV will return 88 complete its work before the end of the swap period. If <seconds> is close 89 to 0.0, the application may miss the end of the swap period and it will 90 have to wait an additional swap period before it can swap. 93 before the end of the swap period, it will return immediately and the 95 video frame period to have an exact delay of <seconds> seconds. [all …]
|
/third_party/openGLES/extensions/NV/ |
D | GLX_NV_delay_before_swap.txt | 77 than the length in seconds of the swap period on the associated drawable. 78 When buffer swaps are synchronized, the swap period is composed of one or 79 multiple video frame periods. A video frame period is the time required by 83 will return False and will not wait for the end of the swap period. If 84 <seconds> is greater than a swap period, glXDelayBeforeSwapNV will return 88 complete its work before the end of the swap period. If <seconds> is close 89 to 0.0, the application may miss the end of the swap period and it will 90 have to wait an additional swap period before it can swap. 93 before the end of the swap period, it will return immediately and the 95 video frame period to have an exact delay of <seconds> seconds. [all …]
|
D | WGL_NV_delay_before_swap.txt | 75 than the length in seconds of the swap period on the associated window. 76 When buffer swaps are synchronized, the swap period is composed of one or 77 multiple video frame periods. A video frame period is the time required by 82 not wait for the end of the swap period. If <seconds> is greater than a 83 swap period, wglDelayBeforeSwapNV will return immediately without 87 complete its work before the end of the swap period. If <seconds> is close 88 to 0.0, the application may miss the end of the swap period and it will 89 have to wait an additional swap period before it can swap. 92 before the end of the swap period, it will return immediately and the 94 video frame period to have an exact delay of <seconds> seconds. [all …]
|
/third_party/skia/tools/timer/ |
D | TimeUtils.h | 27 static inline float Scaled(float time, float speed, float period = 0) { 29 if (period) { 30 value = ::fmod(value, (double)(period)); 38 float period, in PingPong() argument 42 double value = ::fmod(time + phase, period); in PingPong() 43 double half = period / 2.0; in PingPong()
|
/third_party/ffmpeg/libavcodec/ |
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()
|
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) * mtab->ppc_shape_len); in decode_ppc() 105 width = (int)((2.0 / period + 1) * width + 0.5); in decode_ppc() 113 add_peak(period, width, shape, ppc_gain, speech, mtab->ppc_shape_len); in decode_ppc()
|
/third_party/ltp/testcases/realtime/func/periodic_cpu_load/ |
D | periodic_cpu_load_single.c | 55 static int period; variable 86 int periodic_thread(nsec_t period, int iterations, int loops) in periodic_thread() argument 116 next += period; 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 || !prio | !calc_loops) { in main() 221 printf(" period: %d ms\n", period / NS_PER_MS); in main() 225 ret = periodic_thread(period, iterations, calc_loops); in main()
|
/third_party/skia/third_party/externals/oboe/src/common/ |
D | MonotonicCounter.h | 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/ |
D | opusdsp.c | 37 static void test_postfilter(int period) in test_postfilter() argument 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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | BasicPeriodBuilderFactory.java | 462 Period period = null; 468 if (duration >= unitDuration || period != null) { 470 if (period == null) { 472 period = Period.at((float)count, unit); 475 period = Period.at(1, unit).inPast(inPast); 479 period = period.and((float)count, unit); 486 return period; 513 Period period = null; 530 if (period == null) { 531 period = Period.at((float)count, unit).inPast(inPast); [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/ |
D | BasicPeriodBuilderFactory.java | 463 Period period = null; 469 if (duration >= unitDuration || period != null) { 471 if (period == null) { 473 period = Period.at((float)count, unit); 476 period = Period.at(1, unit).inPast(inPast); 480 period = period.and((float)count, unit); 487 return period; 514 Period period = null; 531 if (period == null) { 532 period = Period.at((float)count, unit).inPast(inPast); [all …]
|
/third_party/ffmpeg/libavdevice/ |
D | timefilter.c | 51 double period, in ff_timefilter_new() argument 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()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_blockdetect.c | 120 for (int period = s->period_min; period < s->period_max + 1; period++) { in calculate_blockiness() local 127 if ((i % period) == (period - 1)) { in calculate_blockiness() 163 for (int period = s->period_min; period < s->period_max + 1; period++) { in calculate_blockiness() local 170 if ((j % period) == (period - 1)) { in calculate_blockiness()
|
/third_party/ltp/testcases/realtime/func/sched_latency/ |
D | sched_latency.c | 71 static nsec_t period = DEF_PERIOD; variable 108 period = strtoull(v, NULL, 0) * NS_PER_MS; in parse_args() 142 next += period; in periodic_thread() 179 (now - iter_start - (nsec_t) (i + 1) * period) / NS_PER_US; in periodic_thread() 253 if (load_ms * NS_PER_MS >= period - OVERHEAD) { in main() 269 period / NS_PER_MS); in main() 272 (int)(iterations * ((float)period / NS_PER_SEC))); in main()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
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() 359 private void add(int startHour, int limitHour, DayPeriod period) { in add() argument 362 dayPeriodForHour[i] = period; in add()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
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() 366 private void add(int startHour, int limitHour, DayPeriod period) { in add() argument 369 dayPeriodForHour[i] = period; in add()
|