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.c,v 1.58.2.29 2003-08-28 11:06:15 syskin Exp $ |
* $Id: motion_est.c,v 1.58.2.30 2003-08-28 11:14:04 syskin Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
2245 |
|
|
2246 |
if (*Data->iMinSAD > 4 * MAX_SAD00_FOR_SKIP) { |
if (*Data->iMinSAD > 4 * MAX_SAD00_FOR_SKIP) { |
2247 |
|
|
2248 |
// if (!vector_repeats(pmv, 1)) |
if (!vector_repeats(pmv, 1)) |
2249 |
CheckCandidate32I(pmv[1].x, pmv[1].y, Data, 1); |
CheckCandidate32I(pmv[1].x, pmv[1].y, Data, 1); |
2250 |
// if (!vector_repeats(pmv, 2)) |
if (!vector_repeats(pmv, 2)) |
2251 |
CheckCandidate32I(pmv[2].x, pmv[2].y, Data, 2); |
CheckCandidate32I(pmv[2].x, pmv[2].y, Data, 2); |
2252 |
|
|
2253 |
if (*Data->iMinSAD > 4 * MAX_SAD00_FOR_SKIP) { /* diamond only if needed */ |
if (*Data->iMinSAD > 4 * MAX_SAD00_FOR_SKIP) { /* diamond only if needed */ |
2254 |
// unsigned int mask = make_mask(pmv, 3, *Data->dir); |
unsigned int mask = make_mask(pmv, 3, *Data->dir); |
2255 |
DiamondSearch(Data->currentMV->x, Data->currentMV->y, Data, 255/*mask*/, CheckCandidate32I); |
DiamondSearch(Data->currentMV->x, Data->currentMV->y, Data, 255/*mask*/, CheckCandidate32I); |
2256 |
} |
} |
2257 |
} |
} |