aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-12-17 10:21:50 -0500
committerGitHub <noreply@github.com>2022-12-17 10:21:50 -0500
commita3bac5550d144246fb95b12f0fb2b45befcb8035 (patch)
tree12d14847347c6fe006e5b7dfc4fd11439e48e195 /src/yuzu/bootmanager.h
parent4faea2bbf46bbfc7b69ce2c56cd2eb274be49d70 (diff)
parent7bf4bec257dffb633d818fb1a7ade6b899ec79a5 (diff)
Merge pull request #9451 from ameerj/camera-data-array
camera: Use pre-allocated vector for camera data
Diffstat (limited to 'src/yuzu/bootmanager.h')
-rw-r--r--src/yuzu/bootmanager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h
index f0edad6e4..5bbcf61f7 100644
--- a/src/yuzu/bootmanager.h
+++ b/src/yuzu/bootmanager.h
@@ -247,6 +247,9 @@ private:
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA
std::unique_ptr<QCamera> camera;
std::unique_ptr<QCameraImageCapture> camera_capture;
+ static constexpr std::size_t CAMERA_WIDTH = 320;
+ static constexpr std::size_t CAMERA_HEIGHT = 240;
+ std::vector<u32> camera_data;
#endif
std::unique_ptr<QTimer> camera_timer;