//static
QImage KThumb::getFrame(Mlt::Producer *producer, int framepos, int width, int height)
{
- QImage p(width, height, QImage::Format_ARGB32);
+ QImage p(width, height, QImage::Format_ARGB32_Premultiplied);
if (producer == NULL) {
p.fill(Qt::red);
return p;
int oh = height;
mlt_image_format format = mlt_image_rgb24a;
uint8_t *data = frame->get_image(format, ow, oh, 0);
- QImage image((uchar *)data, ow, oh, QImage::Format_ARGB32);
+ QImage image((uchar *)data, ow, oh, QImage::Format_ARGB32_Premultiplied);
//mlt_service_unlock(service.get_service());
if (!image.isNull()) {
int frame_width = width;
int frame_height = imageHeight;
uint8_t *data = frame->get_image(format, frame_width, frame_height, 0);
- QImage image((uchar *)data, frame_width, frame_height, QImage::Format_ARGB32);
+ QImage image((uchar *)data, frame_width, frame_height, QImage::Format_ARGB32_Premultiplied);
QPixmap pix;
if (!image.isNull()) {
int width = 0;
int height = 0;
const uchar* image = frame.get_image(format, width, height);
- QImage qimage(width, height, QImage::Format_ARGB32);
+ QImage qimage(width, height, QImage::Format_ARGB32_Premultiplied);
memcpy(qimage.scanLine(0), image, width * height * 4);
emit showImageSignal(qimage);
}