mirror of https://github.com/mpv-player/mpv
Remove unused crappy hash_pic function, blessed by Rich.
Fixes warning: vf_detc.c:57: warning: 'hash_pic' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24622 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
81c28fba08
commit
6e0510ff84
|
@ -53,25 +53,6 @@ enum {
|
||||||
TC_IL2
|
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)
|
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;
|
int x, y, even=0, odd=0, noise, temp;
|
||||||
|
|
Loading…
Reference in New Issue