21 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
22 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
* |
* |
24 |
* $Id: estimation_common.c,v 1.9 2004-11-22 05:30:08 syskin Exp $ |
* $Id: estimation_common.c,v 1.10 2004-12-08 12:43:48 syskin Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
495 |
CHECK_CANDIDATE((xo+xo2)>>1, (yo+yo2)>>1, direction); |
CHECK_CANDIDATE((xo+xo2)>>1, (yo+yo2)>>1, direction); |
496 |
|
|
497 |
} |
} |
498 |
|
|
499 |
|
/* it's the positive max, so "32" needs fcode of 2, not 1 */ |
500 |
|
unsigned int |
501 |
|
getMinFcode(const int MVmax) |
502 |
|
{ |
503 |
|
unsigned int fcode; |
504 |
|
for (fcode = 1; (16 << fcode) <= MVmax; fcode++); |
505 |
|
return fcode; |
506 |
|
} |