summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-11 19:06:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-11 19:06:23 +0100
commit54ae60ffc0f16c982f625b246faa068297678a2b (patch)
tree57fa71220898c6f89b20250b5800437d5ccd4519 /tracker-pt
parentfbd961775001228f6ffd9cc3bf09aa2de610aeae (diff)
tracker/pt: also pass module name to camera class
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/camera.cpp2
-rw-r--r--tracker-pt/camera.h2
-rw-r--r--tracker-pt/module.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/tracker-pt/camera.cpp b/tracker-pt/camera.cpp
index 4784c51a..bbc37cb1 100644
--- a/tracker-pt/camera.cpp
+++ b/tracker-pt/camera.cpp
@@ -14,7 +14,7 @@
constexpr double Camera::dt_eps;
-Camera::Camera() : dt_mean(0), fov(0), s("tracker-pt") {}
+Camera::Camera(const QString& module_name) : dt_mean(0), fov(0), s(module_name) {}
QString Camera::get_desired_name() const
{
diff --git a/tracker-pt/camera.h b/tracker-pt/camera.h
index 7a4f75c4..f5fd8f81 100644
--- a/tracker-pt/camera.h
+++ b/tracker-pt/camera.h
@@ -22,7 +22,7 @@
struct Camera final : pt_camera
{
- Camera();
+ Camera(const QString& module_name);
pt_camera_open_status start(int idx, int fps, int res_x, int res_y) override;
void stop() override;
diff --git a/tracker-pt/module.cpp b/tracker-pt/module.cpp
index 0d96c351..d0f097b9 100644
--- a/tracker-pt/module.cpp
+++ b/tracker-pt/module.cpp
@@ -15,7 +15,7 @@ struct pt_module_traits final : pt_runtime_traits
{
std::unique_ptr<pt_camera> make_camera() const override
{
- return std::unique_ptr<pt_camera>(new Camera);
+ return std::unique_ptr<pt_camera>(new Camera(module_name));
}
std::unique_ptr<pt_point_extractor> make_point_extractor() const override