Monado OpenXR Runtime
rift_s_camera.h
Go to the documentation of this file.
1/*
2 * Copyright 2013, Fredrik Hultin.
3 * Copyright 2013, Jakob Bornecrantz.
4 * Copyright 2016 Philipp Zabel
5 * Copyright 2019-2022 Jan Schmidt
6 * SPDX-License-Identifier: BSL-1.0
7 */
8
9/*!
10 * @file
11 * @brief Oculus Rift S camera handling
12 * @author Jan Schmidt <jan@centricular.com>
13 * @ingroup drv_rift_s
14 */
15
16#pragma once
17
18#include "os/os_hid.h"
19#include "xrt/xrt_prober.h"
20
21#include "rift_s_firmware.h"
22#include "rift_s_tracker.h"
23
24struct rift_s_camera;
25
26struct rift_s_camera *
27rift_s_camera_create(struct xrt_prober *xp,
28 struct xrt_frame_context *xfctx,
29 const char *hmd_serial_no,
30 struct os_hid_device *hid,
31 struct rift_s_tracker *tracker,
32 struct rift_s_camera_calibration_block *camera_calibration);
33
34void
35rift_s_camera_destroy(struct rift_s_camera *cam);
36
37void
38rift_s_camera_update(struct rift_s_camera *cam, struct os_hid_device *hid);
Wrapper around OS native hid functions.
Oculus Rift S firmware parsing interface.
HMD tracker handling.
Representing a single hid interface on a device.
Definition: os_hid.h:29
Definition: rift_s_firmware.h:90
Specifies whether the user wants to enable autoexposure from the start.
Definition: rift_s_camera.c:50
Definition: rift_s_tracker.h:42
Object used to track all sinks and frame producers in a graph.
Definition: xrt_frame.h:108
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:132
Common interface to probe for devices.