/external/opencv3/modules/cudev/include/opencv2/cudev/grid/detail/ |
D | pyr_down.hpp | 61 …n(const SrcPtr src, GlobPtr<DstType> dst, const int src_rows, const int src_cols, const int dst_co… in pyrDown() argument 75 if (src_y >= 2 && src_y < src_rows - 2 && x >= 2 && x < src_cols - 2) in pyrDown() 124 … sum = 0.0625f * src(Brd::idx_low(src_y - 2, src_rows) , Brd::idx_high(x, src_cols)); in pyrDown() 125 … sum = sum + 0.25f * src(Brd::idx_low(src_y - 1, src_rows) , Brd::idx_high(x, src_cols)); in pyrDown() 126 … sum = sum + 0.375f * src(src_y , Brd::idx_high(x, src_cols)); in pyrDown() 127 … sum = sum + 0.25f * src(Brd::idx_high(src_y + 1, src_rows), Brd::idx_high(x, src_cols)); in pyrDown() 128 … sum = sum + 0.0625f * src(Brd::idx_high(src_y + 2, src_rows), Brd::idx_high(x, src_cols)); in pyrDown() 139 …* src(Brd::idx_low(src_y - 2, src_rows) , Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); in pyrDown() 140 …* src(Brd::idx_low(src_y - 1, src_rows) , Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); in pyrDown() 141 …* src(src_y , Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); in pyrDown() [all …]
|
D | pyr_up.hpp | 61 …p(const SrcPtr src, GlobPtr<DstType> dst, const int src_rows, const int src_cols, const int dst_ro… in pyrUp() argument 80 srcx = ::min(src_cols - 1, srcx); in pyrUp() 157 …__host__ void pyrUp(const SrcPtr& src, const GlobPtr<DstType>& dst, int src_rows, int src_cols, in… in pyrUp() argument 162 pyrUp<<<grid, block, 0, stream>>>(src, dst, src_rows, src_cols, dst_rows, dst_cols); in pyrUp()
|
/external/opencv3/modules/imgproc/src/opencl/ |
D | hough_lines.cl | 12 …oint_list(__global const uchar * src_ptr, int src_step, int src_offset, int src_rows, int src_cols, 32 for (int i=x; i < src_cols; i+=GROUP_SIZE) 180 … __global const uchar * src_ptr, int src_step, int src_offset, int src_rows, int src_cols, 223 a = (src_cols - 1 - p0.x) / dir.x; 224 pb[1].x = src_cols - 1; 245 else if (pb[1].x == src_cols - 1 && (pb[1].y >= 0 && pb[1].y < src_rows)) 251 else if (pb[2].y == 0 && (pb[2].x >= 0 && pb[2].x < src_cols)) 257 else if (pb[3].y == src_rows - 1 && (pb[3].x >= 0 && pb[3].x < src_cols)) 270 if (p0.x < 0 || p0.x >= src_cols || p0.y < 0 || p0.y >= src_rows) 310 if (p0.x < 0 || p0.x >= src_cols || p0.y < 0 || p0.y >= src_rows)
|
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 || v2.x < 0); \ 139 #define NEED_EXTRAPOLATION(gx, gy) (gx >= src_cols || gy >= src_rows || gx < 0 || gy < 0) 143 …ap_2_32FC1(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 190 …emap_32FC2(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, [all …]
|
D | resize.cl | 133 …d resizeLN(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 169 …d 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 …d 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 …sizeAREA_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 …id resizeAREA(__global const uchar * src, int src_step, int src_offset, int src_rows, int src_cols, 294 __global const int * ymap_tab = (__global const int *)(map_tab + (src_cols << 1)); [all …]
|
D | pyr_down.cl | 131 … 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 …]
|
D | filterSepRow.cl | 153 int src_cols, int src_rows, int src_whole_cols, int src_whole_rows, 186 …temp[i].x = ELEM(start_x+i*LSIZE0*4, src_offset_x, src_offset_x + src_cols, 0, temp[i].x… 187 …temp[i].y = ELEM(start_x+i*LSIZE0*4+1, src_offset_x, src_offset_x + src_cols, 0, temp[i].y… 188 …temp[i].z = ELEM(start_x+i*LSIZE0*4+2, src_offset_x, src_offset_x + src_cols, 0, temp[i].z… 189 …temp[i].w = ELEM(start_x+i*LSIZE0*4+3, src_offset_x, src_offset_x + src_cols, 0, temp[i].w… 204 …t_x<src_offset_x) | (start_x + READ_TIMES_ROW*LSIZE0*4+4>src_offset_x + src_cols)| (start_y<src_of… 218 EXTRAPOLATE(index[i].x, src_offset_x, src_offset_x + src_cols); 219 EXTRAPOLATE(index[i].y, src_offset_x, src_offset_x + src_cols); 220 EXTRAPOLATE(index[i].z, src_offset_x, src_offset_x + src_cols); 221 EXTRAPOLATE(index[i].w, src_offset_x, src_offset_x + src_cols); [all …]
|
D | warp_perspective.cl | 89 …erspective(__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 …erspective(__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 …erspective(__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) ?
|
D | warp_affine.cl | 90 …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 …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 …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 …]
|
D | pyr_up.cl | 75 …el 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 …yrUp_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);
|
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);
|
D | histogram.cl | 50 …histogram(__global const uchar * src_ptr, int src_step, int src_offset, int src_rows, int src_cols, 72 src_index = mad24(id / src_cols, src_step, id % src_cols);
|
/external/opencv3/modules/core/src/opencl/ |
D | repeat.cl | 18 …oid repeat(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 24 if (x < src_cols) 42 dst_index = mad24(src_cols, (int)sizeof(T), dst_index);
|
D | transpose.cl | 60 … 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)
|
D | copymakeborder.cl | 98 …MakeBorder(__global const uchar * srcptr, int src_step, int src_offset, int src_rows, int src_cols, 114 if (NEED_EXTRAPOLATION(src_x, src_cols)) 121 EXTRAPOLATE(src_x, src_cols)
|
D | fft.cl | 532 …radix_rows(__global const uchar* src_ptr, int src_step, int src_offset, int src_rows, int src_cols, 611 …radix_cols(__global const uchar* src_ptr, int src_step, int src_offset, int src_rows, int src_cols, 672 …radix_rows(__global const uchar* src_ptr, int src_step, int src_offset, int src_rows, int src_cols, 778 …radix_cols(__global const uchar* src_ptr, int src_step, int src_offset, int src_rows, int src_cols,
|
/external/opencv3/modules/cudalegacy/src/cuda/ |
D | bm_fast.cu | 267 …void get_buffer_size(int src_cols, int src_rows, int search_window, int block_window, int& buffer_… in get_buffer_size() argument 269 dim3 grid(divUp(src_cols, TILE_COLS), divUp(src_rows, TILE_ROWS)); in get_buffer_size() 272 buffer_rows = src_cols + block_window * grid.x; in get_buffer_size()
|
/external/opencv3/modules/cudalegacy/src/ |
D | bm_fast.cpp | 56 …void get_buffer_size(int src_cols, int src_rows, int search_window, int block_window, int& buffer_…
|
/external/opencv3/modules/superres/src/opencl/ |
D | superres_btvl1.cl | 82 …id 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)
|