#include <KisMediaEncoderWrapper.h>
Definition at line 86 of file KisMediaEncoderWrapper.h.
◆ Frame()
| KisMediaEncoderRunnable::Frame::Frame |
( |
const QString & | path = QString(), |
|
|
int | instances = 0 ) |
|
inlineexplicit |
◆ instances()
| int KisMediaEncoderRunnable::Frame::instances |
( |
| ) |
const |
|
inline |
◆ path()
| const QString & KisMediaEncoderRunnable::Frame::path |
( |
| ) |
const |
|
inline |
◆ readImage()
| bool KisMediaEncoderRunnable::Frame::readImage |
( |
QImage & | outImage | ) |
const |
Definition at line 46 of file KisMediaEncoderWrapper.cpp.
47{
48 QImageReader reader(
m_path);
49 if (reader.read(&outImage)) {
50
51 if (outImage.isNull() || outImage.size().isEmpty()) {
52 warnFile.nospace() <<
"Got null image reading frame from file '" <<
m_path <<
"'";
53 return false;
54 } else {
55 return true;
56 }
57 } else {
58 warnFile.nospace() <<
"Error " << reader.error() <<
" reading frame from file '" <<
m_path
59 << "': " << reader.errorString();
60
61 outImage = QImage();
62 return false;
63 }
64}
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: