/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/ |
D | sharpness_op.cc | 32 cv::Mat input_img = input_cv->mat(); in Compute() local 53 cv::filter2D(input_img, result, -1, filter); in Compute() 59 input_img.row(0).copyTo(result.row(0)); in Compute() 60 input_img.row(height - 1).copyTo(result.row(height - 1)); in Compute() 61 input_img.col(0).copyTo(result.col(0)); in Compute() 62 input_img.col(width - 1).copyTo(result.col(width - 1)); in Compute() 65 cv::addWeighted(input_img, alpha_, result, 1.0 - alpha_, 0.0, result); in Compute()
|
D | image_utils.cc | 725 cv::Mat input_img = input_cv->mat(); in Rotate() local 726 if (input_img.cols > (MAX_INT_PRECISION * 2) || input_img.rows > (MAX_INT_PRECISION * 2)) { in Rotate() 732 fx = (input_img.cols - 1) / 2.0; in Rotate() 733 fy = (input_img.rows - 1) / 2.0; in Rotate() 749 …cv::warpAffine(input_img, output_cv->mat(), rot, input_img.size(), GetCVInterpolationMode(interpol… in Rotate() 754 cv::Rect2f bbox = cv::RotatedRect(pc, input_img.size(), degree).boundingRect2f(); in Rotate() 755 rot.at<double>(0, 2) += bbox.width / 2.0 - input_img.cols / 2.0; in Rotate() 756 rot.at<double>(1, 2) += bbox.height / 2.0 - input_img.rows / 2.0; in Rotate() 758 cv::warpAffine(input_img, output_img, rot, bbox.size(), GetCVInterpolationMode(interpolation), in Rotate() 919 cv::Mat input_img = input_cv->mat(); in AdjustBrightness() local [all …]
|
D | invert_op.cc | 31 cv::Mat input_img = input_cv->mat(); in Compute() local 50 output_cv->mat() = cv::Scalar::all(255) - input_img; in Compute()
|
D | solarize_op.cc | 37 cv::Mat input_img = input_cv->mat(); in Compute() local 44 RETURN_IF_NOT_OK(CVTensor::CreateFromMat(input_img, input_cv->Rank(), &mask_mat_tensor)); in Compute()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_chromaber_vulkan.c | 50 C(1, res.r = texture(input_img[0], ((p - o)/2.0f) + 0.5f).r; ) 51 C(1, res.g = texture(input_img[0], ((p )/2.0f) + 0.5f).g; ) 52 C(1, res.b = texture(input_img[0], ((p + o)/2.0f) + 0.5f).b; ) 53 C(1, res.a = texture(input_img[0], ((p )/2.0f) + 0.5f).a; ) 62 C(1, vec4 res = texture(input_img[idx], (p/2.0f) + 0.5f); ) 139 GLSLC(1, vec4 res = texture(input_img[0], npos); ); 148 GLSLF(2, res = texture(input_img[%i], npos); ,i);
|
D | vf_avgblur_vulkan.c | 51 C(1, cache[cp] = texture(input_img[idx], pos); ) 54 C(1, cache[cp - FILTER_RADIUS] = texture(input_img[idx], loc_l); ) 57 C(1, cache[cp + DIR(gl_WorkGroupSize)] = texture(input_img[idx], loc_h); ) 135 GLSLF(2, vec4 res = texture(input_img[%i], pos); ,i); 178 GLSLF(2, vec4 res = texture(input_img[%i], pos); ,i);
|
D | vf_scale_vulkan.c | 61 C(1, return texture(input_img[idx], npos); )
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_meta_fmask_expand.c | 42 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, type, "s_tex"); in build_fmask_expand_compute_shader() local 43 input_img->data.descriptor_set = 0; in build_fmask_expand_compute_shader() 44 input_img->data.binding = 0; in build_fmask_expand_compute_shader() 51 nir_ssa_def *input_img_deref = &nir_build_deref_var(&b, input_img)->dest.ssa; in build_fmask_expand_compute_shader()
|
D | radv_meta_bufimage.c | 46 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, sampler_type, "s_tex"); in build_nir_itob_compute_shader() local 47 input_img->data.descriptor_set = 0; in build_nir_itob_compute_shader() 48 input_img->data.binding = 0; in build_nir_itob_compute_shader() 61 nir_ssa_def *input_img_deref = &nir_build_deref_var(&b, input_img)->dest.ssa; in build_nir_itob_compute_shader() 228 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, buf_type, "s_tex"); in build_nir_btoi_compute_shader() local 229 input_img->data.descriptor_set = 0; in build_nir_btoi_compute_shader() 230 input_img->data.binding = 0; in build_nir_btoi_compute_shader() 249 nir_ssa_def *input_img_deref = &nir_build_deref_var(&b, input_img)->dest.ssa; in build_nir_btoi_compute_shader() 408 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, buf_type, "s_tex"); in build_nir_btoi_r32g32b32_compute_shader() local 409 input_img->data.descriptor_set = 0; in build_nir_btoi_r32g32b32_compute_shader() [all …]
|
D | radv_meta_resolve_cs.c | 74 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, sampler_type, "s_tex"); in build_resolve_compute_shader() local 75 input_img->data.descriptor_set = 0; in build_resolve_compute_shader() 76 input_img->data.binding = 0; in build_resolve_compute_shader() 92 radv_meta_build_resolve_shader_core(&b, is_integer, samples, input_img, color, src_coord); in build_resolve_compute_shader() 146 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, sampler_type, "s_tex"); in build_depth_stencil_resolve_compute_shader() local 147 input_img->data.descriptor_set = 0; in build_depth_stencil_resolve_compute_shader() 148 input_img->data.binding = 0; in build_depth_stencil_resolve_compute_shader() 156 nir_ssa_def *input_img_deref = &nir_build_deref_var(&b, input_img)->dest.ssa; in build_depth_stencil_resolve_compute_shader()
|
D | radv_meta_resolve_fs.c | 58 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, sampler_type, "s_tex"); in build_resolve_fragment_shader() local 59 input_img->data.descriptor_set = 0; in build_resolve_fragment_shader() 60 input_img->data.binding = 0; in build_resolve_fragment_shader() 73 radv_meta_build_resolve_shader_core(&b, is_integer, samples, input_img, color, img_coord); in build_resolve_fragment_shader() 336 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, sampler_type, "s_tex"); in build_depth_stencil_resolve_fragment_shader() local 337 input_img->data.descriptor_set = 0; in build_depth_stencil_resolve_fragment_shader() 338 input_img->data.binding = 0; in build_depth_stencil_resolve_fragment_shader() 349 nir_ssa_def *input_img_deref = &nir_build_deref_var(&b, input_img)->dest.ssa; in build_depth_stencil_resolve_fragment_shader()
|
D | radv_meta_decompress.c | 48 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "in_img"); in build_expand_depth_stencil_compute_shader() local 49 input_img->data.descriptor_set = 0; in build_expand_depth_stencil_compute_shader() 50 input_img->data.binding = 0; in build_expand_depth_stencil_compute_shader() 65 &b, 4, 32, &nir_build_deref_var(&b, input_img)->dest.ssa, global_id, nir_ssa_undef(&b, 1, 32), in build_expand_depth_stencil_compute_shader()
|
D | radv_meta_fast_clear.c | 49 nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "in_img"); in build_dcc_decompress_compute_shader() local 50 input_img->data.descriptor_set = 0; in build_dcc_decompress_compute_shader() 51 input_img->data.binding = 0; in build_dcc_decompress_compute_shader() 64 &b, 4, 32, &nir_build_deref_var(&b, input_img)->dest.ssa, img_coord, nir_ssa_undef(&b, 1, 32), in build_dcc_decompress_compute_shader()
|
D | radv_meta.h | 289 nir_variable *input_img, nir_variable *color,
|
D | radv_meta.c | 612 nir_variable *input_img, nir_variable *color, in radv_meta_build_resolve_shader_core() argument 619 nir_ssa_def *input_img_deref = &nir_build_deref_var(b, input_img)->dest.ssa; in radv_meta_build_resolve_shader_core()
|