From 5023b54ba76325bb0b5598d59714bdad2d55d81e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 18 Mar 2019 15:20:09 +0100 Subject: video: add support for camera modules Issue: #910 --- tracker-pt/pt-api.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tracker-pt/pt-api.hpp') diff --git a/tracker-pt/pt-api.hpp b/tracker-pt/pt-api.hpp index b44cfea2..741576a1 100644 --- a/tracker-pt/pt-api.hpp +++ b/tracker-pt/pt-api.hpp @@ -12,6 +12,7 @@ #include #include +#include #ifdef __clang__ # pragma clang diagnostic push @@ -30,7 +31,7 @@ struct pt_camera_info final int res_x = 0; int res_y = 0; - int idx = -1; + QString name; }; struct pt_pixel_pos_mixin @@ -74,7 +75,7 @@ struct pt_camera pt_camera(); virtual ~pt_camera(); - [[nodiscard]] virtual bool start(int idx, int fps, int res_x, int res_y) = 0; + [[nodiscard]] virtual bool start(const QString& name, int fps, int res_x, int res_y) = 0; virtual void stop() = 0; virtual result get_frame(pt_frame& frame) = 0; -- cgit v1.2.3