git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@332
d19143bc-622f-0410-bfdd-
b5b2a6649095
if ( this != NULL )
{
this->process = filter_process;
- mlt_properties_set( mlt_filter_properties( this ), "u", "50" );
- mlt_properties_set( mlt_filter_properties( this ), "v", "50" );
+ mlt_properties_set( mlt_filter_properties( this ), "u", "75" );
+ mlt_properties_set( mlt_filter_properties( this ), "v", "150" );
}
return this;
}
{
if ( alpha == NULL )
{
- dx -= dx & 1;
+ dx += dx & 1;
*p ++ = *( b_image + dy * b_stride + ( dx << 1 ) );
*p ++ = *( b_image + dy * b_stride + ( dx << 1 ) + ( ( x & 1 ) << 1 ) + 1 );
}
else
{
- dx -= dx & 1;
mix = ( float )*( alpha + dy * b_width + dx ) / 255.0;
+ dx += dx & 1;
*p ++ = *p * ( 1 - mix ) + mix * *( b_image + dy * b_stride + ( dx << 1 ) );
*p ++ = *p * ( 1 - mix ) + mix * *( b_image + dy * b_stride + ( dx << 1 ) + ( ( x & 1 ) << 1 ) + 1 );
}