/external/opencv3/modules/cudev/include/opencv2/cudev/grid/detail/ |
H A D | pyr_down.hpp | 61 __global__ void pyrDown(const SrcPtr src, GlobPtr<DstType> dst, const int src_rows, const int src_cols, const int dst_cols) argument 75 if (src_y >= 2 && src_y < src_rows - 2 && x >= 2 && x < src_cols - 2) 124 sum = 0.0625f * src(Brd::idx_low(src_y - 2, src_rows) , Brd::idx_high(x, src_cols)); 125 sum = sum + 0.25f * src(Brd::idx_low(src_y - 1, src_rows) , Brd::idx_high(x, src_cols)); 126 sum = sum + 0.375f * src(src_y , Brd::idx_high(x, src_cols)); 127 sum = sum + 0.25f * src(Brd::idx_high(src_y + 1, src_rows), Brd::idx_high(x, src_cols)); 128 sum = sum + 0.0625f * src(Brd::idx_high(src_y + 2, src_rows), Brd::idx_high(x, src_cols)); 139 sum = 0.0625f * src(Brd::idx_low(src_y - 2, src_rows) , Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); 140 sum = sum + 0.25f * src(Brd::idx_low(src_y - 1, src_rows) , Brd::idx_low(Brd::idx_high(left_x, src_cols), src_col 186 pyrDown(const SrcPtr& src, const GlobPtr<DstType>& dst, int src_rows, int src_cols, int dst_rows, int dst_cols, cudaStream_t stream) argument [all...] |
H A D | pyr_up.hpp | 61 __global__ void pyrUp(const SrcPtr src, GlobPtr<DstType> dst, const int src_rows, const int src_cols, const int dst_rows, const int dst_cols) argument 80 srcx = ::min(src_cols - 1, srcx); 157 __host__ void pyrUp(const SrcPtr& src, const GlobPtr<DstType>& dst, int src_rows, int src_cols, int dst_rows, int dst_cols, cudaStream_t stream) argument 162 pyrUp<<<grid, block, 0, stream>>>(src, dst, src_rows, src_cols, dst_rows, dst_cols);
|
/external/opencv3/modules/core/src/opencl/ |
H A D | transpose.cl | 60 __kernel void transpose(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 68 if (src_rows == src_cols) 91 if (x < src_cols && y < src_rows) 105 if (x_index < src_rows && y_index < src_cols) 111 if ((y_index + i) < src_cols)
|
/external/opencv3/modules/imgproc/src/opencl/ |
H A D | resize.cl | 133 __kernel void resizeLN(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 169 __kernel void resizeLN(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 184 if ( x>=src_cols ) x=src_cols-1,u=0; 189 int x_ = INC(x, src_cols); 225 __kernel void resizeNN(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 236 int sx = min(convert_int_rtz(s1), src_cols - 1); 248 __kernel void resizeAREA_FAST(__global const uchar * src, int src_step, int src_offset, int src_rows, int src_cols, 270 int x = min(sx + px, src_cols - 1); 281 __kernel void resizeAREA(__global const uchar * src, int src_step, int src_offset, int src_rows, int src_cols, [all...] |
H A D | remap.cl | 84 v2 = max(min(v2, (int2)(src_cols - 1, src_rows - 1)), (int2)(0)); \ 91 v2.x -= ((v2.x - src_cols + 1) / src_cols) * src_cols; \ 92 if (v2.x >= src_cols) \ 93 v2.x %= src_cols; \ 110 if (src_cols == 1) \ 118 v2.x = src_cols - 1 - (v2.x - src_cols) - delta; \ 120 while (v2.x >= src_cols || v [all...] |
H A D | pyr_down.cl | 131 __kernel void pyrDown(__global const uchar * src, int src_step, int src_offset, int src_rows, int src_cols, 153 col = EXTRAPOLATE(x, src_cols); 156 if (x < src_cols-4) 165 col = EXTRAPOLATE(x+i, src_cols); 172 col = EXTRAPOLATE((int)(get_group_id(0)*LOCAL_SIZE + get_local_id(0) - 2), src_cols); 177 col = EXTRAPOLATE((int)((get_group_id(0)+1)*LOCAL_SIZE + get_local_id(0) - 2), src_cols); 185 col = EXTRAPOLATE(x, src_cols); 188 if (x < src_cols-4) 197 col = EXTRAPOLATE(x+i, src_cols); 204 col = EXTRAPOLATE((int)(get_group_id(0)*LOCAL_SIZE + get_local_id(0) - 2), src_cols); [all...] |
H A D | warp_perspective.cl | 89 __kernel void warpPerspective(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 107 if (sx >= 0 && sx < src_cols && sy >= 0 && sy < src_rows) 119 __kernel void warpPerspective(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 139 WT v0 = (sx >= 0 && sx < src_cols && sy >= 0 && sy < src_rows) ? 141 WT v1 = (sx+1 >= 0 && sx+1 < src_cols && sy >= 0 && sy < src_rows) ? 143 WT v2 = (sx >= 0 && sx < src_cols && sy+1 >= 0 && sy+1 < src_rows) ? 145 WT v3 = (sx+1 >= 0 && sx+1 < src_cols && sy+1 >= 0 && sy+1 < src_rows) ? 181 __kernel void warpPerspective(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 206 v[mad24(y, 4, x)] = (sx+x >= 0 && sx+x < src_cols && sy+y >= 0 && sy+y < src_rows) ?
|
H A D | warp_affine.cl | 90 __kernel void warpAffine(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 113 if (sx >= 0 && sx < src_cols && sy >= 0 && sy < src_rows) 134 __kernel void warpAffine(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 159 if (sx >= 0 && sx < src_cols) 166 if (sx+1 >= 0 && sx+1 < src_cols) 206 if (sx >= 0 && sx + 2 < src_cols) 221 xsum = fma(sx + x >= 0 && sx + x < src_cols ? 267 __kernel void warpAffine(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 295 v[mad24(y, 4, x)] = sx+x >= 0 && sx+x < src_cols ? 347 if (sx >= 0 && sx + 4 < src_cols) [all...] |
H A D | pyr_up.cl | 75 __kernel void pyrUp(__global const uchar * src, int src_step, int src_offset, int src_rows, int src_cols, 92 int srcx = EXTRAPOLATE(mad24((int)get_group_id(0), LOCAL_SIZE/2, tidx) - 1, src_cols); 131 __kernel void pyrUp_unrolled(__global const uchar * src, int src_step, int src_offset, int src_rows, int src_cols, 148 int srcx1 = EXTRAPOLATE(srcx, src_cols); 149 int srcx2 = EXTRAPOLATE(srcx+1, src_cols);
|
H A D | moments.cl | 9 int src_rows, int src_cols, __global int* mom0, int xtiles) 18 if (x_min < src_cols && y0*TILE_SIZE < src_rows) 22 int x_max = min(src_cols - x_min, TILE_SIZE);
|
/external/opencv3/modules/cudalegacy/src/cuda/ |
H A D | bm_fast.cu | 267 void get_buffer_size(int src_cols, int src_rows, int search_window, int block_window, int& buffer_cols, int& buffer_rows) 269 dim3 grid(divUp(src_cols, TILE_COLS), divUp(src_rows, TILE_ROWS)); 272 buffer_rows = src_cols + block_window * grid.x;
|
/external/opencv3/modules/cudalegacy/src/ |
H A D | bm_fast.cpp | 56 void get_buffer_size(int src_cols, int src_rows, int search_window, int block_window, int& buffer_cols, int& buffer_rows);
|
/external/opencv3/modules/superres/src/opencl/ |
H A D | superres_btvl1.cl | 82 __kernel void upscale(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 88 if (x < src_cols && y < src_rows)
|