/dports/misc/mnn/MNN-1.2.0/source/backend/opencl/execution/cl/ |
H A D | deconv_2d.cl | 63 int kernel_x_0, kernel_x_1, kernel_x_2, kernel_x_3, kernel_y; 75 kernel_y = mad24(k_y, kernel_shape.y, k_x); 76 kernel_y = mad24(out_channel_blocks_idx, kernel_size, kernel_y); 78 //index: [0, kernel_x_0, kernel_y, 0] 79 …weights0 = vload4(kernel_x_0*(out_channel_blocks*kernel_shape.x*kernel_shape.y)+kernel_y, weights); 99 kernel_y = mad24(k_y, kernel_shape.y, k_x); 100 kernel_y = mad24(out_channel_blocks_idx, kernel_size, kernel_y); 101 weights0 = RI_F(weights, SAMPLER, (int2)(kernel_x_0, kernel_y)); 102 weights1 = RI_F(weights, SAMPLER, (int2)(kernel_x_1, kernel_y)); 103 weights2 = RI_F(weights, SAMPLER, (int2)(kernel_x_2, kernel_y)); [all …]
|
/dports/graphics/libpillowfight/libpillowfight-dae21f97de872e4ad2e94f1b0fc53302a00259fd/src/pillowfight/ |
H A D | _gaussian.c | 79 struct pf_dbl_matrix kernel_x, kernel_y; in pf_gaussian_on_matrix() local 83 kernel_y = dbl_matrix_transpose(&kernel_x); in pf_gaussian_on_matrix() 88 out_y = pf_dbl_matrix_convolution(&out_x, &kernel_y); in pf_gaussian_on_matrix() 90 pf_dbl_matrix_free(&kernel_y); in pf_gaussian_on_matrix() 100 struct pf_dbl_matrix kernel_x, kernel_y; in pf_gaussian() local 106 kernel_y = dbl_matrix_transpose(&kernel_x); in pf_gaussian() 118 color_out = pf_dbl_matrix_convolution(&colors[color], &kernel_y); in pf_gaussian() 124 pf_dbl_matrix_free(&kernel_y); in pf_gaussian()
|
H A D | util.c | 157 int img_y, kernel_y; in pf_dbl_matrix_convolution() local 174 for (kernel_y = 0 ; kernel_y < kernel->size.y ; kernel_y++) { in pf_dbl_matrix_convolution() 176 if (((img_y - kernel_y + (kernel->size.y / 2)) < 0) in pf_dbl_matrix_convolution() 177 || ((img_y - kernel_y + (kernel->size.y / 2)) >= img->size.y)) in pf_dbl_matrix_convolution() 183 img_y - kernel_y + (kernel->size.y / 2) in pf_dbl_matrix_convolution() 189 kernel_y in pf_dbl_matrix_convolution()
|
/dports/graphics/py-pypillowfight/pypillowfight-0.3.0/src/pillowfight/ |
H A D | _gaussian.c | 79 struct pf_dbl_matrix kernel_x, kernel_y; in pf_gaussian_on_matrix() local 83 kernel_y = dbl_matrix_transpose(&kernel_x); in pf_gaussian_on_matrix() 88 out_y = pf_dbl_matrix_convolution(&out_x, &kernel_y); in pf_gaussian_on_matrix() 90 pf_dbl_matrix_free(&kernel_y); in pf_gaussian_on_matrix() 100 struct pf_dbl_matrix kernel_x, kernel_y; in pf_gaussian() local 106 kernel_y = dbl_matrix_transpose(&kernel_x); in pf_gaussian() 118 color_out = pf_dbl_matrix_convolution(&colors[color], &kernel_y); in pf_gaussian() 124 pf_dbl_matrix_free(&kernel_y); in pf_gaussian()
|
H A D | util.c | 157 int img_y, kernel_y; in pf_dbl_matrix_convolution() local 174 for (kernel_y = 0 ; kernel_y < kernel->size.y ; kernel_y++) { in pf_dbl_matrix_convolution() 176 if (((img_y - kernel_y + (kernel->size.y / 2)) < 0) in pf_dbl_matrix_convolution() 177 || ((img_y - kernel_y + (kernel->size.y / 2)) >= img->size.y)) in pf_dbl_matrix_convolution() 183 img_y - kernel_y + (kernel->size.y / 2) in pf_dbl_matrix_convolution() 189 kernel_y in pf_dbl_matrix_convolution()
|
/dports/lang/halide/Halide-release_2019_08_27-2654-g664dc4993/apps/auto_viz/ |
H A D | auto_viz_demo_generator.cpp | 37 kernel_x, kernel_y, member in AutoVizDemo 81 kernel_y(y, k) = unnormalized_kernel_y(y, k) / kernel_sum_y(y); in generate() 89 resized_y(x, y, c) = sum(kernel_y(y, r) * resized_x(x, r + beginy, c), "resized_y"); in generate() 92 resized_y(x, y, c) = sum(kernel_y(y, r) * as_float(x, r + beginy, c), "resized_y"); in generate() 118 kernel_y in schedule() 140 kernel_y in schedule() 166 .compute_at(kernel_y, y) in schedule() 169 .compute_at(kernel_y, y) in schedule() 171 kernel_y in schedule()
|
/dports/graphics/opencv/opencv-4.5.3/modules/dnn/src/opencl/ |
H A D | conv_layer_spatial.cl | 434 int kernel_y; 552 kernel_y = interleaved_y * 2; 562 kernel_y = interleaved_y * 2; 717 kernel_y = interleaved_y * 2; 729 kernel_y = interleaved_y * 2; 823 int kernel_y; 975 kernel_y = interleaved_y * 2; 1385 int kernel_y; 1504 kernel_y = interleaved_y * 2; 1512 kernel_y = interleaved_y * 2; [all …]
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/lib/libRocket/Source/Core/ |
H A D | ConvolutionFilter.cpp | 84 for (int kernel_y = 0; kernel_y < kernel_size; ++kernel_y) in Run() local 86 int source_y = y - source_offset.y - ((kernel_size - 1) / 2) + kernel_y; in Run() 98 …ealToInteger(source[source_y * source_dimensions.x + source_x] * kernel[kernel_y * kernel_size + k… in Run()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavfilter/dnn/ |
H A D | dnn_backend_native_layer_conv2d.c | 127 for (int kernel_y = 0; kernel_y < conv_params->kernel_size; ++kernel_y) { in dnn_execute_layer_conv2d() local 131 … int y_pos = CLAMP_TO_EDGE(y + (kernel_y - radius) * conv_params->dilation, height); in dnn_execute_layer_conv2d() 135 int y_pos = y + (kernel_y - radius) * conv_params->dilation; in dnn_execute_layer_conv2d() 142 …t[n_filter] += input_pel * conv_params->kernel[n_filter * filter_size + kernel_y * filter_linesize… in dnn_execute_layer_conv2d()
|
/dports/lang/halide/Halide-release_2019_08_27-2654-g664dc4993/apps/resize/ |
H A D | resize_generator.cpp | 76 kernel_x, kernel_y, member in Resize 117 kernel_y(y, k) = unnormalized_kernel_y(y, k) / kernel_sum_y(y); in generate() 125 resized_y(x, y, c) = sum(kernel_y(y, r) * resized_x(x, r + beginy, c), "resized_y"); in generate() 128 resized_y(x, y, c) = sum(kernel_y(y, r) * as_float(x, r + beginy, c), "resized_y"); in generate() 154 .compute_at(kernel_y, y) in schedule() 157 .compute_at(kernel_y, y) in schedule() 159 kernel_y in schedule()
|
/dports/misc/openmvg/openMVG-2.0/src/openMVG/image/ |
H A D | image_convolution.hpp | 199 const Eigen::Matrix<float, 1, Eigen::Dynamic>& kernel_y, in SeparableConvolution2d() argument 202 const int sigma_y = static_cast<int>( kernel_y.cols() ); in SeparableConvolution2d() 203 const int half_sigma_y = static_cast<int>( kernel_y.cols() ) / 2; in SeparableConvolution2d() 208 const Eigen::Matrix<float, 1, Eigen::Dynamic> reverse_kernel_y = kernel_y.reverse(); in SeparableConvolution2d() 216 out->row( i ) = kernel_y.tail( forward_size ) * in SeparableConvolution2d() 223 kernel_y.head( forward_size ) * in SeparableConvolution2d() 236 out->row( row ) = kernel_y * image.block( row - half_sigma_y, 0, sigma_y, out->cols() ); in SeparableConvolution2d()
|
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/2d/include/pcl/2d/impl/ |
H A D | edge.hpp | 58 pcl::PointCloud<PointXYZI>::Ptr kernel_y(new pcl::PointCloud<PointXYZI>); in detectEdgeSobel() local 61 kernel_.fetchKernel(*kernel_y); in detectEdgeSobel() 62 convolution_.setKernel(*kernel_y); in detectEdgeSobel() 99 pcl::PointCloud<PointXYZI>::Ptr kernel_y(new pcl::PointCloud<PointXYZI>); in sobelMagnitudeDirection() local 102 kernel_.fetchKernel(*kernel_y); in sobelMagnitudeDirection() 103 convolution_.setKernel(*kernel_y); in sobelMagnitudeDirection() 137 pcl::PointCloud<PointXYZI>::Ptr kernel_y(new pcl::PointCloud<PointXYZI>); in detectEdgePrewitt() local 140 kernel_.fetchKernel(*kernel_y); in detectEdgePrewitt() 141 convolution_.setKernel(*kernel_y); in detectEdgePrewitt() 178 kernel_.fetchKernel(*kernel_y); in detectEdgeRoberts() [all …]
|
/dports/graphics/darktable38/darktable-3.8.0/src/iop/ |
H A D | hazeremoval.c | 578 const int kernel_y = gd->kernel_hazeremoval_box_min_y; in box_min_cl() local 579 dt_opencl_set_kernel_arg(devid, kernel_y, 0, sizeof(width), &width); in box_min_cl() 581 dt_opencl_set_kernel_arg(devid, kernel_y, 2, sizeof(temp), &temp); in box_min_cl() 582 dt_opencl_set_kernel_arg(devid, kernel_y, 3, sizeof(out), &out); in box_min_cl() 583 dt_opencl_set_kernel_arg(devid, kernel_y, 4, sizeof(w), &w); in box_min_cl() 585 err = dt_opencl_enqueue_kernel_2d(devid, kernel_y, sizes_y); in box_min_cl() 611 const int kernel_y = gd->kernel_hazeremoval_box_max_y; in box_max_cl() local 614 dt_opencl_set_kernel_arg(devid, kernel_y, 2, sizeof(temp), &temp); in box_max_cl() 615 dt_opencl_set_kernel_arg(devid, kernel_y, 3, sizeof(out), &out); in box_max_cl() 616 dt_opencl_set_kernel_arg(devid, kernel_y, 4, sizeof(w), &w); in box_max_cl() [all …]
|
/dports/graphics/darktable/darktable-3.6.1/src/iop/ |
H A D | hazeremoval.c | 578 const int kernel_y = gd->kernel_hazeremoval_box_min_y; in box_min_cl() local 579 dt_opencl_set_kernel_arg(devid, kernel_y, 0, sizeof(width), &width); in box_min_cl() 581 dt_opencl_set_kernel_arg(devid, kernel_y, 2, sizeof(temp), &temp); in box_min_cl() 582 dt_opencl_set_kernel_arg(devid, kernel_y, 3, sizeof(out), &out); in box_min_cl() 583 dt_opencl_set_kernel_arg(devid, kernel_y, 4, sizeof(w), &w); in box_min_cl() 585 err = dt_opencl_enqueue_kernel_2d(devid, kernel_y, sizes_y); in box_min_cl() 611 const int kernel_y = gd->kernel_hazeremoval_box_max_y; in box_max_cl() local 614 dt_opencl_set_kernel_arg(devid, kernel_y, 2, sizeof(temp), &temp); in box_max_cl() 615 dt_opencl_set_kernel_arg(devid, kernel_y, 3, sizeof(out), &out); in box_max_cl() 616 dt_opencl_set_kernel_arg(devid, kernel_y, 4, sizeof(w), &w); in box_max_cl() [all …]
|
/dports/multimedia/handbrake/ffmpeg-4.4/libavfilter/dnn/ |
H A D | dnn_backend_native_layer_avgpool.c | 126 for (int kernel_y = 0; kernel_y < avgpool_params->kernel_size; ++kernel_y) { in ff_dnn_execute_layer_avg_pool() local 129 int y_pos = y + (kernel_y - height_radius); in ff_dnn_execute_layer_avg_pool()
|
H A D | dnn_backend_native_layer_conv2d.c | 144 for (int kernel_y = 0; kernel_y < conv_params->kernel_size; ++kernel_y) { in dnn_execute_layer_conv2d_thread() local 148 … int y_pos = CLAMP_TO_EDGE(y + (kernel_y - radius) * conv_params->dilation, height); in dnn_execute_layer_conv2d_thread() 152 int y_pos = y + (kernel_y - radius) * conv_params->dilation; in dnn_execute_layer_conv2d_thread() 159 …t[n_filter] += input_pel * conv_params->kernel[n_filter * filter_size + kernel_y * filter_linesize… in dnn_execute_layer_conv2d_thread()
|
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavfilter/dnn/ |
H A D | dnn_backend_native_layer_avgpool.c | 126 for (int kernel_y = 0; kernel_y < avgpool_params->kernel_size; ++kernel_y) { in ff_dnn_execute_layer_avg_pool() local 129 int y_pos = y + (kernel_y - height_radius); in ff_dnn_execute_layer_avg_pool()
|
H A D | dnn_backend_native_layer_conv2d.c | 144 for (int kernel_y = 0; kernel_y < conv_params->kernel_size; ++kernel_y) { in dnn_execute_layer_conv2d_thread() local 148 … int y_pos = CLAMP_TO_EDGE(y + (kernel_y - radius) * conv_params->dilation, height); in dnn_execute_layer_conv2d_thread() 152 int y_pos = y + (kernel_y - radius) * conv_params->dilation; in dnn_execute_layer_conv2d_thread() 159 …t[n_filter] += input_pel * conv_params->kernel[n_filter * filter_size + kernel_y * filter_linesize… in dnn_execute_layer_conv2d_thread()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavfilter/dnn/ |
H A D | dnn_backend_native_layer_avgpool.c | 126 for (int kernel_y = 0; kernel_y < avgpool_params->kernel_size; ++kernel_y) { in dnn_execute_layer_avg_pool() local 129 int y_pos = y + (kernel_y - height_radius); in dnn_execute_layer_avg_pool()
|
H A D | dnn_backend_native_layer_conv2d.c | 141 for (int kernel_y = 0; kernel_y < conv_params->kernel_size; ++kernel_y) { in dnn_execute_layer_conv2d_thread() local 145 … int y_pos = CLAMP_TO_EDGE(y + (kernel_y - radius) * conv_params->dilation, height); in dnn_execute_layer_conv2d_thread() 149 int y_pos = y + (kernel_y - radius) * conv_params->dilation; in dnn_execute_layer_conv2d_thread() 156 …t[n_filter] += input_pel * conv_params->kernel[n_filter * filter_size + kernel_y * filter_linesize… in dnn_execute_layer_conv2d_thread()
|
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavfilter/ |
H A D | dnn_backend_native.c | 224 int y, x, n_filter, ch, kernel_y, kernel_x; in convolve() local 235 for (kernel_y = 0; kernel_y < conv_params->kernel_size; ++kernel_y){ in convolve() 237 … output[n_filter] += input[CLAMP_TO_EDGE(y + kernel_y - radius, height) * src_linesize + in convolve() 239 … conv_params->kernel[n_filter * filter_size + kernel_y * filter_linesize + in convolve()
|
/dports/graphics/librsvg2-rust/librsvg-2.52.8/src/filters/ |
H A D | convolve_matrix.rs | 241 let kernel_y = (kernel_bounds.y1 - y - 1) as usize; in render() localVariable 243 r += f64::from(pixel.r) / 255.0 * matrix[(kernel_y, kernel_x)]; in render() 244 g += f64::from(pixel.g) / 255.0 * matrix[(kernel_y, kernel_x)]; in render() 245 b += f64::from(pixel.b) / 255.0 * matrix[(kernel_y, kernel_x)]; in render() 248 a += f64::from(pixel.a) / 255.0 * matrix[(kernel_y, kernel_x)]; in render()
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bseg/bvpl/tests/ |
H A D | test_subgrid.cxx | 59 int kernel_x=11, kernel_y=11, kernel_z=11; in test_subgrid() local 60 …erator<float> iter(grid, vgl_point_3d<int>(0,0,0), vgl_point_3d<int> (kernel_x,kernel_y,kernel_z)); in test_subgrid()
|
/dports/graphics/librsvg2-rust/librsvg-2.52.8/benches/ |
H A D | lighting.rs | 159 let kernel_y = (y - kernel_bounds.y0) as usize; in normal() localVariable 161 nx += i16::from(pixel.a) * kx[(kernel_y, kernel_x)]; in normal() 162 ny += i16::from(pixel.a) * ky[(kernel_y, kernel_x)]; in normal()
|
/dports/misc/mnn/MNN-1.2.0/source/backend/metal/ |
H A D | MetalConvolutionDepthwise.metal | 26 int kernel_y; 51 int ey = min(cst.kernel_y, UP_DIV(cst.input_height - offset_y, cst.dilation_y));
|