|
Monado OpenXR Runtime
|
A single open v4l2 capture device, starts its own thread and waits on it. More...
#include <v4l2/v4l2_driver.h>


Data Fields | ||
| struct xrt_fs | base | |
| struct xrt_frame_node | node | |
| struct u_sink_debug | usd | |
| int | fd | |
| struct { | ||
| bool extended_format | ||
| bool timeperframe | ||
| } | has | |
| enum xrt_fs_capture_type | capture_type | |
| struct v4l2_control_state | states [256] | |
| size_t | num_states | |
| struct { | ||
| bool ps4_cam | ||
| } | quirks | |
| struct v4l2_frame | frames [32] | |
| uint32_t | used_frames | |
| struct { | ||
| bool mmap | ||
| bool userptr | ||
| } | capture | |
| struct xrt_frame_sink * | sink | |
| pthread_t | stream_thread | |
| struct v4l2_source_descriptor * | descriptors | |
| uint32_t | num_descriptors | |
| uint32_t | selected | |
| struct xrt_fs_capture_parameters | capture_params | |
| bool | is_configured | |
| bool | is_running | |
| enum u_logging_level | log_level | |
Data Fields inherited from xrt_frame_node | ||
| struct xrt_frame_node * | next | |
| void(* | break_apart )(struct xrt_frame_node *node) | |
| Called first in when the graph is being destroyed, remove any references frames and other objects and stop threads. | ||
| void(* | destroy )(struct xrt_frame_node *node) | |
| Do the actual freeing of the objects. | ||
Data Fields inherited from xrt_fs | ||
| char | name [512] | |
| Name of the frame server source, from the subsystem. | ||
| char | product [32] | |
| Frame server product identifier, matches the prober device. | ||
| char | manufacturer [32] | |
| Frame server manufacturer, matches the prober device. | ||
| char | serial [32] | |
| Frame server serial number, matches the prober device. | ||
| uint64_t | source_id | |
| All frames produced by this frameserver are tagged with this id. | ||
| bool(* | enumerate_modes )(struct xrt_fs *xfs, struct xrt_fs_mode **out_modes, uint32_t *out_count) | |
| Enumerate all available modes that this frameserver supports. | ||
| bool(* | configure_capture )(struct xrt_fs *xfs, struct xrt_fs_capture_parameters *cp) | |
| Set the capture parameters, may not be supported on all capture devices. | ||
| bool(* | stream_start )(struct xrt_fs *xfs, struct xrt_frame_sink *xs, enum xrt_fs_capture_type capture_type, uint32_t descriptor_index) | |
| Start the capture stream. | ||
| bool(* | slam_stream_start )(struct xrt_fs *xfs, struct xrt_slam_sinks *sinks) | |
| Setup SLAM sinks for all the sensors a SLAM implementation may supports and start the frame server stream. | ||
| bool(* | stream_stop )(struct xrt_fs *xfs) | |
| Stop the capture stream. | ||
| bool(* | is_running )(struct xrt_fs *xfs) | |
| Is the capture stream running. | ||
Additional Inherited Members | |
Static Public Member Functions inherited from xrt_fs | |
| static bool | xrt_fs_enumerate_modes (struct xrt_fs *xfs, struct xrt_fs_mode **out_modes, uint32_t *out_count) |
| Enumerate all available modes that this frameserver supports. | |
| static bool | xrt_fs_configure_capture (struct xrt_fs *xfs, struct xrt_fs_capture_parameters *cp) |
| Set the capture parameters, may not be supported on all capture devices. | |
| static bool | xrt_fs_stream_start (struct xrt_fs *xfs, struct xrt_frame_sink *xs, enum xrt_fs_capture_type capture_type, uint32_t descriptor_index) |
| Start the capture stream. | |
| static bool | xrt_fs_slam_stream_start (struct xrt_fs *xfs, struct xrt_slam_sinks *sinks) |
| Setup SLAM sinks for all the sensors a SLAM implementation may supports and start the frame server stream. | |
| static bool | xrt_fs_stream_stop (struct xrt_fs *xfs) |
| Stop the capture stream. | |
| static bool | xrt_fs_is_running (struct xrt_fs *xfs) |
| Is the capture stream running. | |
A single open v4l2 capture device, starts its own thread and waits on it.