Skip to content

Commit

Permalink
qtblend transition speedup: request original source format instead of…
Browse files Browse the repository at this point in the history
… consumer format first to avoid unnecessary yuv->rgba conversions
  • Loading branch information
j-b-m committed May 30, 2020
1 parent b645137 commit 110b023
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/qt/transition_qtblend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ static int get_image( mlt_frame a_frame, uint8_t **image, mlt_image_format *form
if ( !hasAlpha )
{
// fetch image
error = mlt_frame_get_image( b_frame, &b_image, format, width, height, 1 );
mlt_image_format fmt = mlt_image_none;
error = mlt_frame_get_image( b_frame, &b_image, &fmt, width, height, 1 );
*format = fmt;
if ( *format == mlt_image_rgb24a || mlt_frame_get_alpha( b_frame ) )
{
hasAlpha = true;
Expand Down

0 comments on commit 110b023

Please sign in to comment.