Lines Matching refs:sum
81 sum_t sum = VecTraits<sum_t>::all(0); in pyrUp() local
90 … sum = sum + (evenFlag * 0.0625f) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx - 2) >> 1)]; in pyrUp()
91 … sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx - 1) >> 1)]; in pyrUp()
92 … sum = sum + (evenFlag * 0.375f ) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx ) >> 1)]; in pyrUp()
93 … sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx + 1) >> 1)]; in pyrUp()
94 … sum = sum + (evenFlag * 0.0625f) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx + 2) >> 1)]; in pyrUp()
97 s_dstPatch[2 + threadIdx.y][threadIdx.x] = sum; in pyrUp()
101 sum = VecTraits<sum_t>::all(0); in pyrUp()
105 sum = sum + (evenFlag * 0.0625f) * s_srcPatch[0][1 + ((tidx - 2) >> 1)]; in pyrUp()
106 sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[0][1 + ((tidx - 1) >> 1)]; in pyrUp()
107 sum = sum + (evenFlag * 0.375f ) * s_srcPatch[0][1 + ((tidx ) >> 1)]; in pyrUp()
108 sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[0][1 + ((tidx + 1) >> 1)]; in pyrUp()
109 sum = sum + (evenFlag * 0.0625f) * s_srcPatch[0][1 + ((tidx + 2) >> 1)]; in pyrUp()
112 s_dstPatch[threadIdx.y][threadIdx.x] = sum; in pyrUp()
117 sum = VecTraits<sum_t>::all(0); in pyrUp()
121 sum = sum + (evenFlag * 0.0625f) * s_srcPatch[9][1 + ((tidx - 2) >> 1)]; in pyrUp()
122 sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[9][1 + ((tidx - 1) >> 1)]; in pyrUp()
123 sum = sum + (evenFlag * 0.375f ) * s_srcPatch[9][1 + ((tidx ) >> 1)]; in pyrUp()
124 sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[9][1 + ((tidx + 1) >> 1)]; in pyrUp()
125 sum = sum + (evenFlag * 0.0625f) * s_srcPatch[9][1 + ((tidx + 2) >> 1)]; in pyrUp()
128 s_dstPatch[4 + threadIdx.y][threadIdx.x] = sum; in pyrUp()
133 sum = VecTraits<sum_t>::all(0); in pyrUp()
137 sum = sum + 0.0625f * s_dstPatch[2 + tidy - 2][threadIdx.x]; in pyrUp()
138 sum = sum + 0.25f * s_dstPatch[2 + tidy - 1][threadIdx.x]; in pyrUp()
139 sum = sum + 0.375f * s_dstPatch[2 + tidy ][threadIdx.x]; in pyrUp()
140 sum = sum + 0.25f * s_dstPatch[2 + tidy + 1][threadIdx.x]; in pyrUp()
141 sum = sum + 0.0625f * s_dstPatch[2 + tidy + 2][threadIdx.x]; in pyrUp()
144 dst(y, x) = saturate_cast<T>(4.0f * sum); in pyrUp()