Namespaces
Records
-
class ClockSnapshot -
class CloneMonoTest_AdjustableClockCanBeAdjusted_Test -
class CloneMonoTest_AdjustableCloneIsSameAsClockMonotonic_Test -
class CloneMonoTest_ReadableCloneIsSameAsClockMonotonic_Test -
class CloneMonoTest_ReadonlyClockCannotBeAdjusted_Test -
class PidControl -
class PidControlTest -
class PidControlTest_DefaultAndReset_Test -
class PidControlTest_DefaultCoefficients_Test -
class PidControlTest_Derivative_Test -
class PidControlTest_FullPid_Test -
class PidControlTest_Integral_Test -
class PidControlTest_PastTimestampsAreIgnored_Test -
class PidControlTest_ProportionalIntegral_Test -
class PidControlTest_Proportional_Test -
class PidControlTest_RealWorld_Test -
class PidControlTest_Start_Test
Functions
-
void CloneMonotonicInto (zx::clock * clock_out, bool adjustable)Defined at line 12 of file ../../src/media/audio/lib/clock/clone_mono.cc
-
zx::clock AdjustableCloneOfMonotonic ()Defined at line 26 of file ../../src/media/audio/lib/clock/clone_mono.cc
-
zx::clock CloneOfMonotonic ()Defined at line 33 of file ../../src/media/audio/lib/clock/clone_mono.cc
-
zx_status_t GetAndDisplayClockDetails (const zx::clock & ref_clock)Defined at line 14 of file ../../src/media/audio/lib/clock/utils.cc
-
fpromise::result<zx_clock_details_v1_t, zx_status_t> GetClockDetails (const zx::clock & ref_clock)Defined at line 24 of file ../../src/media/audio/lib/clock/utils.cc
-
void DisplayClockDetails (const zx_clock_details_v1_t & clock_details)Only called by custom code when debugging, so can remain at INFO severity.
Defined at line 41 of file ../../src/media/audio/lib/clock/utils.cc
-
zx_koid_t GetKoid (const zx::clock & clock)Defined at line 67 of file ../../src/media/audio/lib/clock/utils.cc
-
zx::clock DuplicateClock (const zx::clock & clock, zx_rights_t rights)Defined at line 79 of file ../../src/media/audio/lib/clock/utils.cc
-
fpromise::result<ClockSnapshot, zx_status_t> SnapshotClock (const zx::clock & ref_clock)Defined at line 85 of file ../../src/media/audio/lib/clock/utils.cc
-
fpromise::result<zx::time, zx_status_t> ReferenceTimeFromMonotonicTime (const zx::clock & ref_clock, zx::time mono_time)Naming is confusing here. zx::clock transforms/structs call the underlying baseline clock (ticks
or monotonic: we use monotonic) their "reference" clock. Unfortunately, in media terminology a
"reference clock" could be any continuous monotonically increasing clock -- including not only
the local system monotonic, but also custom clocks maintained outside the kernel (which zx::clock
calls "synthetic" clocks).
Thus in these util functions that convert between clocks, a conversion that we usually call "from
monotonic to reference" is (in zx::clock terms) a conversion "from reference to synthetic", where
the baseline reference here is the monotonic clock.
Defined at line 117 of file ../../src/media/audio/lib/clock/utils.cc
-
fpromise::result<zx::time, zx_status_t> MonotonicTimeFromReferenceTime (const zx::clock & ref_clock, zx::time ref_time)Defined at line 133 of file ../../src/media/audio/lib/clock/utils.cc
-
fpromise::result<zx::time, zx_status_t> ReferenceTimeFromReferenceTime (const zx::clock & ref_clock_a, zx::time ref_time_a, const zx::clock & ref_clock_b)Defined at line 149 of file ../../src/media/audio/lib/clock/utils.cc
-
affine::Transform ToAffineTransform (TimelineFunction & tl_function)Defined at line 177 of file ../../src/media/audio/lib/clock/utils.cc
-
TimelineFunction ToTimelineFunction (affine::Transform affine_trans)Defined at line 183 of file ../../src/media/audio/lib/clock/utils.cc
-
std::ostream & operator<< (std::ostream & outconst PidControl & pid)Defined at line 67 of file ../../src/media/audio/lib/clock/pid_control.cc