Convert blurhash image format on worker thread
Not only should this prevent hickups, it also fixes a potential crash.
This commit is contained in:
parent
203ddb20de
commit
4428388b3f
@ -38,5 +38,5 @@ BlurhashRunnable::run()
|
|||||||
(int)decoded.width * 3,
|
(int)decoded.width * 3,
|
||||||
QImage::Format_RGB888);
|
QImage::Format_RGB888);
|
||||||
|
|
||||||
emit done(std::move(image));
|
emit done(image.convertToFormat(QImage::Format_RGB32));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user