1#ifndef ANDROID_DVR_SENSOR_CONSTANTS_H_ 2#define ANDROID_DVR_SENSOR_CONSTANTS_H_ 3 4namespace android { 5namespace dvr { 6 7// Number of elements in the async pose buffer. 8// Must be power of two. 9// Macro so that shader code can easily include this value. 10#define kPoseAsyncBufferTotalCount 8 11 12// Mask for accessing the current ring buffer array element: 13// index = vsync_count & kPoseAsyncBufferIndexMask 14constexpr uint32_t kPoseAsyncBufferIndexMask = kPoseAsyncBufferTotalCount - 1; 15 16// Number of pose frames including the current frame that are kept updated with 17// pose forecast data. The other poses are left their last known estimates. 18constexpr uint32_t kPoseAsyncBufferMinFutureCount = 4; 19 20} // namespace dvr 21} // namespace android 22 23#endif // ANDROID_DVR_SENSOR_CONSTANTS_H_ 24