From 4ed107dcc0889d8267d9a69bb6077576f81790ce Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Mar 2020 12:40:24 +0200 Subject: tracker/aruco: add 720p to dropbox Fixes #1062 --- tracker-aruco/aruco-trackercontrols.ui | 5 +++++ tracker-aruco/ftnoir_tracker_aruco.cpp | 5 ++--- tracker-aruco/lang/nl_NL.ts | 4 ++++ tracker-aruco/lang/ru_RU.ts | 4 ++++ tracker-aruco/lang/stub.ts | 4 ++++ tracker-aruco/lang/zh_CN.ts | 4 ++++ 6 files changed, 23 insertions(+), 3 deletions(-) (limited to 'tracker-aruco') diff --git a/tracker-aruco/aruco-trackercontrols.ui b/tracker-aruco/aruco-trackercontrols.ui index 9c3bd78a4..4d40b6ef6 100644 --- a/tracker-aruco/aruco-trackercontrols.ui +++ b/tracker-aruco/aruco-trackercontrols.ui @@ -111,6 +111,11 @@ 320x240 + + + 1280x720 + + Default (not recommended!) diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index 0cdf4c2c3..6e94e6189 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -56,6 +56,7 @@ static const resolution_tuple resolution_choices[] = { { 640, 480 }, { 320, 240 }, + { 1280, 720 }, { 0, 0 } }; @@ -157,9 +158,7 @@ static int enum_to_fps(int value) bool aruco_tracker::open_camera() { - int rint = s.resolution; - if (rint < 0 || rint >= (int)(sizeof(resolution_choices) / sizeof(resolution_tuple))) - rint = 0; + int rint = std::clamp(*s.resolution, 0, (int)std::size(resolution_choices)-1); resolution_tuple res = resolution_choices[rint]; int fps = enum_to_fps(s.force_fps); diff --git a/tracker-aruco/lang/nl_NL.ts b/tracker-aruco/lang/nl_NL.ts index 870405659..c9213ea0f 100644 --- a/tracker-aruco/lang/nl_NL.ts +++ b/tracker-aruco/lang/nl_NL.ts @@ -59,6 +59,10 @@ Toggle calibration Schakel tussen kalibratie + + 1280x720 + 1280x720 + aruco_dialog diff --git a/tracker-aruco/lang/ru_RU.ts b/tracker-aruco/lang/ru_RU.ts index 57c8170dc..f78a7cae1 100644 --- a/tracker-aruco/lang/ru_RU.ts +++ b/tracker-aruco/lang/ru_RU.ts @@ -59,6 +59,10 @@ Toggle calibration + + 1280x720 + + aruco_dialog diff --git a/tracker-aruco/lang/stub.ts b/tracker-aruco/lang/stub.ts index 67cb36b82..82ccd2966 100644 --- a/tracker-aruco/lang/stub.ts +++ b/tracker-aruco/lang/stub.ts @@ -59,6 +59,10 @@ Toggle calibration + + 1280x720 + + aruco_dialog diff --git a/tracker-aruco/lang/zh_CN.ts b/tracker-aruco/lang/zh_CN.ts index b5093b4e8..e060c3874 100644 --- a/tracker-aruco/lang/zh_CN.ts +++ b/tracker-aruco/lang/zh_CN.ts @@ -59,6 +59,10 @@ Toggle calibration + + 1280x720 + + aruco_dialog -- cgit v1.2.3