diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/quicktime_win32/CVHostTime.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/quicktime_win32/CVHostTime.h')
| -rw-r--r-- | common/quicktime_win32/CVHostTime.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/common/quicktime_win32/CVHostTime.h b/common/quicktime_win32/CVHostTime.h new file mode 100644 index 0000000..9bc1512 --- /dev/null +++ b/common/quicktime_win32/CVHostTime.h @@ -0,0 +1,59 @@ +/* + * CVHostTime.h + * CoreVideo + * + * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. + * + */ + + /*! @header CVHostTime.h + @copyright 2004 Apple Computer, Inc. All rights reserved. + @availability Mac OS X 10.4 or later + @discussion Utility functions for retrieving and working with the host time. +*/ + +#if !defined(__COREVIDEO_CVHOSTTIME_H__) +#define __COREVIDEO_CVHOSTTIME_H__ 1 + +#include <TargetConditionals.h> + +#if TARGET_OS_MAC +#include <QuartzCore/CVBase.h> +#else +#include <CVBase.h> +#endif + +#if defined(__cplusplus) +extern "C" { +#endif + +/*! + @function CVGetCurrentHostTime + @abstract Retrieve the current value of the host time base. + @discussion On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API + may be used interchangeably. + @result The current host time. +*/ +extern uint64_t CVGetCurrentHostTime() AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; + +/*! + @function CVGetHostClockFrequency + @abstract Retrieve the frequency of the host time base. + @discussion On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API + may be used interchangeably. + @result The current host frequency. +*/ +extern double CVGetHostClockFrequency() AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; + +/*! + @function CVGetHostClockMinimumTimeDelta + @abstract Retrieve the smallest possible increment in the host time base. + @result The smallest valid increment in the host time base. +*/ +extern uint32_t CVGetHostClockMinimumTimeDelta() AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER; + +#if defined(__cplusplus) +} +#endif + +#endif |