mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 13:07:48 +00:00
camera: Use pre-allocated vector for camera data
And avoid an unnecessary copy
This commit is contained in:
parent
016590e25d
commit
2d9fc5d05b
4 changed files with 12 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue