summaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-15 22:50:36 -0500
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-16 18:00:47 -0500
commit7bf4bec257dffb633d818fb1a7ade6b899ec79a5 (patch)
tree79572d3f31bb42d89df8552bd7d45ff37b189814 /src/yuzu/bootmanager.h
parent9ff891ce71bfe89f46a1b6f018e421db5dec5762 (diff)
camera: Use pre-allocated vector for camera data
And avoid an unnecessary copy
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 f4deae4ee..4dec2da2a 100644
--- a/src/yuzu/bootmanager.h
+++ b/src/yuzu/bootmanager.h
@@ -246,6 +246,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;