From 0db7ab64ee4e4827f049b35f3be0ccf9a6eb8651 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 6 Jul 2024 17:43:32 +0200 Subject: [PATCH] Camera: copy JPG and RGBA data if needed --- rpcs3/rpcs3qt/qt_camera_video_sink.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rpcs3/rpcs3qt/qt_camera_video_sink.cpp b/rpcs3/rpcs3qt/qt_camera_video_sink.cpp index 3ddbfc7478..b33e8235f5 100644 --- a/rpcs3/rpcs3qt/qt_camera_video_sink.cpp +++ b/rpcs3/rpcs3qt/qt_camera_video_sink.cpp @@ -103,10 +103,6 @@ bool qt_camera_video_sink::present(const QVideoFrame& frame) switch (m_format) { - case CELL_CAMERA_JPG: - break; - case CELL_CAMERA_RGBA: - break; case CELL_CAMERA_RAW8: // The game seems to expect BGGR { // Let's use a very simple algorithm to convert the image to raw BGGR @@ -233,6 +229,8 @@ bool qt_camera_video_sink::present(const QVideoFrame& frame) synchronizer.waitForFinished(); break; } + case CELL_CAMERA_JPG: + case CELL_CAMERA_RGBA: case CELL_CAMERA_RAW10: case CELL_CAMERA_YUV420: case CELL_CAMERA_FORMAT_UNKNOWN: