#include <KisMediaEncoderWrapper.h>
Definition at line 79 of file KisMediaEncoderWrapper.h.
◆ Frame()
| KisMediaEncoderRunnable::Frame::Frame |
( |
const QString & | path = QString(), |
|
|
int | instances = 0 ) |
|
inlineexplicit |
◆ instances()
| int KisMediaEncoderRunnable::Frame::instances |
( |
| ) |
const |
|
inline |
◆ readImage()
| bool KisMediaEncoderRunnable::Frame::readImage |
( |
QImage & | outImage | ) |
const |
Definition at line 42 of file KisMediaEncoderWrapper.cpp.
43{
44 QImageReader reader(
m_path);
45 if (reader.read(&outImage)) {
46
47 if (outImage.isNull() || outImage.size().isEmpty()) {
48 warnFile.nospace() <<
"Got null image reading frame from file '" <<
m_path <<
"'";
49 return false;
50 } else {
51 return true;
52 }
53 } else {
54 warnFile.nospace() <<
"Error " << reader.error() <<
" reading frame from file '" <<
m_path
55 << "': " << reader.errorString();
56
57 outImage = QImage();
58 return false;
59 }
60}
References m_path, and warnFile.
◆ m_instances
| int KisMediaEncoderRunnable::Frame::m_instances |
|
private |
◆ m_path
| QString KisMediaEncoderRunnable::Frame::m_path |
|
private |
The documentation for this class was generated from the following files: