Monado OpenXR Runtime
|
Tracking API interface. More...
Go to the source code of this file.
Tracking API interface.
#define T_HSV_DEFAULT_PARAMS | ( | ) |
Referenced by t_debug_hsv_filter_create(), and t_debug_hsv_viewer_create().
#define T_HSV_SIZE 32 |
Referenced by t_hsv_build_optimized_table().
#define T_HSV_STEP (256 / T_HSV_SIZE) |
Referenced by t_hsv_build_optimized_table().
#define XRT_DISTORTION_MAX_DIM (5) |
Maximum size of rectilinear distortion coefficient array.
Referenced by CameraCalibrationWrapper::isDataStorageValid().
enum t_board_pattern |
int t_calibration_stereo_create | ( | struct xrt_frame_context * | xfctx, |
const struct t_calibration_params * | params, | ||
struct t_calibration_status * | status, | ||
struct xrt_frame_sink * | gui, | ||
struct xrt_frame_sink ** | out_sink | ||
) |
Create the camera calibration frame sink.
xfctx | Context for frame transport. |
params | Parameters to use during calibration. Values copied, pointer not retained. |
status | Optional pointer to structure for status information. Pointer retained, and pointed-to struct modified. |
gui | Frame sink |
out_sink | Output: created frame sink. |
References t_calibration_params::asymmetric_circles, Calibration::base, Calibration::board, t_calibration_params::checkers, t_calibration_params::circles, t_calibration_params::cols, t_calibration_params::diagonal_distance_meters, Calibration::dims, t_calibration_params::distance_meters, Calibration::enabled, t_calibration_params::enabled, Calibration::gui, Calibration::load, t_calibration_params::load, Calibration::mirror_rgb_image, t_calibration_params::mirror_rgb_image, Calibration::num_collect_restart, t_calibration_params::num_collect_restart, Calibration::num_collect_total, t_calibration_params::num_collect_total, Calibration::num_cooldown_frames, t_calibration_params::num_cooldown_frames, Calibration::num_images, t_calibration_params::num_images, Calibration::num_wait_for, t_calibration_params::num_wait_for, P, Calibration::pattern, t_calibration_params::pattern, xrt_frame_sink::push_frame, t_calibration_params::rows, Calibration::save_images, t_calibration_params::save_images, Calibration::sink, t_calibration_params::size_meters, Calibration::spacing_meters, Calibration::status, Calibration::stereo_sbs, t_calibration_params::stereo_sbs, Calibration::subpixel_enable, t_calibration_params::subpixel_enable, Calibration::subpixel_size, t_calibration_params::subpixel_size, T_BOARD_ASYMMETRIC_CIRCLES, T_BOARD_CHECKERS, T_BOARD_CIRCLES, t_calibration_frame(), Calibration::use_fisheye, and t_calibration_params::use_fisheye.
void t_convert_fill_table | ( | struct t_convert_table * | t | ) |
References t_convert_table::v.
Referenced by t_convert_make_h8s8v8_to_r8g8b8(), t_convert_make_y8u8v8_to_h8s8v8(), and t_convert_make_y8u8v8_to_r8g8b8().
void t_convert_in_place_h8s8v8_to_r8g8b8 | ( | uint32_t | width, |
uint32_t | height, | ||
size_t | stride, | ||
void * | data_ptr | ||
) |
Referenced by t_convert_make_h8s8v8_to_r8g8b8().
void t_convert_in_place_y8u8v8_to_h8s8v8 | ( | uint32_t | width, |
uint32_t | height, | ||
size_t | stride, | ||
void * | data_ptr | ||
) |
Referenced by t_convert_make_y8u8v8_to_h8s8v8().
void t_convert_in_place_y8u8v8_to_r8g8b8 | ( | uint32_t | width, |
uint32_t | height, | ||
size_t | stride, | ||
void * | data_ptr | ||
) |
Referenced by t_convert_make_y8u8v8_to_r8g8b8().
void t_convert_make_h8s8v8_to_r8g8b8 | ( | struct t_convert_table * | t | ) |
References t_convert_fill_table(), t_convert_in_place_h8s8v8_to_r8g8b8(), and t_convert_table::v.
void t_convert_make_y8u8v8_to_h8s8v8 | ( | struct t_convert_table * | t | ) |
References t_convert_fill_table(), t_convert_in_place_y8u8v8_to_h8s8v8(), and t_convert_table::v.
Referenced by t_hsv_build_large_table().
void t_convert_make_y8u8v8_to_r8g8b8 | ( | struct t_convert_table * | t | ) |
References t_convert_fill_table(), and t_convert_in_place_y8u8v8_to_r8g8b8().
Referenced by t_debug_hsv_viewer_create().
int t_convert_yuv_or_yuyv_create | ( | struct xrt_frame_sink * | next, |
struct xrt_frame_sink ** | out_sink | ||
) |
int t_debug_hsv_filter_create | ( | struct xrt_frame_context * | xfctx, |
struct xrt_frame_sink * | passthrough, | ||
struct xrt_frame_sink ** | out_sink | ||
) |
References HSV0_WIN, HSV1_WIN, HSV2_WIN, HSV3_WIN, DebugHSV::passthrough, xrt_frame_sink::push_frame, DebugHSV::sinks, t_debug_hsv_filter_break_apart(), t_debug_hsv_filter_destroy(), t_debug_hsv_filter_frame(), t_debug_hsv_filter_frame0(), t_debug_hsv_filter_frame1(), t_debug_hsv_filter_frame2(), t_debug_hsv_filter_frame3(), T_HSV_DEFAULT_PARAMS, and t_hsv_filter_create().
int t_debug_hsv_picker_create | ( | struct xrt_frame_context * | xfctx, |
struct xrt_frame_sink * | passthrough, | ||
struct xrt_frame_sink ** | out_sink | ||
) |
int t_debug_hsv_viewer_create | ( | struct xrt_frame_context * | xfctx, |
struct xrt_frame_sink * | passthrough, | ||
struct xrt_frame_sink ** | out_sink | ||
) |
void t_hsv_build_convert_table | ( | struct t_hsv_filter_params * | params, |
struct t_convert_table * | t | ||
) |
References t_hsv_build_large_table(), U_TYPED_CALLOC, t_convert_table::v, and t_hsv_filter_large_table::v.
void t_hsv_build_large_table | ( | struct t_hsv_filter_params * | params, |
struct t_hsv_filter_large_table * | t | ||
) |
References t_convert_make_y8u8v8_to_h8s8v8(), U_TYPED_CALLOC, t_convert_table::v, and t_hsv_filter_large_table::v.
Referenced by t_debug_hsv_viewer_create(), t_hsv_build_convert_table(), and t_hsv_build_optimized_table().
void t_hsv_build_optimized_table | ( | struct t_hsv_filter_params * | params, |
struct t_hsv_filter_optimized_table * | t | ||
) |
References t_hsv_build_large_table(), T_HSV_SIZE, T_HSV_STEP, U_TYPED_CALLOC, t_hsv_filter_large_table::v, and t_hsv_filter_optimized_table::v.
Referenced by t_debug_hsv_viewer_create().
int t_hsv_filter_create | ( | struct xrt_frame_context * | xfctx, |
struct t_hsv_filter_params * | params, | ||
struct xrt_frame_sink * | sinks[4], | ||
struct xrt_frame_sink ** | out_sink | ||
) |
References t_hsv_filter::base, xrt_frame_sink::push_frame, and U_TYPED_CALLOC.
Referenced by t_debug_hsv_filter_create().
int t_psmv_create | ( | struct xrt_frame_context * | xfctx, |
struct xrt_colour_rgb_f32 * | rgb, | ||
struct t_stereo_camera_calibration * | data, | ||
struct xrt_tracked_psmv ** | out_xtmv, | ||
struct xrt_frame_sink ** | out_sink | ||
) |
References TrackerPSMV::base, xrt_frame_node::break_apart, xrt_tracked_psmv::colour, xrt_fusion::PSMVFusionInterface::create(), xrt_frame_node::destroy, xrt_tracked_psmv::destroy, TrackerPSMV::filter, TrackerPSMV::fusion, xrt_tracked_psmv::get_tracked_pose, TrackerPSMV::node, xrt_frame_sink::push_frame, xrt_tracked_psmv::push_imu, TrackerPSMV::rot, TrackerPSMV::sink, t_psmv_fake_destroy(), t_psmv_get_tracked_pose(), t_psmv_node_break_apart(), t_psmv_node_destroy(), t_psmv_push_imu(), t_psmv_sink_push_frame(), xrt_quat::w, xrt_quat::x, xrt_quat::y, and xrt_quat::z.
int t_psmv_start | ( | struct xrt_tracked_psmv * | xtmv | ) |
References container_of.
int t_psvr_create | ( | struct xrt_frame_context * | xfctx, |
struct t_stereo_camera_calibration * | data, | ||
struct xrt_tracked_psvr ** | out_xtvr, | ||
struct xrt_frame_sink ** | out_sink | ||
) |
References TrackerPSVR::base, xrt_frame_node::break_apart, xrt_frame_node::destroy, xrt_tracked_psvr::destroy, TrackerPSVR::fusion, xrt_tracked_psvr::get_tracked_pose, TrackerPSVR::node, xrt_frame_sink::push_frame, xrt_tracked_psvr::push_imu, TrackerPSVR::rot, TrackerPSVR::sink, t_psvr_fake_destroy(), t_psvr_get_tracked_pose(), t_psvr_node_break_apart(), t_psvr_node_destroy(), t_psvr_push_imu(), t_psvr_sink_push_frame(), and xrt_quat::w.
int t_psvr_start | ( | struct xrt_tracked_psvr * | xtvr | ) |
References TrackerPSVR::base, and container_of.
void t_stereo_camera_calibration_alloc | ( | struct t_stereo_camera_calibration ** | calib | ) |
Allocates a new stereo calibration data, unreferences the old calib
.
References U_TYPED_CALLOC.
Referenced by StereoCameraCalibrationWrapper::allocData(), and t_stereo_camera_calibration_load_v1().
void t_stereo_camera_calibration_destroy | ( | struct t_stereo_camera_calibration * | c | ) |
Only to be called by t_stereo_camera_calibration_reference
.
bool t_stereo_camera_calibration_load_v1 | ( | FILE * | calib_file, |
struct t_stereo_camera_calibration ** | out_data | ||
) |
Load stereo calibration data from a given file.
References t_stereo_camera_calibration_alloc().
bool t_stereo_camera_calibration_save_v1 | ( | FILE * | calib_file, |
struct t_stereo_camera_calibration * | data | ||
) |
Save the given stereo calibration data to the given file.