13 #error "This header is C++-only." 16 #include <opencv2/opencv.hpp> 30 Kind kind = AllAvailable;
47 xrt_frame_reference(&frame, NULL);
58 bool second_view =
false;
59 int rows, cols, width, height;
67 switch (xf->stereo_format) {
70 if (kind == AllAvailable) {
73 stereo_format = XRT_STEREO_FORMAT_NONE;
78 case XRT_STEREO_FORMAT_NONE:
90 frame->stereo_format = stereo_format;
108 frame->data + 3 * cols,
125 xrt_frame_reference(&frame, NULL);
void(* push_frame)(struct xrt_frame_sink *sink, struct xrt_frame *frame)
Push a frame into the sink.
Definition: xrt_frame.h:56
xrt_stereo_format
What type of stereo format a frame has.
Definition: xrt_defines.h:84
A object that is sent frames.
Definition: xrt_frame.h:51
Definition: t_helper_debug_sink.hpp:20
Basic frame data structure - holds a pointer to buffer.
Definition: xrt_frame.h:24
uint64_t source_sequence
sequence id
Definition: xrt_frame.h:41
Side by side.
Definition: xrt_defines.h:87
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