summaryrefslogtreecommitdiff
path: root/test/serialization/control_serialization.cpp
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2022-07-05 16:04:03 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-07-18 23:18:13 +0100
commitef77e2637985b61dc99669b4396647ad13acb204 (patch)
treeb3810f5f2b934fcc948ed7cb29eb6d4113358abc /test/serialization/control_serialization.cpp
parent24095ff765e32046a9d22c83ca53c4cd89e540ce (diff)
qcam: viewfinder_qt: Support X RGB variants
Support the X variants of the RGB pixel formats alongside the equivalent Alpha component based versions. The QImage::Format_RGB32 and QImage::Format_RGBX8888 formats only specify that the alpha component must be 0xff. While the Qt documentation doesn't guarantee that the alpha value will be ignored by consumers, this seems to be the implemented behaviour, at least when rendering with QPainter::drawImage(). The existing use of QImage::Format_RGBA8888 is updated to use the QImage::Format_RGBX8888 variant to ensure that the image data is visible. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/serialization/control_serialization.cpp')
0 files changed, 0 insertions, 0 deletions