File plugin.cpp
FileList > plugins > quest3 > unity > plugin.cpp
Go to the source code of this file
#include "plugin.hpp"#include "illixr/data_format/serialization/query_response.hpp"#include "illixr/data_format/serialization/voice_query.hpp"#include "illixr/error_util.hpp"#include <algorithm>#include <android/log.h>#include <camera/NdkCameraMetadataTags.h>#include <cmath>#include <cstring>#include <media/NdkMediaError.h>#include <mutex>#include <string>#include <vulkan/vulkan.h>
Public Static Attributes
| Type | Name |
|---|---|
| constexpr int | EVENT_ACQUIRE = 2 |
| constexpr int | EVENT_INIT = 0 |
| constexpr int | EVENT_UNINIT = 1 |
| xr_sensor_capture * | g_sensor_capture_instance = nullptr |
Public Functions
| Type | Name |
|---|---|
| UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API | UnityPluginLoad (IUnityInterfaces * interfaces) |
| UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API | UnityPluginUnload () |
| void | illixr_acquire_depth (int64_t predicted_display_time_ns, double ovr_plugin_time_sec, float * rgb_camera_pose_lh, float * head_pose_lh, float * tracking_to_world_lh) |
| double UNITY_INTERFACE_API | illixr_get_last_capture_ovr_time_sec () |
| int64_t UNITY_INTERFACE_API | illixr_get_last_capture_time_ns () |
| UNITY_INTERFACE_EXPORT UnityRenderingEvent UNITY_INTERFACE_API | illixr_get_render_event_callback () |
| void UNITY_INTERFACE_API | illixr_release_depth () |
Public Static Functions
| Type | Name |
|---|---|
| XrTime | clock_boottime_xr () |
| void | on_camera_disconnected (void *, ACameraDevice * dev) |
| void | on_camera_error (void *, ACameraDevice * dev, int error) |
| void | on_capture_completed (void * ctx, ACameraCaptureSession *, ACaptureRequest *, const ACameraMetadata *) |
| void | on_capture_failed (void *, ACameraCaptureSession *, ACaptureRequest *, ACameraCaptureFailure * failure) |
| void UNITY_INTERFACE_API | on_render_event (int event_id) |
| void | on_session_active (void *, ACameraCaptureSession *) |
| void | on_session_closed (void *, ACameraCaptureSession *) |
| void | on_session_ready (void *, ACameraCaptureSession *) |
| void | pose_to_matrix (const XrPosef & pose, float out) |
Public Static Attributes Documentation
variable EVENT_ACQUIRE
constexpr int EVENT_ACQUIRE;
variable EVENT_INIT
constexpr int EVENT_INIT;
variable EVENT_UNINIT
constexpr int EVENT_UNINIT;
variable g_sensor_capture_instance
xr_sensor_capture* g_sensor_capture_instance;
Public Functions Documentation
function UnityPluginLoad
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API UnityPluginLoad (
IUnityInterfaces * interfaces
)
function UnityPluginUnload
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API UnityPluginUnload ()
function illixr_acquire_depth
void illixr_acquire_depth (
int64_t predicted_display_time_ns,
double ovr_plugin_time_sec,
float * rgb_camera_pose_lh,
float * head_pose_lh,
float * tracking_to_world_lh
)
function illixr_get_last_capture_ovr_time_sec
double UNITY_INTERFACE_API illixr_get_last_capture_ovr_time_sec ()
function illixr_get_last_capture_time_ns
int64_t UNITY_INTERFACE_API illixr_get_last_capture_time_ns ()
function illixr_get_render_event_callback
UNITY_INTERFACE_EXPORT UnityRenderingEvent UNITY_INTERFACE_API illixr_get_render_event_callback ()
function illixr_release_depth
void UNITY_INTERFACE_API illixr_release_depth ()
Public Static Functions Documentation
function clock_boottime_xr
static XrTime clock_boottime_xr ()
function on_camera_disconnected
static void on_camera_disconnected (
void *,
ACameraDevice * dev
)
function on_camera_error
static void on_camera_error (
void *,
ACameraDevice * dev,
int error
)
function on_capture_completed
static void on_capture_completed (
void * ctx,
ACameraCaptureSession *,
ACaptureRequest *,
const ACameraMetadata *
)
function on_capture_failed
static void on_capture_failed (
void *,
ACameraCaptureSession *,
ACaptureRequest *,
ACameraCaptureFailure * failure
)
function on_render_event
static void UNITY_INTERFACE_API on_render_event (
int event_id
)
function on_session_active
static void on_session_active (
void *,
ACameraCaptureSession *
)
function on_session_closed
static void on_session_closed (
void *,
ACameraCaptureSession *
)
function on_session_ready
static void on_session_ready (
void *,
ACameraCaptureSession *
)
function pose_to_matrix
static void pose_to_matrix (
const XrPosef & pose,
float out
)
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/illixr_release/ILLIXR/plugins/quest3/unity/plugin.cpp