summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-blocks
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2025-08-21 13:44:03 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2025-08-27 17:53:47 +0200
commit93e2b44bc07d1e1c7d85e084fa07f9db8392fef1 (patch)
treeebe545a727a6165b695fffe13d0a14a1fe514ceb /src/gui/doc/snippets/textdocument-blocks
parentb25c1e8452ecffa70b4b75fdb579f08187b36a63 (diff)
Teach qt_mac_toQImage about most of our image formats
Instead of always converting the image to Format_ARGB32_Premultiplied potentially flattening formats with higher bit depths, we now try to respect the original format of the CGImage. This gives us support for formats like RGB30 and the various float formats that are important for HDR. A new qt_mac_imageFormatForCGImage helper has been added that matches qt_mac_cgImageFormatForImage but in reverse. During the conversion we try to adopt the existing data if possible, which should be zero-copy despite the function name CGDataProviderCopyData indicating otherwise. [ChangeLog][Apple] Converting from CGImageRef, used for example in the HEIC/HEIF image reader, now support a wider range of image formats, including QImage::Format_RGB30 and the various floating point formats. Change-Id: Id49ee95f67cbe53819672ae52387917e0d7a61e1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-blocks')
0 files changed, 0 insertions, 0 deletions