Lines Matching refs:sum
69 work_t sum; in pyrDown() local
71 sum = 0.0625f * src(src_y - 2, x); in pyrDown()
72 sum = sum + 0.25f * src(src_y - 1, x); in pyrDown()
73 sum = sum + 0.375f * src(src_y , x); in pyrDown()
74 sum = sum + 0.25f * src(src_y + 1, x); in pyrDown()
75 sum = sum + 0.0625f * src(src_y + 2, x); in pyrDown()
77 smem[2 + threadIdx.x] = sum; in pyrDown()
84 work_t sum; in pyrDown() local
86 sum = 0.0625f * src(src_y - 2, left_x); in pyrDown()
87 sum = sum + 0.25f * src(src_y - 1, left_x); in pyrDown()
88 sum = sum + 0.375f * src(src_y , left_x); in pyrDown()
89 sum = sum + 0.25f * src(src_y + 1, left_x); in pyrDown()
90 sum = sum + 0.0625f * src(src_y + 2, left_x); in pyrDown()
92 smem[threadIdx.x] = sum; in pyrDown()
99 work_t sum; in pyrDown() local
101 sum = 0.0625f * src(src_y - 2, right_x); in pyrDown()
102 sum = sum + 0.25f * src(src_y - 1, right_x); in pyrDown()
103 sum = sum + 0.375f * src(src_y , right_x); in pyrDown()
104 sum = sum + 0.25f * src(src_y + 1, right_x); in pyrDown()
105 sum = sum + 0.0625f * src(src_y + 2, right_x); in pyrDown()
107 smem[4 + threadIdx.x] = sum; in pyrDown()
113 work_t sum; in pyrDown() local
115 sum = 0.0625f * src(b.idx_row_low (src_y - 2), b.idx_col_high(x)); in pyrDown()
116 sum = sum + 0.25f * src(b.idx_row_low (src_y - 1), b.idx_col_high(x)); in pyrDown()
117 sum = sum + 0.375f * src(src_y , b.idx_col_high(x)); in pyrDown()
118 sum = sum + 0.25f * src(b.idx_row_high(src_y + 1), b.idx_col_high(x)); in pyrDown()
119 sum = sum + 0.0625f * src(b.idx_row_high(src_y + 2), b.idx_col_high(x)); in pyrDown()
121 smem[2 + threadIdx.x] = sum; in pyrDown()
128 work_t sum; in pyrDown() local
130 sum = 0.0625f * src(b.idx_row_low (src_y - 2), b.idx_col(left_x)); in pyrDown()
131 sum = sum + 0.25f * src(b.idx_row_low (src_y - 1), b.idx_col(left_x)); in pyrDown()
132 sum = sum + 0.375f * src(src_y , b.idx_col(left_x)); in pyrDown()
133 sum = sum + 0.25f * src(b.idx_row_high(src_y + 1), b.idx_col(left_x)); in pyrDown()
134 sum = sum + 0.0625f * src(b.idx_row_high(src_y + 2), b.idx_col(left_x)); in pyrDown()
136 smem[threadIdx.x] = sum; in pyrDown()
143 work_t sum; in pyrDown() local
145 sum = 0.0625f * src(b.idx_row_low (src_y - 2), b.idx_col_high(right_x)); in pyrDown()
146 sum = sum + 0.25f * src(b.idx_row_low (src_y - 1), b.idx_col_high(right_x)); in pyrDown()
147 sum = sum + 0.375f * src(src_y , b.idx_col_high(right_x)); in pyrDown()
148 sum = sum + 0.25f * src(b.idx_row_high(src_y + 1), b.idx_col_high(right_x)); in pyrDown()
149 sum = sum + 0.0625f * src(b.idx_row_high(src_y + 2), b.idx_col_high(right_x)); in pyrDown()
151 smem[4 + threadIdx.x] = sum; in pyrDown()
161 work_t sum; in pyrDown() local
163 sum = 0.0625f * smem[2 + tid2 - 2]; in pyrDown()
164 sum = sum + 0.25f * smem[2 + tid2 - 1]; in pyrDown()
165 sum = sum + 0.375f * smem[2 + tid2 ]; in pyrDown()
166 sum = sum + 0.25f * smem[2 + tid2 + 1]; in pyrDown()
167 sum = sum + 0.0625f * smem[2 + tid2 + 2]; in pyrDown()
172 dst.ptr(y)[dst_x] = saturate_cast<T>(sum); in pyrDown()