Home | History | Annotate | Download | only in cuda

Lines Matching refs:p00

54 template<typename T, Ncv32u CN> struct __average4_CN {static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11);};
57 static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11)
60 out.x = ((Ncv32s)p00.x + p01.x + p10.x + p11.x + 2) / 4;
65 static __host__ __device__ float1 _average4_CN(const float1 &p00, const float1 &p01, const float1 &p10, const float1 &p11)
68 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
73 static __host__ __device__ double1 _average4_CN(const double1 &p00, const double1 &p01, const double1 &p10, const double1 &p11)
76 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
81 static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11)
84 out.x = ((Ncv32s)p00.x + p01.x + p10.x + p11.x + 2) / 4;
85 out.y = ((Ncv32s)p00.y + p01.y + p10.y + p11.y + 2) / 4;
86 out.z = ((Ncv32s)p00.z + p01.z + p10.z + p11.z + 2) / 4;
91 static __host__ __device__ float3 _average4_CN(const float3 &p00, const float3 &p01, const float3 &p10, const float3 &p11)
94 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
95 out.y = (p00.y + p01.y + p10.y + p11.y) / 4;
96 out.z = (p00.z + p01.z + p10.z + p11.z) / 4;
101 static __host__ __device__ double3 _average4_CN(const double3 &p00, const double3 &p01, const double3 &p10, const double3 &p11)
104 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
105 out.y = (p00.y + p01.y + p10.y + p11.y) / 4;
106 out.z = (p00.z + p01.z + p10.z + p11.z) / 4;
111 static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11)
114 out.x = ((Ncv32s)p00.x + p01.x + p10.x + p11.x + 2) / 4;
115 out.y = ((Ncv32s)p00.y + p01.y + p10.y + p11.y + 2) / 4;
116 out.z = ((Ncv32s)p00.z + p01.z + p10.z + p11.z + 2) / 4;
117 out.w = ((Ncv32s)p00.w + p01.w + p10.w + p11.w + 2) / 4;
122 static __host__ __device__ float4 _average4_CN(const float4 &p00, const float4 &p01, const float4 &p10, const float4 &p11)
125 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
126 out.y = (p00.y + p01.y + p10.y + p11.y) / 4;
127 out.z = (p00.z + p01.z + p10.z + p11.z) / 4;
128 out.w = (p00.w + p01.w + p10.w + p11.w) / 4;
133 static __host__ __device__ double4 _average4_CN(const double4 &p00, const double4 &p01, const double4 &p10, const double4 &p11)
136 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
137 out.y = (p00.y + p01.y + p10.y + p11.y) / 4;
138 out.z = (p00.z + p01.z + p10.z + p11.z) / 4;
139 out.w = (p00.w + p01.w + p10.w + p11.w) / 4;
143 template<typename T> static __host__ __device__ T _average4(const T &p00, const T &p01, const T &p10, const T &p11)
145 return __average4_CN<T, NC(T)>::_average4_CN(p00, p01, p10, p11);
199 T p00 = d_src_line1[2*j+0];
204 d_dst_line[j] = _average4(p00, p01, p10, p11);
277 T p00, p01, p10, p11;
278 p00 = d_src_line1[xl];
279 p01 = xh < szTopRoi.width ? d_src_line1[xh] : p00;
280 p10 = yh < szTopRoi.height ? d_src_line2[xl] : p00;
281 p11 = (xh < szTopRoi.width && yh < szTopRoi.height) ? d_src_line2[xh] : p00;
283 TVFlt m_00_01 = _lerp<T, TVFlt>(p00, p01, dx);
352 T p00, p01, p10, p11;
353 p00 = refLayer.at(xl, yl);
354 p01 = xh < refLayer.width() ? refLayer.at(xh, yl) : p00;
355 p10 = yh < refLayer.height() ? refLayer.at(xl, yh) : p00;
356 p11 = (xh < refLayer.width() && yh < refLayer.height()) ? refLayer.at(xh, yh) : p00;
358 TVFlt m_00_01 = _lerp<T, TVFlt>(p00, p01, dx);
430 T p00 = h_prevLayer.at(2*j+0, 2*i+0);
434 T outGold = _average4(p00, p01, p10, p11);
447 T p00 = prevLayer->at(2*j+0, 2*i+0);
451 curLayer->at(j, i) = _average4(p00, p01, p10, p11);