summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/camera.cpp8
-rw-r--r--tracker-pt/camera.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/tracker-pt/camera.cpp b/tracker-pt/camera.cpp
index e2bcc4b9..f218a6d6 100644
--- a/tracker-pt/camera.cpp
+++ b/tracker-pt/camera.cpp
@@ -36,14 +36,14 @@ double CamInfo::get_focal_length() const
//static bool once = false; if (!once) { once = true; qDebug() << "f" << ret << "fov" << (fov * 180/M_PI); }
}
-DEFUN_WARN_UNUSED Camera::result Camera::get_info() const
+warn_result_unused Camera::result Camera::get_info() const
{
if (cam_info.res_x == 0 || cam_info.res_y == 0)
return result(false, CamInfo());
return result(true, cam_info);
}
-DEFUN_WARN_UNUSED Camera::result Camera::get_frame(cv::Mat& frame)
+warn_result_unused Camera::result Camera::get_frame(cv::Mat& frame)
{
const bool new_frame = _get_frame(frame);
@@ -72,7 +72,7 @@ DEFUN_WARN_UNUSED Camera::result Camera::get_frame(cv::Mat& frame)
return result(false, CamInfo());
}
-DEFUN_WARN_UNUSED Camera::open_status Camera::start(int idx, int fps, int res_x, int res_y)
+warn_result_unused Camera::open_status Camera::start(int idx, int fps, int res_x, int res_y)
{
if (idx >= 0 && fps >= 0 && res_x >= 0 && res_y >= 0)
{
@@ -135,7 +135,7 @@ void Camera::stop()
cam_desired = CamInfo();
}
-DEFUN_WARN_UNUSED bool Camera::_get_frame(cv::Mat& frame)
+warn_result_unused bool Camera::_get_frame(cv::Mat& frame)
{
if (cap && cap->isOpened())
{
diff --git a/tracker-pt/camera.h b/tracker-pt/camera.h
index 388b9234..97dfa029 100644
--- a/tracker-pt/camera.h
+++ b/tracker-pt/camera.h
@@ -43,11 +43,11 @@ struct Camera final
Camera() : dt_mean(0), fov(0) {}
- DEFUN_WARN_UNUSED open_status start(int idx, int fps, int res_x, int res_y);
+ warn_result_unused open_status start(int idx, int fps, int res_x, int res_y);
void stop();
- DEFUN_WARN_UNUSED result get_frame(cv::Mat& frame);
- DEFUN_WARN_UNUSED result get_info() const;
+ warn_result_unused result get_frame(cv::Mat& frame);
+ warn_result_unused result get_info() const;
CamInfo get_desired() const { return cam_desired; }
QString get_desired_name() const;
@@ -62,7 +62,7 @@ struct Camera final
void set_fov(double value) { fov = value; }
private:
- DEFUN_WARN_UNUSED bool _get_frame(cv::Mat& frame);
+ warn_result_unused bool _get_frame(cv::Mat& frame);
double dt_mean;
double fov;