renamed cuda namespace to cudev
This commit is contained in:
		| @@ -45,7 +45,7 @@ | ||||
| #include "opencv2/core/cuda/functional.hpp" | ||||
| #include "opencv2/core/cuda/type_traits.hpp" | ||||
|  | ||||
| namespace cv { namespace gpu { namespace cuda | ||||
| namespace cv { namespace gpu { namespace cudev | ||||
| { | ||||
|     void writeScalar(const uchar*); | ||||
|     void writeScalar(const schar*); | ||||
| @@ -58,7 +58,7 @@ namespace cv { namespace gpu { namespace cuda | ||||
|     void convert_gpu(PtrStepSzb, int, PtrStepSzb, int, double, double, cudaStream_t); | ||||
| }}} | ||||
|  | ||||
| namespace cv { namespace gpu { namespace cuda | ||||
| namespace cv { namespace gpu { namespace cudev | ||||
| { | ||||
|     template <typename T> struct shift_and_sizeof; | ||||
|     template <> struct shift_and_sizeof<signed char> { enum { shift = 0 }; }; | ||||
| @@ -76,9 +76,9 @@ namespace cv { namespace gpu { namespace cuda | ||||
|     template <typename T> void copyToWithMask(PtrStepSzb src, PtrStepSzb dst, int cn, PtrStepSzb mask, bool colorMask, cudaStream_t stream) | ||||
|     { | ||||
|         if (colorMask) | ||||
|             cv::gpu::cuda::transform((PtrStepSz<T>)src, (PtrStepSz<T>)dst, identity<T>(), SingleMask(mask), stream); | ||||
|             cv::gpu::cudev::transform((PtrStepSz<T>)src, (PtrStepSz<T>)dst, identity<T>(), SingleMask(mask), stream); | ||||
|         else | ||||
|             cv::gpu::cuda::transform((PtrStepSz<T>)src, (PtrStepSz<T>)dst, identity<T>(), SingleMaskChannels(mask, cn), stream); | ||||
|             cv::gpu::cudev::transform((PtrStepSz<T>)src, (PtrStepSz<T>)dst, identity<T>(), SingleMaskChannels(mask, cn), stream); | ||||
|     } | ||||
|  | ||||
|     void copyToWithMask_gpu(PtrStepSzb src, PtrStepSzb dst, size_t elemSize1, int cn, PtrStepSzb mask, bool colorMask, cudaStream_t stream) | ||||
| @@ -293,7 +293,7 @@ namespace cv { namespace gpu { namespace cuda | ||||
|         cvCudaSafeCall( cudaSetDoubleForDevice(&alpha) ); | ||||
|         cvCudaSafeCall( cudaSetDoubleForDevice(&beta) ); | ||||
|         Convertor<T, D, S> op(static_cast<S>(alpha), static_cast<S>(beta)); | ||||
|         cv::gpu::cuda::transform((PtrStepSz<T>)src, (PtrStepSz<D>)dst, op, WithOutMask(), stream); | ||||
|         cv::gpu::cudev::transform((PtrStepSz<T>)src, (PtrStepSz<D>)dst, op, WithOutMask(), stream); | ||||
|     } | ||||
|  | ||||
| #if defined  __clang__ | ||||
| @@ -379,4 +379,4 @@ namespace cv { namespace gpu { namespace cuda | ||||
| #if defined __clang__ | ||||
| # pragma clang diagnostic pop | ||||
| #endif | ||||
| }}} // namespace cv { namespace gpu { namespace cuda | ||||
| }}} // namespace cv { namespace gpu { namespace cudev | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Vladislav Vinogradov
					Vladislav Vinogradov