mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 00:58:15 -04:00
avif: prepare for breaking change in libavif
This commit is contained in:
parent
cff2604cf9
commit
ebcc34519c
@ -724,9 +724,7 @@ bool QAVIFHandler::write(const QImage &image)
|
||||
if (save_depth > 8) { // 10bit depth
|
||||
rgb.depth = 16;
|
||||
|
||||
if (tmpcolorimage.hasAlphaChannel()) {
|
||||
avif->alphaRange = AVIF_RANGE_FULL;
|
||||
} else {
|
||||
if (!tmpcolorimage.hasAlphaChannel()) {
|
||||
rgb.ignoreAlpha = AVIF_TRUE;
|
||||
}
|
||||
|
||||
@ -736,7 +734,6 @@ bool QAVIFHandler::write(const QImage &image)
|
||||
|
||||
if (tmpcolorimage.hasAlphaChannel()) {
|
||||
rgb.format = AVIF_RGB_FORMAT_RGBA;
|
||||
avif->alphaRange = AVIF_RANGE_FULL;
|
||||
} else {
|
||||
rgb.format = AVIF_RGB_FORMAT_RGB;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user