mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-11-30 12:02:42 -05:00
Check primaries returned from libavif
Due to various double vs float arithmetic, some primaries could be rejected by Qt. If necessary, we adjust the values so they will be accepted by Qt. Remove newline from the ends of error strings.
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
#include <qimageiohandler.h>
|
||||
#include <QImageIOPlugin>
|
||||
#include <QByteArray>
|
||||
#include <QPointF>
|
||||
#include <avif/avif.h>
|
||||
|
||||
class QAVIFHandler : public QImageIOHandler
|
||||
@ -41,6 +42,7 @@ public:
|
||||
|
||||
int loopCount() const override;
|
||||
private:
|
||||
static QPointF CompatibleChromacity(qreal chrX, qreal chrY);
|
||||
bool ensureParsed() const;
|
||||
bool ensureDecoder();
|
||||
bool decode_one_frame();
|
||||
|
||||
Reference in New Issue
Block a user