12#include <klocalizedstring.h>
44 QImageReader reader(
m_path);
45 if (reader.read(&outImage)) {
47 if (outImage.isNull() || outImage.size().isEmpty()) {
48 warnFile.nospace() <<
"Got null image reading frame from file '" <<
m_path <<
"'";
54 warnFile.nospace() <<
"Error " << reader.error() <<
" reading frame from file '" <<
m_path
55 <<
"': " << reader.errorString();
71 if (inputFileCount == 0) {
75 int lastIndex = inputFileCount - 1;
132 outErrorMessage = i18n(
"No frame files found");
137 return encode(outErrorMessage);
160 Qt::QueuedConnection);
165 Qt::QueuedConnection);
170 Qt::QueuedConnection);
175 Qt::QueuedConnection);
180 Qt::QueuedConnection);
185 Qt::QueuedConnection);
188 runnable->setAutoDelete(
true);
189 QThreadPool::globalInstance()->start(runnable);
202 disconnect(runnable);
209 if (!supportedFormats) {
215 return *supportedFormats;
221 if (format->key() == key) {
235 if (androidRunnable) {
236 return androidRunnable;
#define KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(cond, val)