Searched defs:PtrStep (Results 1 – 1 of 1) sorted by relevance
95 template <typename T> struct PtrStep : public DevPtr<T> struct97 __CV_CUDA_HOST_DEVICE__ PtrStep() : step(0) {} in PtrStep() function98 … __CV_CUDA_HOST_DEVICE__ PtrStep(T* data_, size_t step_) : DevPtr<T>(data_), step(step_) {} in PtrStep() argument100 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 ()()