X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fqimage%2Fqimage_wrapper.cpp;h=cc88272380bbdf68e64c7aa640c80adffd210f47;hb=a5ab71761c0334c52565e034f2343d7cdc39c23d;hp=c07883629e93abd3126b1df4cf13d5fef38b3573;hpb=d61a4ab32e7b834996d394b2e8032680e05109ff;p=melted diff --git a/src/modules/qimage/qimage_wrapper.cpp b/src/modules/qimage/qimage_wrapper.cpp index c078836..cc88272 100644 --- a/src/modules/qimage/qimage_wrapper.cpp +++ b/src/modules/qimage/qimage_wrapper.cpp @@ -153,7 +153,10 @@ void refresh_qimage( mlt_frame frame, int width, int height ) current_alpha = ( uint8_t * )mlt_pool_alloc( current_width * current_height ); // Convert the image - mlt_convert_bgr24a_to_yuv422( temp.bits( ), current_width, current_height, temp.bytesPerLine( ), current_image, current_alpha ); + if ( QImage::systemBitOrder( ) == QImage::BigEndian ) + mlt_convert_argb_to_yuv422( temp.bits( ), current_width, current_height, temp.bytesPerLine( ), current_image, current_alpha ); + else + mlt_convert_bgr24a_to_yuv422( temp.bits( ), current_width, current_height, temp.bytesPerLine( ), current_image, current_alpha ); assign_buffered_image( producer_props, current_image, current_alpha, current_width, current_height ); }