Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Monado
Monado
Commits
a8ae7c43
Commit
a8ae7c43
authored
Aug 21, 2019
by
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
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/xrt/auxiliary/tracking/t_calibration.cpp
View file @
a8ae7c43
...
...
@@ -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) {
...
...
src/xrt/auxiliary/tracking/t_debug_hsv_filter.cpp
View file @
a8ae7c43
...
...
@@ -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
);
...
...
src/xrt/auxiliary/tracking/t_debug_hsv_picker.cpp
View file @
a8ae7c43
...
...
@@ -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
);
...
...
src/xrt/auxiliary/tracking/t_debug_hsv_viewer.cpp
View file @
a8ae7c43
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment