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: motion_est.h,v 1.3.2.16 2003-08-25 15:10:30 syskin Exp $ |
* $Id: motion_est.h,v 1.3.2.17 2003-08-26 09:25:25 edgomez Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
179 |
} |
} |
180 |
|
|
181 |
k = (int)(width - (x<<block_sz))<<precision; |
k = (int)(width - (x<<block_sz))<<precision; |
182 |
*max_dx = min(high, k); |
*max_dx = MIN(high, k); |
183 |
k = (int)(height - (y<<block_sz))<<precision; |
k = (int)(height - (y<<block_sz))<<precision; |
184 |
*max_dy = min(high, k); |
*max_dy = MIN(high, k); |
185 |
|
|
186 |
k = (-(int)((x+1)<<block_sz))<<precision; |
k = (-(int)((x+1)<<block_sz))<<precision; |
187 |
*min_dx = max(low, k); |
*min_dx = MAX(low, k); |
188 |
k = (-(int)((y+1)<<block_sz))<<precision; |
k = (-(int)((y+1)<<block_sz))<<precision; |
189 |
*min_dy = max(low, k); |
*min_dy = MAX(low, k); |
190 |
} |
} |
191 |
|
|
192 |
typedef void MainSearchFunc(int x, int y, const SearchData * const Data, int bDirection); |
typedef void MainSearchFunc(int x, int y, const SearchData * const Data, int bDirection); |