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

This commit is contained in:
Ryan Pavlik 2019-08-21 14:29:37 -05:00
parent 12de62fdbc
commit a8ae7c432d
4 changed files with 5 additions and 5 deletions

View file

@ -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) {

View file

@ -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);

View file

@ -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);

View file

@ -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);