19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: sad.c,v 1.13.2.4 2003-06-09 13:54:46 edgomez Exp $ |
* $Id: sad.c,v 1.13.2.5 2003-08-22 15:20:41 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
228 |
int32_t *sad) |
int32_t *sad) |
229 |
{ |
{ |
230 |
sad[0] = sad16(cur, ref, stride, 256*4096); |
sad[0] = sad16(cur, ref, stride, 256*4096); |
231 |
sad[1] = sad16(cur + 8, ref + 8, stride, 256*4096); |
sad[1] = sad16(cur + 16, ref + 16, stride, 256*4096); |
232 |
sad[2] = sad16(cur + 8*stride, ref + 8*stride, stride, 256*4096); |
sad[2] = sad16(cur + 16*stride, ref + 16*stride, stride, 256*4096); |
233 |
sad[3] = sad16(cur + 8*stride + 8, ref + 8*stride + 8, stride, 256*4096); |
sad[3] = sad16(cur + 16*stride + 16, ref + 16*stride + 16, stride, 256*4096); |
234 |
|
|
235 |
return sad[0]+sad[1]+sad[2]+sad[3]; |
return sad[0]+sad[1]+sad[2]+sad[3]; |
236 |
} |
} |
278 |
return MRSAD16_CORRFACTOR * sad; |
return MRSAD16_CORRFACTOR * sad; |
279 |
|
|
280 |
} |
} |
|
|
|
|
|
|