X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_rescale.c;h=dfbec8fb7b8917eb59d5ccfb912a6eceaad77e29;hb=f5da31bf950521eaef7fc1f7047603e28cbbb377;hp=a028f6cc6ba7560b3dd744981ed1adf5846632d1;hpb=263e253a65f403b90eecf0b46b692e326e970b29;p=melted diff --git a/src/modules/core/filter_rescale.c b/src/modules/core/filter_rescale.c index a028f6c..dfbec8f 100644 --- a/src/modules/core/filter_rescale.c +++ b/src/modules/core/filter_rescale.c @@ -140,6 +140,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * int owidth = *width; int oheight = *height; char *interps = mlt_properties_get( properties, "rescale.interp" ); + int wanted_format = *format; // Default from the scaler if not specifed on the frame if ( interps == NULL ) @@ -189,6 +190,15 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * *width = owidth; *height = oheight; } + else if ( *format == mlt_image_rgb24 && wanted_format == mlt_image_rgb24 ) + { + // Call the local scaler + scaler_method( this, image, *format, mlt_image_rgb24, iwidth, iheight, owidth, oheight ); + + // Return the output + *width = owidth; + *height = oheight; + } else if ( *format == mlt_image_rgb24 || *format == mlt_image_rgb24a ) { // Call the local scaler