mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
JXR: jxrlib cannot write HDP and WDP formats
According with JXRLib GetIIDInfo(), HDP and WPD formats are read only. ``` static PKIIDInfo iidInfo[] = { {".jxr", &IID_PKImageWmpEncode, &IID_PKImageWmpDecode}, {".wdp", &IID_PKImageUnsupported, &IID_PKImageWmpDecode}, {".hdp", &IID_PKImageUnsupported, &IID_PKImageWmpDecode}, }; ```
This commit is contained in:
parent
28c4ceeba9
commit
9f05ecb523
@ -1086,9 +1086,12 @@ bool JXRHandler::canRead(QIODevice *device)
|
||||
|
||||
QImageIOPlugin::Capabilities JXRPlugin::capabilities(QIODevice *device, const QByteArray &format) const
|
||||
{
|
||||
if (format == "jxr" || format == "wdp" || format == "hdp") {
|
||||
if (format == "jxr") {
|
||||
return Capabilities(CanRead | CanWrite);
|
||||
}
|
||||
if (format == "wdp" || format == "hdp") {
|
||||
return Capabilities(CanRead);
|
||||
}
|
||||
if (!format.isEmpty()) {
|
||||
return {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user