mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
aux/tracking: Fix class vs struct warnings in calibration and hsv debug code.
This commit is contained in:
parent
12de62fdbc
commit
a8ae7c432d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue