Mercurial > mplayer.hg
comparison libmpcodecs/vf_detc.c @ 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 | 5c3c7efd9b75 |
children | 00fff9a3b735 |
comparison
equal
deleted
inserted
replaced
24601:e445ce1c6ec1 | 24602:a767a981c983 |
---|---|
50 TC_DROP, | 50 TC_DROP, |
51 TC_PROG, | 51 TC_PROG, |
52 TC_IL1, | 52 TC_IL1, |
53 TC_IL2 | 53 TC_IL2 |
54 }; | 54 }; |
55 | |
56 static unsigned int hash_pic(unsigned char *img, int w, int h, int stride) | |
57 { | |
58 int step = w*h/1024; | |
59 unsigned int hash=0; | |
60 int x=0, y; | |
61 | |
62 step -= step % 3; | |
63 | |
64 for (y=0; y<h; y++) { | |
65 for (; x<w; x+=step) { | |
66 hash = hash ^ (hash<<4) ^ img[x]; | |
67 } | |
68 x -= w; | |
69 img += stride; | |
70 } | |
71 | |
72 return hash; | |
73 } | |
74 | 55 |
75 static void block_diffs(struct metrics *m, unsigned char *old, unsigned char *new, int os, int ns) | 56 static void block_diffs(struct metrics *m, unsigned char *old, unsigned char *new, int os, int ns) |
76 { | 57 { |
77 int x, y, even=0, odd=0, noise, temp; | 58 int x, y, even=0, odd=0, noise, temp; |
78 unsigned char *oldp, *newp; | 59 unsigned char *oldp, *newp; |