summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qvideoframeconversionhelper_p.h
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/qvideoframeconversionhelper_p.h
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/qvideoframeconversionhelper_p.h')
-rw-r--r--src/multimedia/video/qvideoframeconversionhelper_p.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/multimedia/video/qvideoframeconversionhelper_p.h b/src/multimedia/video/qvideoframeconversionhelper_p.h
index 1d633995c..5ec919d9f 100644
--- a/src/multimedia/video/qvideoframeconversionhelper_p.h
+++ b/src/multimedia/video/qvideoframeconversionhelper_p.h
@@ -80,22 +80,6 @@ inline quint32 qConvertBGR24ToARGB32(const uchar *bgr)
return 0xFF000000 | bgr[0] | bgr[1] << 8 | bgr[2] << 16;
}
-inline quint32 qConvertBGR565ToARGB32(quint16 bgr)
-{
- return 0xff000000
- | ((((bgr) >> 8) & 0xf8) | (((bgr) >> 13) & 0x7))
- | ((((bgr) << 5) & 0xfc00) | (((bgr) >> 1) & 0x300))
- | ((((bgr) << 19) & 0xf80000) | (((bgr) << 14) & 0x70000));
-}
-
-inline quint32 qConvertBGR555ToARGB32(quint16 bgr)
-{
- return 0xff000000
- | ((((bgr) >> 7) & 0xf8) | (((bgr) >> 12) & 0x7))
- | ((((bgr) << 6) & 0xf800) | (((bgr) << 1) & 0x700))
- | ((((bgr) << 19) & 0xf80000) | (((bgr) << 11) & 0x70000));
-}
-
#define FETCH_INFO_PACKED(frame) \
const uchar *src = frame.bits(); \
int stride = frame.bytesPerLine(); \