mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-08-26 08:26:59 -04:00
heif: declare read support for HIF
image/heif MIME type uses following three file extensions: heif, heic, hif. Adding HIF into plugin's list.
This commit is contained in:
@@ -1465,6 +1465,14 @@ QImageIOPlugin::Capabilities HEIFPlugin::capabilities(QIODevice *device, const Q
|
||||
return format_cap;
|
||||
}
|
||||
|
||||
if (format == "hif") {
|
||||
Capabilities format_cap;
|
||||
if (HEIFHandler::isHeifDecoderAvailable()) {
|
||||
format_cap |= CanRead;
|
||||
}
|
||||
return format_cap;
|
||||
}
|
||||
|
||||
if (format == "hej2") {
|
||||
Capabilities format_cap;
|
||||
if (HEIFHandler::isHej2DecoderAvailable()) {
|
||||
|
||||
Reference in New Issue
Block a user