changeset 24602:a767a981c983

Remove unused crappy hash_pic function, blessed by Rich. Fixes warning: vf_detc.c:57: warning: 'hash_pic' defined but not used
author diego
date Wed, 26 Sep 2007 22:43:38 +0000
parents e445ce1c6ec1
children 4d4c5efcfdb0
files libmpcodecs/vf_detc.c
diffstat 1 files changed, 0 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_detc.c	Wed Sep 26 21:31:07 2007 +0000
+++ b/libmpcodecs/vf_detc.c	Wed Sep 26 22:43:38 2007 +0000
@@ -53,25 +53,6 @@
 	TC_IL2
 };
 
-static unsigned int hash_pic(unsigned char *img, int w, int h, int stride)
-{
-	int step = w*h/1024;
-	unsigned int hash=0;
-	int x=0, y;
-
-	step -= step % 3;
-
-	for (y=0; y<h; y++) {
-		for (; x<w; x+=step) {
-			hash = hash ^ (hash<<4) ^ img[x];
-		}
-		x -= w;
-		img += stride;
-	}
-	
-	return hash;
-}
-
 static void block_diffs(struct metrics *m, unsigned char *old, unsigned char *new, int os, int ns)
 {
 	int x, y, even=0, odd=0, noise, temp;