Commit 3d4c4ebf authored by cclepper's avatar cclepper
Browse files

added optimizations to YUV and a first try at an altivec function


git-svn-id: https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/trunk/Gem@300 49b2a0ca-c541-4d49-a7ef-d785e4371512
parent c5ffd8c1
......@@ -535,8 +535,10 @@ void pix_convolve :: calculate3x3YUVAltivec(imageStruct &image,imageStruct &temp
vec_dst( dst, prefetchSize, 0 );
i = 0;
h =0;
w = 0;
// dst = i;
i = xsize+16;
i = xsize+2;
// i = xsize;
//load our initial values
/* val1 = 0;
......@@ -548,9 +550,9 @@ void pix_convolve :: calculate3x3YUVAltivec(imageStruct &image,imageStruct &temp
val7 = vec_ld(0,src+i+xsize-2);
val8 = vec_ld(0,src+i+xsize);
val9 = vec_ld(0,src+i+xsize+2); */
// post("pix_convolve: h %d w %d total pixels %d ",h,w,i);
for ( h=1; h<image.ysize-1; h++){
for (w=1; w<width-1; w++)
for (w=1; w<width; w++)
{
vec_dst( src, prefetchSize, 0 );
......@@ -669,13 +671,13 @@ void pix_convolve :: calculate3x3YUVAltivec(imageStruct &image,imageStruct &temp
}
vec_dss( 0 );
i=(h+1)*(xsize+2);
// i=(h+1)*(xsize+2);
// post("pix_convolve: h %d w %d total pixels %d ",h,w,i);
//dst+=16;
//i+=16;
// dst++;
} /*end of working altivec function */
post("pix_convolve: h %d w %d total pixels %d ",h,w,i);
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment