23 explicit ImageDecoder(
const QByteArray &image_data, QObject *parent =
nullptr)
60 void error(
const QString &message);
68 void imageInfo(
int width,
int height,
bool has_alpha);
void imageReady(const QImage &image)
Emitted when the image has been successfully decoded.
void imageInfo(int width, int height, bool has_alpha)
Emitted after successful decoding, providing basic image information.
QImage Decode()
Attempts to decode the image data stored internally. Uses QImage::loadFromData() to perform the decod...
Definition image_decoder.cpp:5
ImageDecoder(const QByteArray &image_data, QObject *parent=nullptr)
Constructs an ImageDecoder object.
Definition image_decoder.h:23
~ImageDecoder() override
Destructor. Does not require special resource management like FFmpeg-based decoders.
Definition image_decoder.h:31
void error(const QString &message)
Emitted if an error occurs during image loading or decoding.
static void ReleaseResources()
Static method placeholder for resource release. In this Qt-based implementation, there are no specifi...
Definition image_decoder.h:38
QByteArray image_data_
Stores the raw image data provided in the constructor.
Definition image_decoder.h:72