pencil sketch minor optimize, prefix frei0r and freeframe plugins

git-svn-id: svn://code.dyne.org/veejay/trunk@758 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2007-02-03 22:34:04 +00:00
parent 088e492053
commit c80d376390
2 changed files with 8 additions and 8 deletions

View File

@@ -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 */
{