Lines Matching full:hsad
195 ushort *sad, *hsad0, *hsad, *hsad_sub;
223 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp;
227 for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep )
234 hsad[d] = (ushort)(hsad[d] + diff);
255 hsad = hsad0 - dy0*ndisp;
261 hsad += ndisp, lptr += sstep, lptr_sub += sstep, rptr += sstep )
268 __m128i hsad_l = _mm_load_si128((__m128i*)(hsad + d));
269 __m128i hsad_h = _mm_load_si128((__m128i*)(hsad + d + 8));
277 _mm_store_si128((__m128i*)(hsad + d), hsad_l);
278 _mm_store_si128((__m128i*)(hsad + d + 8), hsad_h);
293 hsad = hsad0 + (1 - dy0)*ndisp;
294 for( y = 1 - dy0; y < wsz2; y++, hsad += ndisp )
296 sad[d] = (ushort)(sad[d] + hsad[d]);
305 hsad = hsad0 + MIN(y + wsz2, height+dy1-1)*ndisp;
313 __m128i v1 = _mm_load_si128((__m128i*)(hsad + d));
403 int *sad, *hsad0, *hsad, *hsad_sub, *htext;
429 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp;
433 for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep )
440 hsad[d] = (int)(hsad[d] + diff);
461 hsad = hsad0 - dy0*ndisp;
467 hsad += ndisp, lptr += sstep, lptr_sub += sstep, rptr += sstep )
474 hsad[d] = hsad[d] + diff - cbuf_sub[d];
489 hsad = hsad0 + (1 - dy0)*ndisp;
490 for( y = 1 - dy0; y < wsz2; y++, hsad += ndisp )
492 sad[d] = (int)(sad[d] + hsad[d]);
501 hsad = hsad0 + MIN(y + wsz2, height+dy1-1)*ndisp;
506 int currsad = sad[d] + hsad[d] - hsad_sub[d];