mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Camera: copy JPG and RGBA data if needed
This commit is contained in:
parent
33851d51ab
commit
0db7ab64ee
1 changed files with 2 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue