Commit a8ae7c43 authored by Ryan Pavlik's avatar Ryan Pavlik
Browse files

aux/tracking: Fix class vs struct warnings in calibration and hsv debug code.

parent 12de62fd
Pipeline #58048 passed with stages
in 1 minute and 30 seconds
......@@ -172,7 +172,7 @@ process_frame_yuyv(class Calibration &c, struct xrt_frame *xf)
int half_w = w / 2;
int h = (int)xf->height;
class t_frame_yuyv f = {};
struct t_frame_yuyv f = {};
f.data_half = cv::Mat(h, half_w, CV_8UC4, xf->data, xf->stride);
f.data_full = cv::Mat(h, w, CV_8UC2, xf->data, xf->stride);
......@@ -192,7 +192,7 @@ process_frame_yuyv(class Calibration &c, struct xrt_frame *xf)
extern "C" void
t_calibration_frame(struct xrt_frame_sink *xsink, struct xrt_frame *xf)
{
auto &c = *(struct Calibration *)xsink;
auto &c = *(class Calibration *)xsink;
#if 0
if (xf->stereo_format != XRT_FS_STEREO_SBS) {
......
......@@ -77,7 +77,7 @@ t_debug_hsv_filter_frame3(struct xrt_frame_sink *xsink, struct xrt_frame *xf)
extern "C" void
t_debug_hsv_filter_frame(struct xrt_frame_sink *xsink, struct xrt_frame *xf)
{
auto &d = *(struct DebugHSV *)xsink;
auto &d = *(class DebugHSV *)xsink;
d.sink->push_frame(d.sink, xf);
d.passthrough->push_frame(d.passthrough, xf);
......
......@@ -192,7 +192,7 @@ on_high_V_thresh_trackbar(int, void *)
extern "C" void
t_debug_hsv_picker_frame(struct xrt_frame_sink *xsink, struct xrt_frame *xf)
{
auto &d = *(struct DebugHSVPicker *)xsink;
auto &d = *(class DebugHSVPicker *)xsink;
process_frame(d, xf);
......
......@@ -148,7 +148,7 @@ process_frame(DebugHSV &d, struct xrt_frame *xf)
extern "C" void
t_debug_hsv_viewer_frame(struct xrt_frame_sink *xsink, struct xrt_frame *xf)
{
auto &d = *(struct DebugHSV *)xsink;
auto &d = *(class DebugHSV *)xsink;
process_frame(d, xf);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment