Home
last modified time | relevance | path

Searched refs:clock (Results 1 – 25 of 874) sorted by relevance

12345678910>>...35

/third_party/gstreamer/gstreamer/gst/
Dgstclock.c132 #define GST_CLOCK_SLAVE_LOCK(clock) g_mutex_lock (&GST_CLOCK_CAST (clock)->priv->slave_lock) argument
133 #define GST_CLOCK_SLAVE_UNLOCK(clock) g_mutex_unlock (&GST_CLOCK_CAST (clock)->priv->slave_lock) argument
148 GWeakRef clock; member
152 gst_clock_weak_ref_new (GstClock * clock) in gst_clock_weak_ref_new() argument
157 g_weak_ref_init (&weakref->clock, clock); in gst_clock_weak_ref_new()
178 g_weak_ref_clear (&weakref->clock); in gst_clock_weak_ref_unref()
186 return g_weak_ref_get (&weakref->clock); in gst_clock_weak_ref_get()
231 #define read_seqbegin(clock) \ argument
232 g_atomic_int_get (&clock->priv->post_count);
235 read_seqretry (GstClock * clock, gint seq) in read_seqretry() argument
[all …]
Dgstsystemclock.c66 #define GST_SYSTEM_CLOCK_GET_LOCK(clock) GST_OBJECT_GET_LOCK(clock) argument
67 #define GST_SYSTEM_CLOCK_LOCK(clock) g_mutex_lock(GST_SYSTEM_CLOCK_GET_LOCK(clock)) argument
68 #define GST_SYSTEM_CLOCK_UNLOCK(clock) g_mutex_unlock(GST_SYSTEM_CLOCK_GET_LOCK(clock)) argument
69 #define GST_SYSTEM_CLOCK_GET_COND(clock) (&GST_SYSTEM_CLOCK_CAST(clock)->priv->entries_chang… argument
70 …define GST_SYSTEM_CLOCK_WAIT(clock) g_cond_wait(GST_SYSTEM_CLOCK_GET_COND(clock),GST_SY… argument
71 #define GST_SYSTEM_CLOCK_BROADCAST(clock) g_cond_broadcast(GST_SYSTEM_CLOCK_GET_COND(clock)) argument
98 GWeakRef clock; member
171 GWeakRef clock; member
303 GWeakRef clock; member
388 static GstClockTime gst_system_clock_get_internal_time (GstClock * clock);
[all …]
Dgstclock.h34 #define GST_CLOCK(clock) (G_TYPE_CHECK_INSTANCE_CAST ((clock), GST_TYPE_CLOCK, GstCl… argument
35 #define GST_IS_CLOCK(clock) (G_TYPE_CHECK_INSTANCE_TYPE ((clock), GST_TYPE_CLOCK)) argument
38 #define GST_CLOCK_GET_CLASS(clock) (G_TYPE_INSTANCE_GET_CLASS ((clock), GST_TYPE_CLOCK, GstClo… argument
39 #define GST_CLOCK_CAST(clock) ((GstClock*)(clock)) argument
298 typedef gboolean (*GstClockCallback) (GstClock *clock, GstClockTime time,
354 #define GST_CLOCK_ENTRY_CLOCK(entry) ((entry)->clock)
399 GstClock *clock; member
458 #define GST_CLOCK_FLAGS(clock) GST_OBJECT_FLAGS(clock) argument
499 GstClockTime (*change_resolution) (GstClock *clock,
511 GstClockTime (*get_resolution) (GstClock *clock);
[all …]
Dgstpipeline.c358 GstClock *clock; in pipeline_update_start_time() local
361 if ((clock = element->clock)) { in pipeline_update_start_time()
364 gst_object_ref (clock); in pipeline_update_start_time()
368 now = gst_clock_get_time (clock); in pipeline_update_start_time()
369 gst_object_unref (clock); in pipeline_update_start_time()
380 GST_OBJECT_NAME (clock)); in pipeline_update_start_time()
401 GstClock *clock; in gst_pipeline_change_state() local
435 cur_clock = element->clock; in gst_pipeline_change_state()
459 clock = gst_element_provide_clock (element); in gst_pipeline_change_state()
466 clock = cur_clock; in gst_pipeline_change_state()
[all …]
/third_party/boost/libs/chrono/example/
Dcycle_count.cpp76 typedef cycle_count<400> clock; in cycle_count_delay() typedef
77 …std::cout << "\nSimulated " << clock::frequency::num / boost::mega::num << "MHz clock which has a … in cycle_count_delay()
78 << duration<double, boost::nano>(clock::duration(1)).count() << " nanoseconds\n"; in cycle_count_delay()
80 clock::duration delay = duration_cast<clock::duration>(delayns); in cycle_count_delay()
82 clock::time_point start = clock::now(); in cycle_count_delay()
83 clock::time_point stop = start + delay; in cycle_count_delay()
84 while (clock::now() < stop) // no multiplies or divides in this loop in cycle_count_delay()
86 clock::time_point end = clock::now(); in cycle_count_delay()
87 clock::duration elapsed = end - start; in cycle_count_delay()
92 typedef approx_cycle_count<400> clock; in cycle_count_delay() typedef
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Dgstaudioclock.c46 static GstClockTime gst_audio_clock_get_internal_time (GstClock * clock);
68 gst_audio_clock_init (GstAudioClock * clock) in gst_audio_clock_init() argument
70 GST_DEBUG_OBJECT (clock, "init"); in gst_audio_clock_init()
71 clock->last_time = 0; in gst_audio_clock_init()
72 clock->time_offset = 0; in gst_audio_clock_init()
73 GST_OBJECT_FLAG_SET (clock, GST_CLOCK_FLAG_CAN_SET_MASTER); in gst_audio_clock_init()
79 GstAudioClock *clock = GST_AUDIO_CLOCK (object); in gst_audio_clock_dispose() local
81 if (clock->destroy_notify && clock->user_data) in gst_audio_clock_dispose()
82 clock->destroy_notify (clock->user_data); in gst_audio_clock_dispose()
83 clock->destroy_notify = NULL; in gst_audio_clock_dispose()
[all …]
/third_party/gstreamer/gstreamer/tests/check/libs/
Dgsttestclock.c61 static gboolean test_async_wait_cb (GstClock * clock, GstClockTime time,
65 * clock, GstClockID id, GstClockTimeDiff * jitter);
101 test_async_wait_cb (GstClock * clock, in test_async_wait_cb() argument
134 GstClock *clock = GST_CLOCK (wait_ctx->test_clock); in gst_test_util_wait_for_clock_id_begin() local
135 g_assert (klass->wait_async (clock, wait_ctx->id) == GST_CLOCK_OK); in gst_test_util_wait_for_clock_id_begin()
171 GstClock *clock = GST_CLOCK (wait_ctx->test_clock); in gst_test_util_wait_for_clock_id_end() local
173 klass->unschedule (clock, wait_ctx->id); in gst_test_util_wait_for_clock_id_end()
190 GstClock *clock = GST_CLOCK (wait_ctx->test_clock); in gst_test_util_clock_wait_context_has_completed() local
193 GstClockTime now = gst_clock_get_time (clock); in gst_test_util_clock_wait_context_has_completed()
200 GstClock *clock = gst_test_clock_new (); in GST_START_TEST() local
[all …]
Dgstnettimeprovider.c31 GstClock *clock; in GST_START_TEST() local
33 clock = gst_system_clock_obtain (); in GST_START_TEST()
34 fail_unless (clock != NULL, "failed to get system clock"); in GST_START_TEST()
37 ASSERT_OBJECT_REFCOUNT (clock, "system clock", 2); in GST_START_TEST()
39 ntp = gst_net_time_provider_new (clock, NULL, 0); in GST_START_TEST()
43 ASSERT_OBJECT_REFCOUNT (clock, "system clock", 3); in GST_START_TEST()
48 ASSERT_OBJECT_REFCOUNT (clock, "net time provider", 2); in GST_START_TEST()
50 gst_object_unref (clock); in GST_START_TEST()
59 GstClock *clock; in GST_START_TEST() local
66 clock = gst_system_clock_obtain (); in GST_START_TEST()
[all …]
/third_party/boost/libs/pool/example/
Dtime_pool_alloc.cpp43 start = std::clock(); in timing_test_alloc_larger()
50 end[0][0] = (std::clock() - start) / ((double) CLOCKS_PER_SEC); in timing_test_alloc_larger()
52 start = std::clock(); in timing_test_alloc_larger()
58 end[0][1] = (std::clock() - start) / ((double) CLOCKS_PER_SEC); in timing_test_alloc_larger()
60 start = std::clock(); in timing_test_alloc_larger()
66 end[0][2] = (std::clock() - start) / ((double) CLOCKS_PER_SEC); in timing_test_alloc_larger()
68 start = std::clock(); in timing_test_alloc_larger()
74 end[0][3] = (std::clock() - start) / ((double) CLOCKS_PER_SEC); in timing_test_alloc_larger()
76 start = std::clock(); in timing_test_alloc_larger()
82 end[0][4] = (std::clock() - start) / ((double) CLOCKS_PER_SEC); in timing_test_alloc_larger()
[all …]
/third_party/gstreamer/gstreamer/docs/random/wtay/
Dclocking11 - some elements should be able to control and adjust the clock.
12 (clock master)
13 - the application should be able to provide another clock.
18 A clock extends the abstract GstClock class.
28 Clock providers call gst_element_provides_clock (element, clock)
30 This also means that a clock provider cannot stop being a clock
33 Clock providers will update the clock at specific intervals.
36 When a clock provider is not going to update the clock anymore
37 it should make sure elements still blocked on the clock get
39 blocking waits to a select call. All further waits on the clock
[all …]
/third_party/gstreamer/gstplugins_good/ext/raw1394/
Dgst1394clock.c34 static void gst_1394_clock_init (Gst1394Clock * clock);
36 static GstClockTime gst_1394_clock_get_internal_time (GstClock * clock);
83 gst_1394_clock_init (Gst1394Clock * clock) in gst_1394_clock_init() argument
85 GST_OBJECT_FLAG_SET (clock, GST_CLOCK_FLAG_CAN_SET_MASTER); in gst_1394_clock_init()
110 gst_1394_clock_get_internal_time (GstClock * clock) in gst_1394_clock_get_internal_time() argument
117 _1394clock = GST_1394_CLOCK_CAST (clock); in gst_1394_clock_get_internal_time()
120 GST_OBJECT_LOCK (clock); in gst_1394_clock_get_internal_time()
124 GST_LOG_OBJECT (clock, "overflow %u to %u", in gst_1394_clock_get_internal_time()
137 GST_LOG_OBJECT (clock, "result %" GST_TIME_FORMAT, GST_TIME_ARGS (result)); in gst_1394_clock_get_internal_time()
138 GST_OBJECT_UNLOCK (clock); in gst_1394_clock_get_internal_time()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/debugutils/
Dgstclockselect.c183 GstClock *clock; in gst_clock_select_provide_clock() local
188 clock = in gst_clock_select_provide_clock()
191 gst_object_ref_sink (clock); in gst_clock_select_provide_clock()
192 gst_util_set_object_arg (G_OBJECT (clock), "clock-type", "monotonic"); in gst_clock_select_provide_clock()
195 clock = in gst_clock_select_provide_clock()
198 gst_object_ref_sink (clock); in gst_clock_select_provide_clock()
199 gst_util_set_object_arg (G_OBJECT (clock), "clock-type", "realtime"); in gst_clock_select_provide_clock()
202 clock = gst_ptp_clock_new ("ptp-clock", clock_select->ptp_domain); in gst_clock_select_provide_clock()
203 if (!clock) { in gst_clock_select_provide_clock()
209 clock = in gst_clock_select_provide_clock()
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Dclockselect.c29 GstClock *clock; in GST_START_TEST() local
36 clock = gst_element_provide_clock (element); in GST_START_TEST()
38 fail_unless (GST_IS_SYSTEM_CLOCK (clock)); in GST_START_TEST()
39 g_object_get (G_OBJECT (clock), "clock-type", &clock_type, NULL); in GST_START_TEST()
43 gst_object_unref (clock); in GST_START_TEST()
53 GstClock *clock; in GST_START_TEST() local
60 clock = gst_element_provide_clock (element); in GST_START_TEST()
62 fail_unless (GST_IS_SYSTEM_CLOCK (clock)); in GST_START_TEST()
63 g_object_get (G_OBJECT (clock), "clock-type", &clock_type, NULL); in GST_START_TEST()
67 gst_object_unref (clock); in GST_START_TEST()
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/test/
Dalarm_clock_test.dart30 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24));
31 final AlarmClock alarm = AlarmClock(clock.now);
37 alarm.datetime = clock.fromNow(minutes: 1);
57 alarm.datetime = clock.fromNow(minutes: 1);
66 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24));
67 final AlarmClock alarm = AlarmClock(clock.now);
70 alarm.datetime = clock.fromNow(minutes: 1);
91 final Clock clock = fakeAsync.getClock(DateTime(2019, 1, 24));
92 final AlarmClock alarm = AlarmClock(clock.now);
94 alarm.datetime = clock.ago(minutes: 1);
[all …]
/third_party/ltp/testcases/kernel/syscalls/timer_create/
Dtimer_create01.c56 clock_t clock = clock_list[i]; in run() local
62 if (clock == CLOCK_PROCESS_CPUTIME_ID || in run()
63 clock == CLOCK_THREAD_CPUTIME_ID) { in run()
72 if (clock == CLOCK_MONOTONIC_RAW) in run()
78 TEST(tst_syscall(__NR_timer_create, clock, in run()
83 if (possibly_unsupported(clock) && in run()
86 get_clock_str(clock)); in run()
90 get_clock_str(clock)); in run()
96 get_clock_str(clock)); in run()
101 get_clock_str(clock)); in run()
/third_party/ltp/testcases/kernel/syscalls/timer_settime/
Dtimer_settime01.c99 clock_t clock = clock_list[i]; in run() local
101 if (clock == CLOCK_PROCESS_CPUTIME_ID || in run()
102 clock == CLOCK_THREAD_CPUTIME_ID) { in run()
107 TEST(tst_syscall(__NR_timer_create, clock, NULL, &timer)); in run()
109 if (possibly_unsupported(clock) && in run()
112 get_clock_str(clock)); in run()
116 get_clock_str(clock)); in run()
129 if (tv->clock_gettime(clock, tst_ts_get(&timenow)) < 0) { in run()
132 get_clock_str(clock)); in run()
147 get_clock_str(clock)); in run()
[all …]
Dtimer_settime02.c88 clock_t clock = clock_list[i]; in run() local
90 if (clock == CLOCK_PROCESS_CPUTIME_ID || in run()
91 clock == CLOCK_THREAD_CPUTIME_ID) { in run()
97 TEST(tst_syscall(__NR_timer_create, clock, NULL, &timer)); in run()
99 if (possibly_unsupported(clock) && in run()
102 get_clock_str(clock)); in run()
106 get_clock_str(clock)); in run()
128 get_clock_str(clock), in run()
133 get_clock_str(clock)); in run()
/third_party/gstreamer/gstreamer/tests/check/gst/
Dgstsystemclock.c70 GstClock *clock, *static_clock; in GST_START_TEST() local
80 clock = g_object_new (GST_TYPE_SYSTEM_CLOCK, "name", "TestClock", NULL); in GST_START_TEST()
81 gst_object_ref_sink (clock); in GST_START_TEST()
82 gst_system_clock_set_default (clock); in GST_START_TEST()
86 fail_unless (static_clock == clock); in GST_START_TEST()
87 g_assert_cmpint (GST_OBJECT_REFCOUNT (clock), ==, 3); in GST_START_TEST()
93 fail_unless (static_clock != clock); in GST_START_TEST()
94 g_assert_cmpint (GST_OBJECT_REFCOUNT (clock), ==, 1); in GST_START_TEST()
96 gst_object_unref (clock); in GST_START_TEST()
121 GstClockID id, GstClock * clock) in test_async_full_slave_callback() argument
[all …]
Dgstpipeline.c252 GstClock *clock; in GST_START_TEST() local
254 clock = gst_test_clock_new (); in GST_START_TEST()
255 gst_test_clock_set_time (GST_TEST_CLOCK (clock), 100 * GST_SECOND); in GST_START_TEST()
261 gst_pipeline_use_clock (GST_PIPELINE (pipeline), clock); in GST_START_TEST()
288 gst_test_clock_wait_for_next_pending_id (GST_TEST_CLOCK (clock), NULL); in GST_START_TEST()
289 if (gst_test_clock_get_next_entry_time (GST_TEST_CLOCK (clock)) > in GST_START_TEST()
292 gst_test_clock_crank (GST_TEST_CLOCK (clock)); in GST_START_TEST()
306 gst_test_clock_wait_for_next_pending_id (GST_TEST_CLOCK (clock), NULL); in GST_START_TEST()
307 if (gst_test_clock_get_next_entry_time (GST_TEST_CLOCK (clock)) > in GST_START_TEST()
310 gst_test_clock_crank (GST_TEST_CLOCK (clock)); in GST_START_TEST()
[all …]
/third_party/gstreamer/gstreamer/docs/random/company/
Dclocks7 in realtime, the clock might not update fast enough. Or one might want to use
8 a clock that purposefully increases/reduces the speed of time.
15 The job of a clock is to report the time as exactly as possible that has elapsed
18 the clock will still represent the time since a start.
19 The state of the clock is managed by all elements using its time as a state of a
20 bin is changed according to its children. A clock will try to synchronize its
22 What to do in the case of a providerless clock like _a_ systemclock (we might
25 scheduler? Sounds like a good time to get a new clock to take over. FIXME:
28 Nobody cares about time reported by the clock.
32 The clock has to remember the time it was stopped and resume with that time
[all …]
/third_party/ffmpeg/libavdevice/
Ddshow_filter.c62 long ff_dshow_filter_SetSyncSource(DShowFilter *this, IReferenceClock *clock) in ff_dshow_filter_SetSyncSource() argument
66 if (this->clock != clock) { in ff_dshow_filter_SetSyncSource()
67 if (this->clock) in ff_dshow_filter_SetSyncSource()
68 IReferenceClock_Release(this->clock); in ff_dshow_filter_SetSyncSource()
69 this->clock = clock; in ff_dshow_filter_SetSyncSource()
70 if (clock) in ff_dshow_filter_SetSyncSource()
71 IReferenceClock_AddRef(clock); in ff_dshow_filter_SetSyncSource()
76 long ff_dshow_filter_GetSyncSource(DShowFilter *this, IReferenceClock **clock) in ff_dshow_filter_GetSyncSource() argument
80 if (!clock) in ff_dshow_filter_GetSyncSource()
82 if (this->clock) in ff_dshow_filter_GetSyncSource()
[all …]
/third_party/boost/boost/thread/executors/
Dscheduler.hpp62 typedef typename Scheduler::clock clock; typedef in boost::executors::resubmit_at_executor
66 …resubmit_at_executor(Scheduler& sch, Executor& ex, chrono::time_point<clock, Duration> const& tp) : in resubmit_at_executor() argument
111 typename clock::time_point tp;
124 typedef typename Scheduler::clock clock; typedef in boost::executors::scheduler_executor_wrapper
149 return at(clock::now() + rel_time ); in after()
153 the_executor at(chrono::time_point<clock,Duration> const& abs_time) in at() argument
169 typedef typename Scheduler::clock clock; typedef in boost::executors::at_executor
171 typedef typename clock::time_point time_point;
174 at_executor(Scheduler& sch, chrono::time_point<clock,Duration> const& tp) : in at_executor() argument
231 typedef Clock clock; typedef in boost::executors::scheduler
[all …]
/third_party/ltp/testcases/kernel/syscalls/timer_delete/
Dtimer_delete01.c31 clock_t clock = clock_list[i]; in run() local
33 if (clock == CLOCK_PROCESS_CPUTIME_ID || in run()
34 clock == CLOCK_THREAD_CPUTIME_ID) { in run()
39 tst_res(TINFO, "Testing %s", get_clock_str(clock)); in run()
41 TEST(tst_syscall(__NR_timer_create, clock, NULL, &timer_id)); in run()
43 if (possibly_unsupported(clock) && in run()
46 get_clock_str(clock)); in run()
50 get_clock_str(clock)); in run()
/third_party/gstreamer/gstplugins_base/tests/validate/videorate/
Dchange_rate_while_playing.validatetest13 crank-clock, expected-time=0.0
14 crank-clock, repeat=5
18 wait, on-clock=true
22 crank-clock, repeat=5
25 wait, on-clock=true
29 crank-clock, repeat=20
32 wait, on-clock=true
36 crank-clock, repeat=10
39 wait, on-clock=true
Dchange_rate_reverse_playback.validatetest17 crank-clock, expected-time=0.0
18 crank-clock, repeat=4, expected-elapsed-time=0.1
19 crank-clock, expected-time=0.5
22 wait, on-clock=true
29 crank-clock, repeat=5, expected-elapsed-time=0.1
30 wait, on-clock=true
36 crank-clock, repeat=20
37 wait, on-clock=true
43 crank-clock, repeat=10
44 wait, on-clock=true
[all …]

12345678910>>...35