summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qvideotexturehelper.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-04-06 14:24:13 +0200
committerLars Knoll <lars.knoll@qt.io>2021-04-08 12:19:31 +0000
commit66c339928cde3e582d75ef8350d91f3359dd86a5 (patch)
tree82584ab73e88f520e07b80d1bdd9d65bdab03839 /src/multimedia/video/qvideotexturehelper.cpp
parentf40b4a467ca573adc9e91956f0dbac9bc3a96949 (diff)
Remove 16bit RGB pixel formats
We can't handle them efficiently on old OpenGL 2 based hardware. As YUV formats are usually preferred, we should not have problems simply removing those. Change-Id: Ibee483302cdada9d4d46c18196c6cee5d9945ae2 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/video/qvideotexturehelper.cpp')
-rw-r--r--src/multimedia/video/qvideotexturehelper.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/multimedia/video/qvideotexturehelper.cpp b/src/multimedia/video/qvideotexturehelper.cpp
index 2d7832020..56282445d 100644
--- a/src/multimedia/video/qvideotexturehelper.cpp
+++ b/src/multimedia/video/qvideotexturehelper.cpp
@@ -64,16 +64,6 @@ static const TextureDescription descriptions[QVideoSurfaceFormat::NPixelFormats]
{ QRhiTexture::BGRA8, QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat },
{ { 1, 1 }, { 1, 1 }, { 1, 1 } }
},
- // Format_RGB565
- { 1,
- { QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat },
- { { 1, 1 }, { 1, 1 }, { 1, 1 } }
- },
- // Format_RGB555
- { 1,
- { QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat },
- { { 1, 1 }, { 1, 1 }, { 1, 1 } }
- },
// Format_BGRA32
{ 1,
{ QRhiTexture::BGRA8, QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat },
@@ -94,16 +84,6 @@ static const TextureDescription descriptions[QVideoSurfaceFormat::NPixelFormats]
{ QRhiTexture::BGRA8, QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat },
{ { 1, 1 }, { 1, 1 }, { 1, 1 } }
},
- // Format_BGR565
- { 1,
- { QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat },
- { { 1, 1 }, { 1, 1 }, { 1, 1 } }
- },
- // Format_BGR555
- { 1,
- { QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat, QRhiTexture::UnknownFormat },
- { { 1, 1 }, { 1, 1 }, { 1, 1 } }
- },
// Format_AYUV444
{ 1,
@@ -215,12 +195,6 @@ QString fragmentShaderFileName(QVideoSurfaceFormat::PixelFormat format)
switch (format) {
case QVideoSurfaceFormat::Format_Invalid:
case QVideoSurfaceFormat::Format_Jpeg:
-
- case QVideoSurfaceFormat::Format_RGB565:
- case QVideoSurfaceFormat::Format_RGB555:
- case QVideoSurfaceFormat::Format_BGR565:
- case QVideoSurfaceFormat::Format_BGR555:
-
return QString();
case QVideoSurfaceFormat::Format_Y8:
@@ -296,11 +270,6 @@ QByteArray uniformData(const QVideoSurfaceFormat &format, const QMatrix4x4 &tran
switch (format.pixelFormat()) {
case QVideoSurfaceFormat::Format_Invalid:
case QVideoSurfaceFormat::Format_Jpeg:
-
- case QVideoSurfaceFormat::Format_RGB565:
- case QVideoSurfaceFormat::Format_RGB555:
- case QVideoSurfaceFormat::Format_BGR565:
- case QVideoSurfaceFormat::Format_BGR555:
return QByteArray();
case QVideoSurfaceFormat::Format_ARGB32: