X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ftransition_composite.c;h=d9c1bf40c3ff5deb62d2229d0ab45ba689426577;hb=d7ae73d25cf5a38a3a8153ae52409fcbef16bb22;hp=df7fab1bf004b829181fe60c1f765ce122b850b0;hpb=bdbe7d802961afa00c233b3cf30e32f0e1c3740a;p=melted diff --git a/src/modules/core/transition_composite.c b/src/modules/core/transition_composite.c index df7fab1..d9c1bf4 100644 --- a/src/modules/core/transition_composite.c +++ b/src/modules/core/transition_composite.c @@ -152,8 +152,6 @@ static void geometry_calculate( struct geometry_s *output, struct geometry_s *in output->y = in->y + ( out->y - in->y ) * position; output->w = in->w + ( out->w - in->w ) * position; output->h = in->h + ( out->h - in->h ) * position; - output->sw = output->w; - output->sh = output->h; output->mix = in->mix + ( out->mix - in->mix ) * position; output->distort = in->distort; @@ -499,6 +497,11 @@ static int get_b_frame_image( mlt_transition this, mlt_frame b_frame, uint8_t ** geometry->sw = scaled_width; geometry->sh = scaled_height; } + else + { + geometry->sw = geometry->w; + geometry->sh = geometry->h; + } // We want to ensure that we bypass resize now... mlt_properties_set( b_props, "distort", "true" ); @@ -527,15 +530,6 @@ static int get_b_frame_image( mlt_transition this, mlt_frame b_frame, uint8_t ** } -static uint8_t *transition_get_alpha_mask( mlt_frame this ) -{ - // Obtain properties of frame - mlt_properties properties = mlt_frame_properties( this ); - - // Return the alpha mask - return mlt_properties_get_data( properties, "alpha", NULL ); -} - struct geometry_s *composite_calculate( struct geometry_s *result, mlt_transition this, mlt_frame a_frame, float position ) { // Get the properties from the transition @@ -610,8 +604,8 @@ mlt_frame composite_copy_region( mlt_transition this, mlt_frame a_frame ) // Need to scale down to actual dimensions x = result.x * width / result.nw ; y = result.y * height / result.nh; - w = result.sw * width / result.nw; - h = result.sh * height / result.nh; + w = result.w * width / result.nw; + h = result.h * height / result.nh; x &= 0xfffffffe; w &= 0xfffffffe;