mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
Quality option can be returned without parsing input file.
This commit is contained in:
parent
8845dd9818
commit
8b9125c913
@ -722,13 +722,15 @@ bool QAVIFHandler::write(const QImage &image)
|
|||||||
|
|
||||||
QVariant QAVIFHandler::option(ImageOption option) const
|
QVariant QAVIFHandler::option(ImageOption option) const
|
||||||
{
|
{
|
||||||
|
if (option == Quality) {
|
||||||
|
return m_quality;
|
||||||
|
}
|
||||||
|
|
||||||
if (!supportsOption(option) || !ensureParsed()) {
|
if (!supportsOption(option) || !ensureParsed()) {
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case Quality:
|
|
||||||
return m_quality;
|
|
||||||
case Size:
|
case Size:
|
||||||
return m_current_image.size();
|
return m_current_image.size();
|
||||||
case Animation:
|
case Animation:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user