Camera: copy JPG and RGBA data if needed

This commit is contained in:
Megamouse 2024-07-06 17:43:32 +02:00
parent 33851d51ab
commit 0db7ab64ee

View File

@ -103,10 +103,6 @@ bool qt_camera_video_sink::present(const QVideoFrame& frame)
switch (m_format) switch (m_format)
{ {
case CELL_CAMERA_JPG:
break;
case CELL_CAMERA_RGBA:
break;
case CELL_CAMERA_RAW8: // The game seems to expect BGGR case CELL_CAMERA_RAW8: // The game seems to expect BGGR
{ {
// Let's use a very simple algorithm to convert the image to raw 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(); synchronizer.waitForFinished();
break; break;
} }
case CELL_CAMERA_JPG:
case CELL_CAMERA_RGBA:
case CELL_CAMERA_RAW10: case CELL_CAMERA_RAW10:
case CELL_CAMERA_YUV420: case CELL_CAMERA_YUV420:
case CELL_CAMERA_FORMAT_UNKNOWN: case CELL_CAMERA_FORMAT_UNKNOWN: