Home
last modified time | relevance | path

Searched refs:latency (Results 1 – 25 of 550) sorted by relevance

12345678910>>...22

/third_party/alsa-utils/bat/
Dlatencytest.c61 int num = bat->latency.number; in play_and_listen()
67 if (averageinput > bat->latency.threshold) { in play_and_listen()
72 if (*input++ > bat->latency.threshold) in play_and_listen()
79 bat->latency.samples += n; in play_and_listen()
82 if (bat->latency.samples > frames) { in play_and_listen()
83 bat->latency.result[num - 1] = in play_and_listen()
84 (float) bat->latency.samples * 1000 / bat->rate; in play_and_listen()
88 (int) bat->latency.result[num - 1]); in play_and_listen()
91 if (bat->latency.result[n] > max) in play_and_listen()
92 max = bat->latency.result[n]; in play_and_listen()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_schedule_instructions.cpp78 int latency; member in schedule_node
127 this->latency = 1 * chans * math_latency; in set_latency_gfx4()
130 this->latency = 2 * chans * math_latency; in set_latency_gfx4()
136 this->latency = 3 * chans * math_latency; in set_latency_gfx4()
141 this->latency = 4 * chans * math_latency; in set_latency_gfx4()
144 this->latency = 8 * chans * math_latency; in set_latency_gfx4()
149 this->latency = 5 * chans * math_latency; in set_latency_gfx4()
152 this->latency = 2; in set_latency_gfx4()
184 latency = is_haswell ? 16 : 18; in set_latency_gfx7()
210 latency = 14; in set_latency_gfx7()
[all …]
/third_party/gstreamer/gstreamer/gst/
Dgstpipeline.c123 GstClockTime latency; member
234 pipeline->priv->latency = DEFAULT_LATENCY; in gst_pipeline_init()
677 GstClockTime latency; in gst_pipeline_do_latency() local
682 latency = pipeline->priv->latency; in gst_pipeline_do_latency()
685 if (latency == GST_CLOCK_TIME_NONE) in gst_pipeline_do_latency()
710 if (latency < min_latency) { in gst_pipeline_do_latency()
716 GST_TIME_ARGS (latency), GST_TIME_ARGS (min_latency))); in gst_pipeline_do_latency()
728 gst_event_new_latency (latency)); in gst_pipeline_do_latency()
731 GST_TIME_ARGS (latency)); in gst_pipeline_do_latency()
735 GST_TIME_ARGS (latency)); in gst_pipeline_do_latency()
[all …]
/third_party/skia/third_party/externals/oboe/apps/OboeTester/docs/
DAutomatedTesting.md5 OboeTester can be used to measure the round trip latency and glitches.
14 * [loopback adapter](https://source.android.com/devices/audio/latency/loopback)
32 --es test latency
46 --es test {latency, glitch}
47 The "latency" test will perform a Round Trip Latency test.
48 It will request EXCLUSIVE mode for minimal latency.
76 --es test latency \
131 Each test also adds specific value. For "latency". If the test fails then some values will be unava…
140 latency.empty.frames = 476 # round trip latency if the top output buffer was empty
141 latency.empty.msec = 9.92 # same but translated to milliseconds
[all …]
DUsage.md16 The latency is estimated based on the timestamp information.
33 Measure touch screen latency plus audio output latency.
37 If you use headphones then you can eliminate the latency caused by speaker protection.
38 If you use USB-MIDI input then you can eliminate the latency due to the touch screen, which is arou…
39 MIDI latency is generally under 1 msec.
51 This can be used to simulate high latency on a phone that supports low latency.
57 This test works with either a [loopback adapter](https://source.android.com/devices/audio/latency/l…
59 It measures the input and output latency combined.
/third_party/skia/third_party/externals/oboe/src/common/
DREADME.md5 There are two components of the latency. The resampler itself, and a buffer that
8 1) The resampler is an FIR running at the target sample rate. So its latency is the number of taps.
23 Here is some pseudo-code to calculate the latency.
27 // Add latency from FIR
29 // Add latency from block size adaptation
/third_party/ltp/testcases/realtime/perf/latency/
Dpthread_cond_many.c58 unsigned long latency = 0; variable
182 latency = (unsigned long)((endtime - starttime) * 1000000.); in wake_child()
212 rec.y = latency; in test_signal()
232 latency = dat.records[i].y; in test_signal()
233 if (latency > PASS_US) in test_signal()
235 min = MIN(min, latency); in test_signal()
236 max = MAX(max, latency); in test_signal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMScheduleA9.td434 // no delay slots, so the latency of a branch is unimportant
468 // Extra latency cycles since wbck is 2 cycles
477 // Extra latency cycles since wbck is 2 cycles
487 // Extra latency cycles since wbck is 4 cycles
496 // Extra latency cycles since wbck is 4 cycles
668 // Extra 1 latency cycle since wbck is 2 cycles
677 // Extra 1 latency cycle since wbck is 2 cycles
708 // FIXME: Result latency is 1 if address is 64-bit aligned.
880 // Extra latency cycles since wbck is 7 cycles
908 // Extra latency cycles since wbck is 7 cycles
[all …]
/third_party/grpc/test/cpp/qps/
Djson_run_localhost_scenarios.bzl3latency", "name": "grpc.optimization_target"}], "async_server_threads": 16, "threads_per_cq": 1, "…
/third_party/grpc/src/php/tests/qps/generated_code/Grpc/Testing/
DProxyStat.php19 protected $latency = 0.0; variable in Grpc\\Testing\\ProxyStat
41 return $this->latency;
52 $this->latency = $var;
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Drtpsrc.c25 guint latency, ttl, ttl_mc; in GST_START_TEST() local
34 "latency", &latency, "ttl-mc", &ttl_mc, "ttl", &ttl, NULL); in GST_START_TEST()
37 g_assert_cmpuint (latency, ==, 300); in GST_START_TEST()
/third_party/alsa-lib/src/pcm/
Dpcm_simple.c28 static int set_buffer_time(snd_spcm_latency_t latency, in set_buffer_time() argument
31 switch (latency) { in set_buffer_time()
162 snd_spcm_latency_t latency, in snd_spcm_init() argument
177 err = set_buffer_time(latency, &buffer_time); in snd_spcm_init()
215 snd_spcm_latency_t latency, in snd_spcm_init_duplex() argument
239 err = set_buffer_time(latency, &xbuffer_time); in snd_spcm_init_duplex()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DAudioStreamBase.java38 status.latency = getLatency(); in getStreamStatus()
52 public double latency; // msec field in AudioStreamBase.StreamStatus
68 String latencyText = (latency < 0.0) in dump()
70 : String.format("%6.1f ms", latency); in dump()
/third_party/pulseaudio/src/tests/
Dinterpol-test.c45 static pa_usec_t latency = 0; variable
111 attr.tlength = latency > 0 ? (uint32_t) pa_usec_to_bytes(latency, &ss) : (uint32_t) -1; in context_state_callback()
120 if (latency > 0) in context_state_callback()
223 (unsigned long long) latency, in START_TEST()
280latency = (argc >= 2 && !pa_streq(argv[1], "-r")) ? atoi(argv[1]) : (argc >= 3 ? atoi(argv[2]) : 0… in main()
Dpacat-simple.c74 pa_usec_t latency; in main()
76 if ((latency = pa_simple_get_latency(s, &error)) == (pa_usec_t) -1) { in main()
81 fprintf(stderr, "%0.0f usec \r", (float)latency); in main()
/third_party/gstreamer/gstplugins_good/gst/audiofx/
Daudiofxbasefirfilter.c630 outsamples = self->nsamples_in - (self->nsamples_out - self->latency); in gst_audio_fx_base_fir_filter_push_residue()
646 ((gint64) self->latency) - ((gint64) self->buffer_fill) / channels; in gst_audio_fx_base_fir_filter_push_residue()
699 self->latency, GST_SECOND, rate); in gst_audio_fx_base_fir_filter_push_residue()
706 self->start_off + self->nsamples_out - outsamples - self->latency; in gst_audio_fx_base_fir_filter_push_residue()
873 diff = ((gint64) self->nsamples_out) - ((gint64) self->latency); in gst_audio_fx_base_fir_filter_transform()
888 output_offset = self->nsamples_out - self->latency - generated_samples; in gst_audio_fx_base_fir_filter_transform()
962 guint64 latency; in gst_audio_fx_base_fir_filter_query() local
976 latency = self->block_length - self->kernel_length + 1; in gst_audio_fx_base_fir_filter_query()
978 latency = self->latency; in gst_audio_fx_base_fir_filter_query()
981 latency = gst_util_uint64_scale_round (latency, GST_SECOND, rate); in gst_audio_fx_base_fir_filter_query()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/audiolatency/
Dgstaudiolatency.c287 gst_audiolatency_set_latency (GstAudioLatency * self, gint64 latency) in gst_audiolatency_set_latency() argument
292 self->latencies[self->next_latency_idx] = latency; in gst_audiolatency_set_latency()
303 G_GINT64_FORMAT "ms\n", latency / 1000, avg_latency / 1000); in gst_audiolatency_set_latency()
309 gst_structure_new ("latency", "last-latency", G_TYPE_INT64, latency, in gst_audiolatency_set_latency()
433 gint64 latency, offset, pts; in gst_audiolatency_sink_chain() local
454 latency = (self->recv_pts - self->send_pts); in gst_audiolatency_sink_chain()
455 gst_audiolatency_set_latency (self, latency); in gst_audiolatency_sink_chain()
458 "ms, offset: %" G_GINT64_FORMAT "ms", self->recv_pts, latency / 1000, in gst_audiolatency_sink_chain()
/third_party/alsa-lib/test/
Dlatency.c281 void showlatency(size_t latency) in showlatency() argument
284 latency *= 2; in showlatency()
285 d = (double)latency / (double)rate; in showlatency()
286 …printf("Trying latency %li frames, %.3fus, %.6fms (%.4fHz)\n", (long)latency, d * 1000000, d * 100… in showlatency()
497 int err, latency, morehelp; in main() local
581 latency = latency_min - 4; in main()
619 if (setparams(phandle, chandle, &latency) < 0) in main()
621 showlatency(latency); in main()
626 if (snd_pcm_format_set_silence(format, buffer, latency*channels) < 0) { in main()
630 if (writebuf(phandle, buffer, latency, &frames_out) < 0) { in main()
[all …]
/third_party/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_testplan.txt107 more groups on fairness.(however latency check will be done in future)
135 The latency tests refer to testing if the cpu is available(within a reasonable
141 of type double. A task named latency check task is launched after these tasks.
142 This task sleeps frequently and measures the latency as the difference b/n
148 hogging the cpu. The latency check task also runs under any of the groups.
150 Test 11: cpuctl latency test 1
152 This test adds one testcase for testing the latency when the group scheduler
155 Test 12: cpuctl latency test 2
157 This test adds one testcase for testing the latency when the group scheduler
160 NOTE: There is no clear consensus on the maximum latency that the scheduler
[all …]
/third_party/gstreamer/gstplugins_bad/ext/webrtcdsp/
Dgstwebrtcechoprobe.cpp139 GstClockTime latency; in gst_webrtc_echo_probe_src_event() local
147 gst_event_parse_latency (event, &latency); in gst_webrtc_echo_probe_src_event()
158 self->latency = latency; in gst_webrtc_echo_probe_src_event()
163 " and delay of %ims", GST_TIME_ARGS (latency), in gst_webrtc_echo_probe_src_event()
233 self->latency = GST_CLOCK_TIME_NONE; in gst_webrtc_echo_probe_init()
315 if (!GST_CLOCK_TIME_IS_VALID (self->latency) || in gst_webrtc_echo_probe_read()
352 play_time += self->latency; in gst_webrtc_echo_probe_read()
/third_party/gstreamer/gstplugins_bad/ext/avtp/
Dgstavtpbasepayload.c152 avtpbasepayload->latency = GST_CLOCK_TIME_NONE; in gst_avtp_base_payload_init()
236 if (G_UNLIKELY (avtpbasepayload->latency == GST_CLOCK_TIME_NONE)) { in gst_avtp_base_payload_calc_ptime()
242 gst_query_parse_latency (query, NULL, &avtpbasepayload->latency, NULL); in gst_avtp_base_payload_calc_ptime()
246 GST_TIME_ARGS (avtpbasepayload->latency)); in gst_avtp_base_payload_calc_ptime()
254 return base_time + running_time + avtpbasepayload->latency + in gst_avtp_base_payload_calc_ptime()
/third_party/gstreamer/gstplugins_good/sys/osxaudio/
Dgstosxcoreaudioremoteio.c64 gdouble rate, guint * samples, gdouble * latency) in gst_core_audio_get_samples_and_latency_impl() argument
70 latency, &size); in gst_core_audio_get_samples_and_latency_impl()
78 *samples = *latency * rate; in gst_core_audio_get_samples_and_latency_impl()
/third_party/pulseaudio/src/modules/
Dmodule-loopback.c93 pa_usec_t latency; member
311 if (u->latency < u->minimum_latency) in update_minimum_latency()
312 …f ms is smaller than minimum latency, using minimum instead", (double)u->latency / PA_USEC_PER_MSE… in update_minimum_latency()
337 target_latency = PA_MAX(u->latency, u->minimum_latency) + 5 * PA_USEC_PER_MSEC; in adjust_rates()
391 final_latency = PA_MAX(u->latency, u->minimum_latency); in adjust_rates()
524 final_latency = PA_MAX(u->latency, u->output_thread_info.minimum_latency); in memblockq_adjust()
635 pa_usec_t latency, requested_latency; in set_source_output_latency() local
637 requested_latency = u->latency / 3; in set_source_output_latency()
643 latency = PA_MAX(u->latency, u->minimum_latency); in set_source_output_latency()
644 requested_latency = (latency - u->min_sink_latency) / 2; in set_source_output_latency()
[all …]
/third_party/mesa3d/src/amd/compiler/
Daco_statistics.cpp98 int latency; member
369 cur_cycle += program->chip_class >= GFX10 ? 1 : perf.latency; in add()
395 int latency = MAX3(wait_info.exp, wait_info.lgkm, wait_info.vm); in add() local
396 int32_t result_available = start + MAX2(perf.latency, latency); in add()
472 double latency = 0; in collect_preasm_stats() local
522 latency += block_est.cur_cycle * iter; in collect_preasm_stats()
536 parallelism = MIN2(parallelism, latency / usage[i]); in collect_preasm_stats()
538 double waves_per_cycle = 1.0 / latency * parallelism; in collect_preasm_stats()
547 program->statistics[statistic_latency] = round(latency); in collect_preasm_stats()
562 fprintf(stderr, "latency: %f\n", latency); in collect_preasm_stats()
/third_party/skia/third_party/externals/oboe/docs/
DFAQ.md8 created with low latency using the AudioTrack.Builder method [`setPerformanceMode(AudioTrack.PERFOR…
10 You can dynamically tune the latency of the stream just like in Oboe using [`setBufferSizeInFrames(…
11 Also you can use blocking writes with the Java AudioTrack and still get a low latency stream.
12 Oboe requires a callback to get a low latency stream and that does not work well with Java.
35latency and therefore providing a `LowLatency` stream is not possible. To avoid the resampler on A…
41 … performance mode of a stream was added in Android 7.1 (Nougat MR1). Low latency streams (aka FAST…

12345678910>>...22