int y = geometry.y * height_dest / geometry.nh;
// Align x to a full YUYV group
- x &= 0xfffffffe;
- width_src &= 0xfffffffe;
+ x = ( x | 1 ) ^ 1;
+ width_src = ( width_src | 1 ) ^ 1;
// optimization points - no work to do
if ( width_src <= 0 || height_src <= 0 )
*width = geometry->sw * *width / geometry->nw;
*height = geometry->sh * *height / geometry->nh;
- x &= 0xfffffffe;
+ x = ( x | 1 ) ^ 1;
// optimization points - no work to do
if ( *width < 1 || *height < 1 )
if ( y + h > height )
h = height - y;
- x &= 0xfffffffe;
- w &= 0xfffffffe;
+ x = ( x | 1 ) ^ 1;
+ w = ( w | 1 ) ^ 1;
// Now we need to create a new destination image
dest = mlt_pool_alloc( w * h * 2 );