Home | History | Annotate | Download | only in cuda

Lines Matching full:tout

118 template<typename Tout> inline Tout _pixMakeZero();
152 template<typename Tin, typename Tout, Ncv32u CN> struct __pixDemoteClampZ_CN {static __host__ __device__ Tout _pixDemoteClampZ_CN(Tin &pix);};
154 template<typename Tin, typename Tout> struct __pixDemoteClampZ_CN<Tin, Tout, 1> {
155 static __host__ __device__ Tout _pixDemoteClampZ_CN(Tin &pix)
157 Tout out;
162 template<typename Tin, typename Tout> struct __pixDemoteClampZ_CN<Tin, Tout, 3> {
163 static __host__ __device__ Tout _pixDemoteClampZ_CN(Tin &pix)
165 Tout out;
172 template<typename Tin, typename Tout> struct __pixDemoteClampZ_CN<Tin, Tout, 4> {
173 static __host__ __device__ Tout _pixDemoteClampZ_CN(Tin &pix)
175 Tout out;
183 template<typename Tin, typename Tout> inline __host__ __device__ Tout _pixDemoteClampZ(Tin &pix)
185 return __pixDemoteClampZ_CN<Tin, Tout, NC(Tin)>::_pixDemoteClampZ_CN(pix);
189 template<typename Tin, typename Tout, Ncv32u CN> struct __pixDemoteClampNN_CN {static __host__ __device__ Tout _pixDemoteClampNN_CN(Tin &pix);};
191 template<typename Tin, typename Tout> struct __pixDemoteClampNN_CN<Tin, Tout, 1> {
192 static __host__ __device__ Tout _pixDemoteClampNN_CN(Tin &pix)
194 Tout out;
199 template<typename Tin, typename Tout> struct __pixDemoteClampNN_CN<Tin, Tout, 3> {
200 static __host__ __device__ Tout _pixDemoteClampNN_CN(Tin &pix)
202 Tout out;
209 template<typename Tin, typename Tout> struct __pixDemoteClampNN_CN<Tin, Tout, 4> {
210 static __host__ __device__ Tout _pixDemoteClampNN_CN(Tin &pix)
212 Tout out;
220 template<typename Tin, typename Tout> inline __host__ __device__ Tout _pixDemoteClampNN(Tin &pix)
222 return __pixDemoteClampNN_CN<Tin, Tout, NC(Tin)>::_pixDemoteClampNN_CN(pix);
226 template<typename Tin, typename Tout, typename Tw, Ncv32u CN> struct __pixScale_CN {static __host__ __device__ Tout _pixScale_CN(Tin &pix, Tw w);};
228 template<typename Tin, typename Tout, typename Tw> struct __pixScale_CN<Tin, Tout, Tw, 1> {
229 static __host__ __device__ Tout _pixScale_CN(Tin &pix, Tw w)
231 Tout out;
232 typedef typename TConvVec2Base<Tout>::TBase TBout;
237 template<typename Tin, typename Tout, typename Tw> struct __pixScale_CN<Tin, Tout, Tw, 3> {
238 static __host__ __device__ Tout _pixScale_CN(Tin &pix, Tw w)
240 Tout out;
241 typedef typename TConvVec2Base<Tout>::TBase TBout;
248 template<typename Tin, typename Tout, typename Tw> struct __pixScale_CN<Tin, Tout, Tw, 4> {
249 static __host__ __device__ Tout _pixScale_CN(Tin &pix, Tw w)
251 Tout out;
252 typedef typename TConvVec2Base<Tout>::TBase TBout;
260 template<typename Tin, typename Tout, typename Tw> static __host__ __device__ Tout _pixScale(Tin &pix, Tw w)
262 return __pixScale_CN<Tin, Tout, Tw, NC(Tin)>::_pixScale_CN(pix, w);
266 template<typename Tin, typename Tout, Ncv32u CN> struct __pixAdd_CN {static __host__ __device__ Tout _pixAdd_CN(Tout &pix1, Tin &pix2);};
268 template<typename Tin, typename Tout> struct __pixAdd_CN<Tin, Tout, 1> {
269 static __host__ __device__ Tout _pixAdd_CN(Tout &pix1, Tin &pix2)
271 Tout out;
276 template<typename Tin, typename Tout> struct __pixAdd_CN<Tin, Tout, 3> {
277 static __host__ __device__ Tout _pixAdd_CN(Tout &pix1, Tin &pix2)
279 Tout out;
286 template<typename Tin, typename Tout> struct __pixAdd_CN<Tin, Tout, 4> {
287 static __host__ __device__ Tout _pixAdd_CN(Tout &pix1, Tin &pix2)
289 Tout out;
297 template<typename Tin, typename Tout> static __host__ __device__ Tout _pixAdd(Tout &pix1, Tin &pix2)
299 return __pixAdd_CN<Tin, Tout, NC(Tin)>::_pixAdd_CN(pix1, pix2);
303 template<typename Tin, typename Tout, Ncv32u CN> struct __pixDist_CN {static __host__ __device__ Tout _pixDist_CN(Tin &pix1, Tin &pix2);};
305 template<typename Tin, typename Tout> struct __pixDist_CN<Tin, Tout, 1> {
306 static __host__ __device__ Tout _pixDist_CN(Tin &pix1, Tin &pix2)
308 return Tout(SQR(pix1.x - pix2.x));
311 template<typename Tin, typename Tout> struct __pixDist_CN<Tin, Tout, 3> {
312 static __host__ __device__ Tout _pixDist_CN(Tin &pix1, Tin &pix2)
314 return Tout(SQR(pix1.x - pix2.x) + SQR(pix1.y - pix2.y) + SQR(pix1.z - pix2.z));
317 template<typename Tin, typename Tout> struct __pixDist_CN<Tin, Tout, 4> {
318 static __host__ __device__ Tout _pixDist_CN(Tin &pix1, Tin &pix2)
320 return Tout(SQR(pix1.x - pix2.x) + SQR(pix1.y - pix2.y) + SQR(pix1.z - pix2.z) + SQR(pix1.w - pix2.w));
323 template<typename Tin, typename Tout> static __host__ __device__ Tout _pixDist(Tin &pix1, Tin &pix2)
325 return __pixDist_CN<Tin, Tout, NC(Tin)>::_pixDist_CN(pix1, pix2);