/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/gstreamer/gstreamer/libs/gst/controller/ |
D | gstlfocontrolsource.c | 61 GstClockTime period; member 71 GstClockTime period) in _calculate_pos() argument 74 timestamp += period; in _calculate_pos() 78 return timestamp % period; in _calculate_pos() 83 GstClockTime timeshift, GstClockTime period, gdouble frequency, in _sine_get() argument 87 gst_guint64_to_gdouble (_calculate_pos (timestamp, timeshift, period)); in _sine_get() 106 priv->period, priv->frequency, timestamp); in waveform_sine_get() 124 priv->period, priv->frequency, ts); in waveform_sine_get_value_array() 135 GstClockTime timeshift, GstClockTime period, gdouble frequency, in _square_get() argument 138 GstClockTime pos = _calculate_pos (timestamp, timeshift, period); in _square_get() [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/gstreamer/gstreamer/docs/random/slomo/ |
D | controller.txt | 8 - Deprecate control-rate property and add a control-period property 18 this timestamp + sample period is after the trigger timestamp. 23 - ? Let get_value_array() sample the values with control-period if 32 - Convert the controller's control-period property into frames/samples 33 and request values sampled with control-period to apply one value to 34 each control-period frames/samples. 38 - ! The user has to choose a good control-period to prevent two trigger 39 timestamps separated by less than control-period nanoseconds. 51 samples_per_period = control-period / sample-rate; 54 prop1.sample_interval = control-period;
|
/third_party/flutter/skia/tools/timer/ |
D | TimeUtils.h | 26 static inline float Scaled(float time, float speed, float period = 0) { 28 if (period) { 29 value = ::fmod(value, (double)(period)); 37 float period, in PingPong() argument 41 double value = ::fmod(time + phase, period); in PingPong() 42 double half = period / 2.0; in PingPong()
|
/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/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 | 21 static void postfilter_c(float *data, int period, float *gains, int len) in postfilter_c() argument 27 float x4 = data[-period - 2]; in postfilter_c() 28 float x3 = data[-period - 1]; in postfilter_c() 29 float x2 = data[-period + 0]; in postfilter_c() 30 float x1 = data[-period + 1]; in postfilter_c() 33 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() 73 float min_period, max_period, period_range, period; in decode_ppc() local 86 period = min_period + period_coef * period_range / in decode_ppc() 89 period = powf(2.0, period); in decode_ppc() 91 period = (int)(period * 400 + 0.5) / 400.0; in decode_ppc() 102 width = (int)(some_mult / (mtab->size / period) * mtab->ppc_shape_len); in decode_ppc() 104 width = (int)((2.0 / period + 1) * width + 0.5); in decode_ppc() 112 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/opengl-registry/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/openGLES/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/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/gstreamer/gstplugins_bad/ext/dash/ |
D | gstmpdclient.c | 44 client, GstMPDPeriodNode * period, GstMPDAdaptationSetNode * adapt_set); 57 GstMPDPeriodNode *period; in gst_mpd_client_get_period_with_id() local 61 period = (GstMPDPeriodNode *) list->data; in gst_mpd_client_get_period_with_id() 62 if (!g_strcmp0 (period->id, period_id)) in gst_mpd_client_get_period_with_id() 63 return GST_MPD_NODE (period); in gst_mpd_client_get_period_with_id() 555 GstMPDPeriodNode *period = l->data; in gst_mpd_client_fetch_on_load_external_resources() local 558 if (period->xlink_href && period->actuate == GST_MPD_XLINK_ACTUATE_ON_LOAD) { in gst_mpd_client_fetch_on_load_external_resources() 561 new_periods = gst_mpd_client_fetch_external_periods (client, period); in gst_mpd_client_fetch_on_load_external_resources() 566 gst_mpd_period_node_free (period); in gst_mpd_client_fetch_on_load_external_resources() 567 period = NULL; in gst_mpd_client_fetch_on_load_external_resources() [all …]
|
/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/ffmpeg/libavdevice/ |
D | timefilter.c | 47 double period, in ff_timefilter_new() argument 51 double o = 2 * M_PI * bandwidth * period * time_base; in ff_timefilter_new() 58 self->feedback3_factor = qexpneg(o * o) / period; in ff_timefilter_new() 72 double ff_timefilter_update(TimeFilter *self, double system_time, double period) in ff_timefilter_update() argument 79 self->cycle_time += self->clock_period * period; in ff_timefilter_update()
|
/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/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/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()
|