annotate osdep/timer.h @ 15721:eec6ace22741
small change to field-matching metrics which hopefully makes a big
improvement to results. inter-field comparison is now counterbalanced
with intra-field total (vertical) variation. this means that areas of
extreme high frequency content, which become aliased within individual
fields, will not interfere with field matching. examples: white noise
effects, small kanji, very small latin text, ...
may still need tweaking. please report regressions. this change will
likely be made optional in the future (right now it's enclosed in
"if (1)"...
author |
rfelker |
date |
Tue, 14 Jun 2005 05:33:34 +0000 |
parents |
f9755d9c479a |
children |
f580a7755ac5 |
rev |
line source |
4863
|
1 #ifndef __TIMER_H
|
|
2 #define __TIMER_H
|
1
|
3
|
12954
|
4 extern const char *timer_name;
|
|
5
|
1
|
6 void InitTimer();
|
99
|
7 unsigned int GetTimer();
|
4385
|
8 unsigned int GetTimerMS();
|
1
|
9 //int uGetTimer();
|
|
10 float GetRelativeTime();
|
|
11
|
2266
|
12 int usec_sleep(int usec_delay);
|
|
13
|
4863
|
14 /* timer's callback handling */
|
|
15 typedef void timer_callback( void );
|
|
16 extern unsigned set_timer_callback(unsigned ms,timer_callback func);
|
|
17 extern void restore_timer(void);
|
|
18
|
|
19 #endif
|