- kDebug() << "///// FRAME exists";
- mlt_image_format format = mlt_image_yuv422;
- int frame_width = 0;
- int frame_height = 0;
- frame->set("normalised_height", height);
- frame->set("normalised_width", width);
- QPixmap pix(width, height);
- kDebug() << "///// FRAME exists 2";
- uint8_t *data = frame->get_image(format, frame_width, frame_height, 0);
- kDebug() << "///// FRAME exists 2a";
- uint8_t *new_image = (uint8_t *)mlt_pool_alloc(frame_width * (frame_height + 1) * 4);
- kDebug() << "///// FRAME exists 2b";
- mlt_convert_yuv422_to_rgb24a((uint8_t *)data, new_image, frame_width * frame_height);
- kDebug() << "///// FRAME exists 2c";
- QImage image((uchar *)new_image, frame_width, frame_height, QImage::Format_ARGB32);
- kDebug() << "///// FRAME exists 3";
+
+ /*Mlt::Producer parentProd(producer->parent());
+ Mlt::Service service(parentProd.get_service());
+ mlt_service_lock(service.get_service());*/
+
+ mlt_image_format format = mlt_image_rgb24a;
+ uint8_t *data = frame->get_image(format, width, height, 0);
+ QImage image((uchar *)data, width, height, QImage::Format_ARGB32);
+ //mlt_service_unlock(service.get_service());
+