Lines Matching refs:hsad
338 ushort *sad, *hsad0, *hsad, *hsad_sub; in findStereoCorrespondenceBM_SSE2() local
368 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in findStereoCorrespondenceBM_SSE2()
372 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in findStereoCorrespondenceBM_SSE2()
379 __m128i hsad_l = _mm_load_si128((__m128i*)(hsad + d)); in findStereoCorrespondenceBM_SSE2()
380 __m128i hsad_h = _mm_load_si128((__m128i*)(hsad + d + 8)); in findStereoCorrespondenceBM_SSE2()
385 _mm_store_si128((__m128i*)(hsad + d), hsad_l); in findStereoCorrespondenceBM_SSE2()
386 _mm_store_si128((__m128i*)(hsad + d + 8), hsad_h); in findStereoCorrespondenceBM_SSE2()
408 hsad = hsad0 - dy0*ndisp; in findStereoCorrespondenceBM_SSE2()
414 hsad += ndisp, lptr += sstep, lptr_sub += sstep, rptr += sstep ) in findStereoCorrespondenceBM_SSE2()
421 __m128i hsad_l = _mm_load_si128((__m128i*)(hsad + d)); in findStereoCorrespondenceBM_SSE2()
422 __m128i hsad_h = _mm_load_si128((__m128i*)(hsad + d + 8)); in findStereoCorrespondenceBM_SSE2()
430 _mm_store_si128((__m128i*)(hsad + d), hsad_l); in findStereoCorrespondenceBM_SSE2()
431 _mm_store_si128((__m128i*)(hsad + d + 8), hsad_h); in findStereoCorrespondenceBM_SSE2()
446 hsad = hsad0 + (1 - dy0)*ndisp; in findStereoCorrespondenceBM_SSE2()
447 for( y = 1 - dy0; y < wsz2; y++, hsad += ndisp ) in findStereoCorrespondenceBM_SSE2()
452 __m128i t0 = _mm_load_si128((__m128i*)(hsad + d)); in findStereoCorrespondenceBM_SSE2()
453 __m128i t1 = _mm_load_si128((__m128i*)(hsad + d + 8)); in findStereoCorrespondenceBM_SSE2()
467 hsad = hsad0 + MIN(y + wsz2, height+dy1-1)*ndisp; in findStereoCorrespondenceBM_SSE2()
475 __m128i u1 = _mm_load_si128((__m128i*)(hsad + d)); in findStereoCorrespondenceBM_SSE2()
478 __m128i v1 = _mm_load_si128((__m128i*)(hsad + d + 8)); in findStereoCorrespondenceBM_SSE2()
597 int *sad, *hsad0, *hsad, *hsad_sub, *htext; in findStereoCorrespondenceBM() local
625 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in findStereoCorrespondenceBM()
628 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in findStereoCorrespondenceBM()
637 int32x4_t hsad_l = vld1q_s32 (hsad + d); in findStereoCorrespondenceBM()
638 int32x4_t hsad_h = vld1q_s32 (hsad + d + 4); in findStereoCorrespondenceBM()
643 vst1q_s32 ((hsad + d), hsad_l); in findStereoCorrespondenceBM()
644 vst1q_s32 ((hsad + d + 4), hsad_h); in findStereoCorrespondenceBM()
651 hsad[d] = (int)(hsad[d] + diff); in findStereoCorrespondenceBM()
674 hsad = hsad0 - dy0*ndisp; in findStereoCorrespondenceBM()
680 hsad += ndisp, lptr += sstep, lptr_sub += sstep, rptr += sstep ) in findStereoCorrespondenceBM()
688 int32x4_t hsad_l = vld1q_s32 (hsad + d); in findStereoCorrespondenceBM()
689 int32x4_t hsad_h = vld1q_s32 (hsad + d + 4); in findStereoCorrespondenceBM()
697 vst1q_s32 ((hsad + d), hsad_l); in findStereoCorrespondenceBM()
698 vst1q_s32 ((hsad + d + 4), hsad_h); in findStereoCorrespondenceBM()
705 hsad[d] = hsad[d] + diff - cbuf_sub[d]; in findStereoCorrespondenceBM()
721 hsad = hsad0 + (1 - dy0)*ndisp; in findStereoCorrespondenceBM()
722 for( y = 1 - dy0; y < wsz2; y++, hsad += ndisp ) in findStereoCorrespondenceBM()
729 int32x4_t t0 = vld1q_s32 (hsad + d); in findStereoCorrespondenceBM()
730 int32x4_t t1 = vld1q_s32 (hsad + d + 4); in findStereoCorrespondenceBM()
738 sad[d] = (int)(sad[d] + hsad[d]); in findStereoCorrespondenceBM()
749 hsad = hsad0 + MIN(y + wsz2, height+dy1-1)*ndisp; in findStereoCorrespondenceBM()
758 int32x4_t u1 = vld1q_s32 (hsad + d); in findStereoCorrespondenceBM()
761 int32x4_t v1 = vld1q_s32 (hsad + d + 4); in findStereoCorrespondenceBM()
808 int currsad = sad[d] + hsad[d] - hsad_sub[d]; in findStereoCorrespondenceBM()