diff --git a/veejay-current/libvje/effects/pencilsketch.c b/veejay-current/libvje/effects/pencilsketch.c index 23f125dd..4828bae1 100644 --- a/veejay-current/libvje/effects/pencilsketch.c +++ b/veejay-current/libvje/effects/pencilsketch.c @@ -178,7 +178,6 @@ void pencilsketch_apply( m = m + d; /* a magical forumula to combine the pixel with the original*/ y = ((((y << 1) - (255 - m))>>1) + Y[i])>>1; - // if(y < 16) y = 16; else if (y>240) y = 240; /* apply blend operation on masked pixel */ Y[i] = _pff(y,yb,threshold_max); } @@ -192,11 +191,8 @@ void pencilsketch_apply( if(type != 7) /* all b/w sketches */ { - for(i=0; i < uv_len; i++) - { - Cb[i] = 128; - Cr[i] = 128; - } + veejay_memset( Cb, 0, uv_len ); + veejay_memset( Cr, 0, uv_len ); } else /* all colour sketches */ { diff --git a/veejay-current/libvje/plugload.c b/veejay-current/libvje/plugload.c index 9601b8f5..0a36ec1c 100644 --- a/veejay-current/libvje/plugload.c +++ b/veejay-current/libvje/plugload.c @@ -312,7 +312,9 @@ static void* deal_with_fr( void *handle, char *name) if( r_params > 8 ) r_params = 8; - char *plug_name = strdup( finfo.name ); + char new_name[512]; + sprintf(new_name, "Frei0r %s", finfo.name ); + char *plug_name = strdup( new_name ); vevo_property_set( port, "n_params", VEVO_ATOM_TYPE_INT, 1, &r_params ); vevo_property_set( port, "f0r_p", VEVO_ATOM_TYPE_INT,1, &n_params ); vevo_property_set( port, "name", VEVO_ATOM_TYPE_STRING,1, &plug_name ); @@ -351,7 +353,9 @@ static void* deal_with_ff( void *handle, char *name ) return NULL; } - plugin_name = strdup( pis->pluginName ); + char new_name[512]; + sprintf(new_name, "FreeFrame %s", pis->pluginName ); + plugin_name = strdup( new_name ); if ( (q(FF_INITIALISE, NULL, 0 )).ivalue == FF_FAIL ) { veejay_msg(VEEJAY_MSG_ERROR, "Cannot call init()");