*image = output;
}
- return 0;
-}
-
-static void scale_alpha( mlt_frame this, int iwidth, int iheight, int owidth, int oheight )
-{
+ // Scale the alpha
uint8_t *output = NULL;
uint8_t *input = mlt_frame_get_alpha_mask( this );
// Set it back on the frame
mlt_properties_set_data( MLT_FRAME_PROPERTIES( this ), "alpha", output, owidth * oheight, mlt_pool_release, NULL );
}
+
+ return 0;
}
/** Do it :-).
scaler_method( this, image, *format, mlt_image_yuv422, iwidth, iheight, owidth, oheight );
*width = owidth;
*height = oheight;
-
- // Scale the alpha
- scale_alpha( this, iwidth, iheight, owidth, oheight );
}
else if ( *format == mlt_image_rgb24 && wanted_format == mlt_image_rgb24 )
{
// Return the output
*width = owidth;
*height = oheight;
-
- // Scale the alpha
- scale_alpha( this, iwidth, iheight, owidth, oheight );
}
else if ( *format == mlt_image_rgb24 || *format == mlt_image_rgb24a )
{
*format = mlt_image_yuv422;
*width = owidth;
*height = oheight;
-
- // Scale the alpha
- scale_alpha( this, iwidth, iheight, owidth, oheight );
}
else
{