1149 |
} |
} |
1150 |
|
|
1151 |
/* because we might use something like IF (dx>max_dx) THEN dx=max_dx; */ |
/* because we might use something like IF (dx>max_dx) THEN dx=max_dx; */ |
1152 |
bPredEq = get_pmvdata(pMBs, x, y, iWcount, 0, pmv, psad); |
//bPredEq = get_pmvdata(pMBs, x, y, iWcount, 0, pmv, psad); |
1153 |
// bPredEq = get_pmvdata2(pMBs, iWcount, 0, x, y, 0, pmv, psad); |
bPredEq = get_pmvdata2(pMBs, iWcount, 0, x, y, 0, pmv, psad); |
1154 |
|
|
1155 |
/* fprintf(stderr,"pmv: %d %d / %d --- %d %d %d %d %d %d - %d %d %d\n", |
/* fprintf(stderr,"pmv: %d %d / %d --- %d %d %d %d %d %d - %d %d %d\n", |
1156 |
pmv[0].x,pmv[0].y,psad[0], |
pmv[0].x,pmv[0].y,psad[0], |
1577 |
} |
} |
1578 |
|
|
1579 |
/* because we might use IF (dx>max_dx) THEN dx=max_dx; */ |
/* because we might use IF (dx>max_dx) THEN dx=max_dx; */ |
1580 |
bPredEq = get_pmvdata(pMBs, (x >> 1), (y >> 1), iWcount, iSubBlock, pmv, psad); |
//bPredEq = get_pmvdata(pMBs, (x >> 1), (y >> 1), iWcount, iSubBlock, pmv, psad); |
1581 |
// bPredEq = get_pmvdata2(pMBs, iWcount, 0, (x >> 1), (y >> 1), iSubBlock, pmv, psad); |
bPredEq = get_pmvdata2(pMBs, iWcount, 0, (x >> 1), (y >> 1), iSubBlock, pmv, psad); |
1582 |
|
|
1583 |
if ((x == 0) && (y == 0)) { |
if ((x == 0) && (y == 0)) { |
1584 |
threshA = 512 / 4; |
threshA = 512 / 4; |
1888 |
max_dy = EVEN(max_dy); |
max_dy = EVEN(max_dy); |
1889 |
} |
} |
1890 |
/* because we might use something like IF (dx>max_dx) THEN dx=max_dx; */ |
/* because we might use something like IF (dx>max_dx) THEN dx=max_dx; */ |
1891 |
bPredEq = get_pmvdata(pMBs, x, y, iWcount, 0, pmv, psad); |
//bPredEq = get_pmvdata(pMBs, x, y, iWcount, 0, pmv, psad); |
1892 |
// bPredEq = get_pmvdata2(pMBs, iWcount, 0, x, y, 0, pmv, psad); |
bPredEq = get_pmvdata2(pMBs, iWcount, 0, x, y, 0, pmv, psad); |
1893 |
|
|
1894 |
/* Step 4: Calculate SAD around the Median prediction. |
/* Step 4: Calculate SAD around the Median prediction. |
1895 |
MinSAD=SAD |
MinSAD=SAD |
2167 |
max_dy = EVEN(max_dy); |
max_dy = EVEN(max_dy); |
2168 |
} |
} |
2169 |
/* because we might use something like IF (dx>max_dx) THEN dx=max_dx; */ |
/* because we might use something like IF (dx>max_dx) THEN dx=max_dx; */ |
2170 |
bPredEq = get_pmvdata(pMBs, x >> 1, y >> 1, iWcount, iSubBlock, pmv, psad); |
//bPredEq = get_pmvdata(pMBs, x >> 1, y >> 1, iWcount, iSubBlock, pmv, psad); |
2171 |
// bPredEq = get_pmvdata2(pMBs, iWcount, 0, x >> 1, y >> 1, iSubBlock, pmv, psad); |
bPredEq = get_pmvdata2(pMBs, iWcount, 0, x >> 1, y >> 1, iSubBlock, pmv, psad); |
2172 |
|
|
2173 |
|
|
2174 |
/* Step 4: Calculate SAD around the Median prediction. |
/* Step 4: Calculate SAD around the Median prediction. |