/external/opencv3/modules/core/include/opencv2/core/cuda/ |
functional.hpp | 67 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::ParameterType a, 72 __host__ __device__ __forceinline__ plus() {} 73 __host__ __device__ __forceinline__ plus(const plus&) {} 78 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::ParameterType a, 83 __host__ __device__ __forceinline__ minus() {} 84 __host__ __device__ __forceinline__ minus(const minus&) {} 89 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::ParameterType a, 94 __host__ __device__ __forceinline__ multiplies() {} 95 __host__ __device__ __forceinline__ multiplies(const multiplies&) {} 100 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::ParameterType a [all...] |
limits.hpp | 62 __device__ __forceinline__ static bool min() { return false; } 63 __device__ __forceinline__ static bool max() { return true; } 69 __device__ __forceinline__ static signed char min() { return SCHAR_MIN; } 70 __device__ __forceinline__ static signed char max() { return SCHAR_MAX; } 76 __device__ __forceinline__ static unsigned char min() { return 0; } 77 __device__ __forceinline__ static unsigned char max() { return UCHAR_MAX; } 83 __device__ __forceinline__ static short min() { return SHRT_MIN; } 84 __device__ __forceinline__ static short max() { return SHRT_MAX; } 90 __device__ __forceinline__ static unsigned short min() { return 0; } 91 __device__ __forceinline__ static unsigned short max() { return USHRT_MAX; [all...] |
border_interpolate.hpp | 65 explicit __host__ __device__ __forceinline__ BrdRowConstant(int width_, const D& val_ = VecTraits<D>::all(0)) : width(width_), val(val_) {} 67 template <typename T> __device__ __forceinline__ D at_low(int x, const T* data) const 72 template <typename T> __device__ __forceinline__ D at_high(int x, const T* data) const 77 template <typename T> __device__ __forceinline__ D at(int x, const T* data) const 90 explicit __host__ __device__ __forceinline__ BrdColConstant(int height_, const D& val_ = VecTraits<D>::all(0)) : height(height_), val(val_) {} 92 template <typename T> __device__ __forceinline__ D at_low(int y, const T* data, size_t step) const 97 template <typename T> __device__ __forceinline__ D at_high(int y, const T* data, size_t step) const 102 template <typename T> __device__ __forceinline__ D at(int y, const T* data, size_t step) const 115 __host__ __device__ __forceinline__ BrdConstant(int height_, int width_, const D& val_ = VecTraits<D>::all(0)) : height(height_), width(width_), val(val_) 119 template <typename T> __device__ __forceinline__ D at(int y, int x, const T* data, size_t step) cons [all...] |
vec_traits.hpp | 62 static __host__ __device__ __forceinline__ uchar8 make_uchar8(uchar a0, uchar a1, uchar a2, uchar a3, uchar a4, uchar a5, uchar a6, uchar a7) 71 static __host__ __device__ __forceinline__ char8 make_char8(schar a0, schar a1, schar a2, schar a3, schar a4, schar a5, schar a6, schar a7) 80 static __host__ __device__ __forceinline__ ushort8 make_ushort8(ushort a0, ushort a1, ushort a2, ushort a3, ushort a4, ushort a5, ushort a6, ushort a7) 89 static __host__ __device__ __forceinline__ short8 make_short8(short a0, short a1, short a2, short a3, short a4, short a5, short a6, short a7) 98 static __host__ __device__ __forceinline__ uint8 make_uint8(uint a0, uint a1, uint a2, uint a3, uint a4, uint a5, uint a6, uint a7) 107 static __host__ __device__ __forceinline__ int8 make_int8(int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7) 116 static __host__ __device__ __forceinline__ float8 make_float8(float a0, float a1, float a2, float a3, float a4, float a5, float a6, float a7) 125 static __host__ __device__ __forceinline__ double8 make_double8(double a0, double a1, double a2, double a3, double a4, double a5, double a6, double a7) 173 static __device__ __host__ __forceinline__ type all(type v) {return v;} \ 174 static __device__ __host__ __forceinline__ type make(type x) {return x;} [all...] |
saturate_cast.hpp | 56 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(uchar v) { return _Tp(v); } 57 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(schar v) { return _Tp(v); } 58 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(ushort v) { return _Tp(v); } 59 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(short v) { return _Tp(v); } 60 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(uint v) { return _Tp(v); } 61 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(int v) { return _Tp(v); } 62 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(float v) { return _Tp(v); } 63 template<typename _Tp> __device__ __forceinline__ _Tp saturate_cast(double v) { return _Tp(v); } 65 template<> __device__ __forceinline__ uchar saturate_cast<uchar>(schar v) 72 template<> __device__ __forceinline__ uchar saturate_cast<uchar>(short v [all...] |
utility.hpp | 65 template <typename T> void __device__ __host__ __forceinline__ swap(T& a, T& b) 77 explicit __host__ __device__ __forceinline__ SingleMask(PtrStepb mask_) : mask(mask_) {} 78 __host__ __device__ __forceinline__ SingleMask(const SingleMask& mask_): mask(mask_.mask){} 80 __device__ __forceinline__ bool operator()(int y, int x) const 90 __host__ __device__ __forceinline__ SingleMaskChannels(PtrStepb mask_, int channels_) 92 __host__ __device__ __forceinline__ SingleMaskChannels(const SingleMaskChannels& mask_) 95 __device__ __forceinline__ bool operator()(int y, int x) const 106 explicit __host__ __device__ __forceinline__ MaskCollection(PtrStepb* maskCollection_) 109 __device__ __forceinline__ MaskCollection(const MaskCollection& masks_) 112 __device__ __forceinline__ void next( [all...] |
vec_distance.hpp | 63 __device__ __forceinline__ L1Dist() : mySum(0) {} 65 __device__ __forceinline__ void reduceIter(int val1, int val2) 70 template <int THREAD_DIM> __device__ __forceinline__ void reduceAll(int* smem, int tid) 75 __device__ __forceinline__ operator int() const 87 __device__ __forceinline__ L1Dist() : mySum(0.0f) {} 89 __device__ __forceinline__ void reduceIter(float val1, float val2) 94 template <int THREAD_DIM> __device__ __forceinline__ void reduceAll(float* smem, int tid) 99 __device__ __forceinline__ operator float() const 112 __device__ __forceinline__ L2Dist() : mySum(0.0f) {} 114 __device__ __forceinline__ void reduceIter(float val1, float val2 [all...] |
warp_shuffle.hpp | 55 __device__ __forceinline__ T shfl(T val, int srcLane, int width = warpSize) 63 __device__ __forceinline__ unsigned int shfl(unsigned int val, int srcLane, int width = warpSize) 71 __device__ __forceinline__ double shfl(double val, int srcLane, int width = warpSize) 87 __device__ __forceinline__ T shfl_down(T val, unsigned int delta, int width = warpSize) 95 __device__ __forceinline__ unsigned int shfl_down(unsigned int val, unsigned int delta, int width = warpSize) 103 __device__ __forceinline__ double shfl_down(double val, unsigned int delta, int width = warpSize) 119 __device__ __forceinline__ T shfl_up(T val, unsigned int delta, int width = warpSize) 127 __device__ __forceinline__ unsigned int shfl_up(unsigned int val, unsigned int delta, int width = warpSize) 135 __device__ __forceinline__ double shfl_up(double val, unsigned int delta, int width = warpSize)
|
emulation.hpp | 60 static __device__ __forceinline__ int syncthreadsOr(int pred) 71 static __forceinline__ __device__ int Ballot(int predicate) 89 static __device__ __forceinline__ T atomicInc(T* address, T val) 108 static __device__ __forceinline__ T atomicAdd(T* address, T val) 127 static __device__ __forceinline__ T atomicMin(T* address, T val) 145 static __device__ __forceinline__ int atomicAdd(int* address, int val) 149 static __device__ __forceinline__ unsigned int atomicAdd(unsigned int* address, unsigned int val) 153 static __device__ __forceinline__ float atomicAdd(float* address, float val) 168 static __device__ __forceinline__ double atomicAdd(double* address, double val) 186 static __device__ __forceinline__ int atomicMin(int* address, int val [all...] |
scan.hpp | 63 __device__ __forceinline__ WarpScan() {} 64 __device__ __forceinline__ WarpScan(const WarpScan& other) { (void)other; } 66 __device__ __forceinline__ T operator()( volatile T *ptr , const unsigned int idx) 83 __device__ __forceinline__ unsigned int index(const unsigned int tid) 88 __device__ __forceinline__ void init(volatile T *ptr){} 97 __device__ __forceinline__ WarpScanNoComp() {} 98 __device__ __forceinline__ WarpScanNoComp(const WarpScanNoComp& other) { (void)other; } 100 __device__ __forceinline__ T operator()( volatile T *ptr , const unsigned int idx) 117 __device__ __forceinline__ unsigned int index(const unsigned int tid) 122 __device__ __forceinline__ void init(volatile T *ptr [all...] |
vec_math.hpp | 65 template <typename VecS> static __device__ __forceinline__ VecD cast(const VecS& v) 73 template <typename VecS> static __device__ __forceinline__ VecD cast(const VecS& v) 81 template <typename VecS> static __device__ __forceinline__ VecD cast(const VecS& v) 89 template <typename VecS> static __device__ __forceinline__ VecD cast(const VecS& v) 96 template <typename VecD, typename VecS> static __device__ __forceinline__ VecD saturate_cast_helper(const VecS& v) 102 template<typename T> static __device__ __forceinline__ T saturate_cast(const uchar1& v) {return vec_math_detail::saturate_cast_helper<T>(v);} 103 template<typename T> static __device__ __forceinline__ T saturate_cast(const char1& v) {return vec_math_detail::saturate_cast_helper<T>(v);} 104 template<typename T> static __device__ __forceinline__ T saturate_cast(const ushort1& v) {return vec_math_detail::saturate_cast_helper<T>(v);} 105 template<typename T> static __device__ __forceinline__ T saturate_cast(const short1& v) {return vec_math_detail::saturate_cast_helper<T>(v);} 106 template<typename T> static __device__ __forceinline__ T saturate_cast(const uint1& v) {return vec_math_detail::saturate_cast_helper<T>(v); [all...] |
block.hpp | 56 static __device__ __forceinline__ unsigned int id() 61 static __device__ __forceinline__ unsigned int stride() 66 static __device__ __forceinline__ void sync() 71 static __device__ __forceinline__ int flattenedThreadId() 77 static __device__ __forceinline__ void fill(It beg, It end, const T& value) 87 static __device__ __forceinline__ void yota(OutIt beg, OutIt end, T value) 98 static __device__ __forceinline__ void copy(InIt beg, InIt end, OutIt out) 109 static __device__ __forceinline__ void transfrom(InIt beg, InIt end, OutIt out, UnOp op) 120 static __device__ __forceinline__ void transfrom(InIt1 beg1, InIt1 end1, InIt2 beg2, OutIt out, BinOp op) 132 static __device__ __forceinline__ void reduce(volatile T* buffer, BinOp op [all...] |
dynamic_smem.hpp | 56 __device__ __forceinline__ operator T*() 62 __device__ __forceinline__ operator const T*() const 72 __device__ __forceinline__ operator double*() 78 __device__ __forceinline__ operator const double*() const
|
/external/opencv3/modules/cudev/include/opencv2/cudev/block/ |
vec_distance.hpp | 68 __device__ __forceinline__ NormL1() : mySum(0) {} 70 __device__ __forceinline__ void reduceThread(value_type val1, value_type val2) 75 __device__ __forceinline__ void reduceWarp(result_type* smem, uint tid) 80 template <int THREAD_DIM> __device__ __forceinline__ void reduceBlock(result_type* smem, uint tid) 85 __device__ __forceinline__ operator result_type() const 97 __device__ __forceinline__ NormL1() : mySum(0.0f) {} 99 __device__ __forceinline__ void reduceThread(value_type val1, value_type val2) 104 __device__ __forceinline__ void reduceWarp(result_type* smem, uint tid) 109 template <int THREAD_DIM> __device__ __forceinline__ void reduceBlock(result_type* smem, uint tid) 114 __device__ __forceinline__ operator result_type() cons [all...] |
dynamic_smem.hpp | 58 __device__ __forceinline__ operator T*() 64 __device__ __forceinline__ operator const T*() const 74 __device__ __forceinline__ operator double*() 80 __device__ __forceinline__ operator const double*() const
|
/external/opencv3/modules/cudev/include/opencv2/cudev/util/ |
limits.hpp | 62 __device__ __forceinline__ static bool min() { return false; } 63 __device__ __forceinline__ static bool max() { return true; } 69 __device__ __forceinline__ static schar min() { return SCHAR_MIN; } 70 __device__ __forceinline__ static schar max() { return SCHAR_MAX; } 76 __device__ __forceinline__ static uchar min() { return 0; } 77 __device__ __forceinline__ static uchar max() { return UCHAR_MAX; } 83 __device__ __forceinline__ static short min() { return SHRT_MIN; } 84 __device__ __forceinline__ static short max() { return SHRT_MAX; } 90 __device__ __forceinline__ static ushort min() { return 0; } 91 __device__ __forceinline__ static ushort max() { return USHRT_MAX; [all...] |
saturate_cast.hpp | 56 template <typename T> __device__ __forceinline__ T saturate_cast(uchar v) { return T(v); } 57 template <typename T> __device__ __forceinline__ T saturate_cast(schar v) { return T(v); } 58 template <typename T> __device__ __forceinline__ T saturate_cast(ushort v) { return T(v); } 59 template <typename T> __device__ __forceinline__ T saturate_cast(short v) { return T(v); } 60 template <typename T> __device__ __forceinline__ T saturate_cast(uint v) { return T(v); } 61 template <typename T> __device__ __forceinline__ T saturate_cast(int v) { return T(v); } 62 template <typename T> __device__ __forceinline__ T saturate_cast(float v) { return T(v); } 63 template <typename T> __device__ __forceinline__ T saturate_cast(double v) { return T(v); } 65 template <> __device__ __forceinline__ uchar saturate_cast<uchar>(schar v) 72 template <> __device__ __forceinline__ uchar saturate_cast<uchar>(short v [all...] |
vec_traits.hpp | 95 __host__ __device__ __forceinline__ static type all(type v) {return v;} \ 96 __host__ __device__ __forceinline__ static type make(type x) {return x;} \ 97 __host__ __device__ __forceinline__ static type make(const type* v) {return *v;} \ 103 __host__ __device__ __forceinline__ static type ## 1 all(type v) {return make_ ## type ## 1(v);} \ 104 __host__ __device__ __forceinline__ static type ## 1 make(type x) {return make_ ## type ## 1(x);} \ 105 __host__ __device__ __forceinline__ static type ## 1 make(const type* v) {return make_ ## type ## 1(*v);} \ 111 __host__ __device__ __forceinline__ static type ## 2 all(type v) {return make_ ## type ## 2(v, v);} \ 112 __host__ __device__ __forceinline__ static type ## 2 make(type x, type y) {return make_ ## type ## 2(x, y);} \ 113 __host__ __device__ __forceinline__ static type ## 2 make(const type* v) {return make_ ## type ## 2(v[0], v[1]);} \ 119 __host__ __device__ __forceinline__ static type ## 3 all(type v) {return make_ ## type ## 3(v, v, v);} [all...] |
vec_math.hpp | 65 template <typename VecS> __device__ __forceinline__ static VecD cast(const VecS& v) 74 template <typename VecS> __device__ __forceinline__ static VecD cast(const VecS& v) 83 template <typename VecS> __device__ __forceinline__ static VecD cast(const VecS& v) 92 template <typename VecS> __device__ __forceinline__ static VecD cast(const VecS& v) 100 template<typename T> __device__ __forceinline__ T saturate_cast(const uchar1& v) { return vec_math_detail::SatCastHelper<VecTraits<T>::cn, T>::cast(v); } 101 template<typename T> __device__ __forceinline__ T saturate_cast(const char1& v) { return vec_math_detail::SatCastHelper<VecTraits<T>::cn, T>::cast(v); } 102 template<typename T> __device__ __forceinline__ T saturate_cast(const ushort1& v) { return vec_math_detail::SatCastHelper<VecTraits<T>::cn, T>::cast(v); } 103 template<typename T> __device__ __forceinline__ T saturate_cast(const short1& v) { return vec_math_detail::SatCastHelper<VecTraits<T>::cn, T>::cast(v); } 104 template<typename T> __device__ __forceinline__ T saturate_cast(const uint1& v) { return vec_math_detail::SatCastHelper<VecTraits<T>::cn, T>::cast(v); } 105 template<typename T> __device__ __forceinline__ T saturate_cast(const int1& v) { return vec_math_detail::SatCastHelper<VecTraits<T>::cn, T>::cast( (…) [all...] |
/external/opencv3/modules/cudev/include/opencv2/cudev/warp/ |
shuffle.hpp | 61 __device__ __forceinline__ uchar shfl(uchar val, int srcLane, int width = warpSize) 66 __device__ __forceinline__ schar shfl(schar val, int srcLane, int width = warpSize) 71 __device__ __forceinline__ ushort shfl(ushort val, int srcLane, int width = warpSize) 76 __device__ __forceinline__ short shfl(short val, int srcLane, int width = warpSize) 81 __device__ __forceinline__ int shfl(int val, int srcLane, int width = warpSize) 86 __device__ __forceinline__ uint shfl(uint val, int srcLane, int width = warpSize) 91 __device__ __forceinline__ float shfl(float val, int srcLane, int width = warpSize) 108 __device__ __forceinline__ input_type ## 1 shfl(const input_type ## 1 & val, int srcLane, int width = warpSize) \ 114 __device__ __forceinline__ input_type ## 2 shfl(const input_type ## 2 & val, int srcLane, int width = warpSize) \ 121 __device__ __forceinline__ input_type ## 3 shfl(const input_type ## 3 & val, int srcLane, int width = warpSize) [all...] |
warp.hpp | 64 __device__ __forceinline__ static uint laneId() 71 __device__ __forceinline__ static uint warpId() 79 __device__ __forceinline__ void warpFill(It beg, It end, const T& value) 86 __device__ __forceinline__ OutIt warpCopy(InIt beg, InIt end, OutIt out) 94 __device__ __forceinline__ OutIt warpTransform(InIt beg, InIt end, OutIt out, const UnOp& op) 102 __device__ __forceinline__ OutIt warpTransform(InIt1 beg1, InIt1 end1, InIt2 beg2, OutIt out, const BinOp& op) 114 __device__ __forceinline__ void warpYota(OutIt beg, OutIt end, T value)
|
/external/opencv3/modules/cudev/include/opencv2/cudev/functional/ |
functional.hpp | 79 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::parameter_type a, 88 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::parameter_type a, 97 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::parameter_type a, 106 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::parameter_type a, 115 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::parameter_type a, 124 __device__ __forceinline__ T operator ()(typename TypeTraits<T>::parameter_type a) const 134 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::type 144 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::type 154 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::type 164 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::typ [all...] |
/external/opencv3/modules/cudev/include/opencv2/cudev/grid/detail/ |
reduce.hpp | 71 __device__ __forceinline__ static volatile R* smem(R* ptr) 77 __device__ __forceinline__ static R& res(R& val) 83 __device__ __forceinline__ static const Op& op(const Op& aop) 92 __device__ __forceinline__ static tuple<volatile R*, volatile R*> smem(R* ptr) 98 __device__ __forceinline__ static tuple<typename VecTraits<R>::elem_type&, typename VecTraits<R>::elem_type&> res(R& val) 104 __device__ __forceinline__ static tuple<Op, Op> op(const Op& aop) 113 __device__ __forceinline__ static tuple<volatile R*, volatile R*, volatile R*> smem(R* ptr) 119 __device__ __forceinline__ static tuple<typename VecTraits<R>::elem_type&, 127 __device__ __forceinline__ static tuple<Op, Op, Op> op(const Op& aop) 136 __device__ __forceinline__ static tuple<volatile R*, volatile R*, volatile R*, volatile R*> smem(R* ptr [all...] |
/external/opencv3/modules/cudev/include/opencv2/cudev/ptr2d/ |
extrapolation.hpp | 69 __device__ __forceinline__ typename PtrTraits<SrcPtr>::value_type operator ()(int y, int x) const 102 __device__ __forceinline__ int idx_row(int y) const 107 __device__ __forceinline__ int idx_col(int x) const 112 __device__ __forceinline__ typename PtrTraits<SrcPtr>::value_type operator ()(int y, int x) const 122 __device__ __forceinline__ static int idx_low(int i, int len) 127 __device__ __forceinline__ static int idx_high(int i, int len) 147 __device__ __forceinline__ static int idx_low(int i, int len) 152 __device__ __forceinline__ static int idx_high(int i, int len) 173 __device__ __forceinline__ static int idx_low(int i, int len) 178 __device__ __forceinline__ static int idx_high(int i, int len [all...] |
/external/opencv3/modules/cudalegacy/src/cuda/ |
fgd.hpp | 107 __device__ __forceinline__ float& BGPixelStat::Pbc(int i, int j) 112 __device__ __forceinline__ float& BGPixelStat::Pbcc(int i, int j) 117 __device__ __forceinline__ unsigned char& BGPixelStat::is_trained_st_model(int i, int j) 122 __device__ __forceinline__ unsigned char& BGPixelStat::is_trained_dyn_model(int i, int j) 127 __device__ __forceinline__ float& BGPixelStat::PV_C(int i, int j, int k) 132 __device__ __forceinline__ float& BGPixelStat::PVB_C(int i, int j, int k) 137 template <typename T> __device__ __forceinline__ T& BGPixelStat::V_C(int i, int j, int k) 142 __device__ __forceinline__ float& BGPixelStat::PV_CC(int i, int j, int k) 147 __device__ __forceinline__ float& BGPixelStat::PVB_CC(int i, int j, int k) 152 template <typename T> __device__ __forceinline__ T& BGPixelStat::V1_CC(int i, int j, int k [all...] |