Home
last modified time | relevance | path

Searched defs:PtrStep (Results 1 – 1 of 1) sorted by relevance

/external/opencv3/modules/core/include/opencv2/core/
Dcuda_types.hpp95 template <typename T> struct PtrStep : public DevPtr<T> struct
97 __CV_CUDA_HOST_DEVICE__ PtrStep() : step(0) {} in PtrStep() function
98 … __CV_CUDA_HOST_DEVICE__ PtrStep(T* data_, size_t step_) : DevPtr<T>(data_), step(step_) {} in PtrStep() argument
100 size_t step;
102 …CE__ T* ptr(int y = 0) { return ( T*)( ( char*)DevPtr<T>::data + y * step); } in ptr()
103 …CE__ const T* ptr(int y = 0) const { return (const T*)( (const char*)DevPtr<T>::data + y * step); } in ptr()
105 __CV_CUDA_HOST_DEVICE__ T& operator ()(int y, int x) { return ptr(y)[x]; } in operator ()()
106 __CV_CUDA_HOST_DEVICE__ const T& operator ()(int y, int x) const { return ptr(y)[x]; } in operator ()()