summaryrefslogtreecommitdiff
path: root/rMD-exp/src/cache_frame.c
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-07 08:34:25 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-07 08:34:25 +0000
commitbda6b2593e7906db106779f8d73a1c99441d8ed8 (patch)
treee0daf69e6c9e1f043e7239d3e5956b5aeb0711bb /rMD-exp/src/cache_frame.c
parentea5a99801c87b693dc627998de3cb53736443816 (diff)
removed uneeded func MakeChecksums
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@149 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'rMD-exp/src/cache_frame.c')
-rw-r--r--rMD-exp/src/cache_frame.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/rMD-exp/src/cache_frame.c b/rMD-exp/src/cache_frame.c
index f0a7b15..d845367 100644
--- a/rMD-exp/src/cache_frame.c
+++ b/rMD-exp/src/cache_frame.c
@@ -27,37 +27,6 @@
#include <recordmydesktop.h>
-void MakeChecksums(unsigned char *buf,int width,int height,int divisor,unsigned short int *checksums){
- int i,k,j,m;
-
- for(i=0;i<divisor;i++){
- for(k=0;k<divisor;k++){
- int A=1,B=0;
- for(j=0;j<height/divisor;j++){
- for(m=0;m<width/divisor;m++){
- A+=buf[i*(width*height/divisor)+j*width+k*width/divisor+m];
- B+=A;
- }
- }
- A=A%65521;
- B=B%65521;
- checksums[i*divisor+k]=B*65536+A;
-// A = (A & 0xffff) + (A >> 16) * (15);
-// B = (B & 0xffff) + (B >> 16) * (15);
-//
-// if (A >= 65521)
-// A -= 65521;
-//
-// B = (B & 0xffff) + (B >> 16) * (15);
-// if (B >= 65521)
-// B -= 65521;
-// checksums[i*divisor+k]= ((B << 16) | A) ;
-
-
- }
- }
-}
-
int CompareBlocks(unsigned char *incoming,unsigned char *old,int blockno,int width, int height,int divisor){
int j,i,
block_i=blockno/divisor,//place on the grid
© All Rights Reserved