13#error "This header is C++-only."
18#include <opencv2/opencv.hpp>
20namespace xrt::auxiliary::tracking {
32 Kind kind = AllAvailable;
43 u_sink_debug_init(&usd);
50 u_sink_debug_destroy(&usd);
51 xrt_frame_reference(&
frame, NULL);
57 if (!u_sink_debug_is_active(&usd)) {
62 bool second_view =
false;
74 switch (xf->stereo_format) {
77 if (kind == AllAvailable) {
80 stereo_format = XRT_STEREO_FORMAT_NONE;
85 case XRT_STEREO_FORMAT_NONE:
96 frame->stereo_format = stereo_format;
114 frame->data + 3 * cols,
127 if (
frame ==
nullptr) {
132 u_sink_debug_push_frame(&usd,
frame);
136 xrt_frame_reference(&
frame, NULL);
xrt_stereo_format
What type of stereo format a frame has.
Definition xrt_defines.h:222
@ XRT_STEREO_FORMAT_SBS
Side by side.
Definition xrt_defines.h:224
Definition u_pacing_compositor.c:54
Allows more safely to debug sink inputs and outputs.
Definition u_sink.h:211
Definition t_helper_debug_sink.hpp:23
Basic frame data structure - holds a pointer to buffer.
Definition xrt_frame.h:25
uint64_t source_sequence
sequence id
Definition xrt_frame.h:41
void u_frame_create_one_off(enum xrt_format f, uint32_t width, uint32_t height, struct xrt_frame **out_frame)
Creates a single non-pooled frame, when the reference reaches zero it is freed.
Definition u_frame.c:26
xrt_frame_sink converters and other helpers.