/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/ |
D | posterize_op.cc | 44 cv::Mat output_img; in Compute() local 49 cv::LUT(in_image, lut_vector, output_img); in Compute() 52 RETURN_IF_NOT_OK(CVTensor::CreateFromMat(output_img, input_cv->Rank(), &result_tensor)); in Compute()
|
D | image_utils.cc | 536 cv::Mat output_img; in HwcToChw() local 738 cv::Mat output_img; in Rotate() local 758 cv::warpAffine(input_img, output_img, rot, bbox.size(), GetCVInterpolationMode(interpolation), in Rotate() 760 RETURN_IF_NOT_OK(CVTensor::CreateFromMat(output_img, input_cv->Rank(), &output_cv)); in Rotate() 958 cv::Mat gray, output_img; in AdjustContrast() local 963 output_img = cv::Mat::zeros(input_img.rows, input_img.cols, CV_8UC1); in AdjustContrast() 964 output_img = output_img + mean_img; in AdjustContrast() 965 cv::cvtColor(output_img, output_img, CV_GRAY2RGB); in AdjustContrast() 966 output_cv->mat() = output_img * (1.0 - alpha) + input_img * alpha; in AdjustContrast() 1130 cv::Mat output_img = output_cv->mat(); in AdjustSaturation() local [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | vf_scale_vulkan.c | 58 C(1, vec2 npos = (vec2(pos) + 0.5f) / imageSize(output_img[idx]); ) 82 C(1, imageStore(output_img[0], pos, vec4(src.r, 0.0, 0.0, 0.0)); ) 84 C(1, imageStore(output_img[1], pos, vec4(src.g, src.b, 0.0, 0.0)); ) 91 C(1, imageStore(output_img[0], pos, vec4(src.r, 0.0, 0.0, 0.0)); ) 93 C(1, imageStore(output_img[1], pos, vec4(src.g, 0.0, 0.0, 0.0)); ) 94 C(1, imageStore(output_img[2], pos, vec4(src.b, 0.0, 0.0, 0.0)); ) 101 C(1, imageStore(output_img[0], pos, vec4(src.r, 0.0, 0.0, 0.0)); ) 102 C(1, imageStore(output_img[1], pos, vec4(src.g, 0.0, 0.0, 0.0)); ) 103 C(1, imageStore(output_img[2], pos, vec4(src.b, 0.0, 0.0, 0.0)); ) 208 GLSLF(1, size = imageSize(output_img[%i]); ,i); [all …]
|
D | vf_chromaber_vulkan.c | 54 C(1, imageStore(output_img[0], pos, res); ) 63 C(1, imageStore(output_img[idx], pos, res); ) 135 GLSLC(1, distort_rgb(imageSize(output_img[0]), pos); ); 137 GLSLC(1, ivec2 size = imageSize(output_img[0]); ); 140 GLSLC(1, imageStore(output_img[0], pos, res); ); 143 GLSLF(1, size = imageSize(output_img[%i]); ,i); 149 GLSLF(2, imageStore(output_img[%i], pos, res); ,i);
|
D | vf_avgblur_vulkan.c | 66 C(1, imageStore(output_img[idx], pos, sum); ) 130 GLSLF(1, size = imageSize(output_img[%i]); ,i); 136 GLSLF(2, imageStore(output_img[%i], pos, res); ,i); 173 GLSLF(1, size = imageSize(output_img[%i]); ,i); 179 GLSLF(2, imageStore(output_img[%i], pos, res); ,i);
|
D | vf_overlay_vulkan.c | 55 C(2, imageStore(output_img[i], pos, res); ) 58 C(2, imageStore(output_img[i], pos, res); ) 73 C(2, imageStore(output_img[i], pos, res); ) 75 C(1, imageStore(output_img[i], pos, res); )
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_meta_fmask_expand.c | 46 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_fmask_expand_compute_shader() local 47 output_img->data.descriptor_set = 0; in build_fmask_expand_compute_shader() 48 output_img->data.binding = 1; in build_fmask_expand_compute_shader() 49 output_img->data.access = ACCESS_NON_READABLE; in build_fmask_expand_compute_shader() 52 nir_ssa_def *output_img_deref = &nir_build_deref_var(&b, output_img)->dest.ssa; in build_fmask_expand_compute_shader()
|
D | radv_meta_bufimage.c | 50 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_nir_itob_compute_shader() local 51 output_img->data.descriptor_set = 0; in build_nir_itob_compute_shader() 52 output_img->data.binding = 1; in build_nir_itob_compute_shader() 88 nir_image_deref_store(&b, &nir_build_deref_var(&b, output_img)->dest.ssa, coord, in build_nir_itob_compute_shader() 232 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_nir_btoi_compute_shader() local 233 output_img->data.descriptor_set = 0; in build_nir_btoi_compute_shader() 234 output_img->data.binding = 1; in build_nir_btoi_compute_shader() 274 nir_image_deref_store(&b, &nir_build_deref_var(&b, output_img)->dest.ssa, img_coord, in build_nir_btoi_compute_shader() 412 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_nir_btoi_r32g32b32_compute_shader() local 413 output_img->data.descriptor_set = 0; in build_nir_btoi_r32g32b32_compute_shader() [all …]
|
D | radv_meta_resolve_cs.c | 78 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_resolve_compute_shader() local 79 output_img->data.descriptor_set = 0; in build_resolve_compute_shader() 80 output_img->data.binding = 1; in build_resolve_compute_shader() 103 nir_image_deref_store(&b, &nir_build_deref_var(&b, output_img)->dest.ssa, img_coord, in build_resolve_compute_shader() 150 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_depth_stencil_resolve_compute_shader() local 151 output_img->data.descriptor_set = 0; in build_depth_stencil_resolve_compute_shader() 152 output_img->data.binding = 1; in build_depth_stencil_resolve_compute_shader() 224 nir_image_deref_store(&b, &nir_build_deref_var(&b, output_img)->dest.ssa, coord, in build_depth_stencil_resolve_compute_shader()
|
D | radv_meta_decompress.c | 52 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_expand_depth_stencil_compute_shader() local 53 output_img->data.descriptor_set = 0; in build_expand_depth_stencil_compute_shader() 54 output_img->data.binding = 1; in build_expand_depth_stencil_compute_shader() 75 nir_image_deref_store(&b, &nir_build_deref_var(&b, output_img)->dest.ssa, global_id, in build_expand_depth_stencil_compute_shader()
|
D | radv_meta_fast_clear.c | 53 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_dcc_decompress_compute_shader() local 54 output_img->data.descriptor_set = 0; in build_dcc_decompress_compute_shader() 55 output_img->data.binding = 1; in build_dcc_decompress_compute_shader() 74 nir_image_deref_store(&b, &nir_build_deref_var(&b, output_img)->dest.ssa, img_coord, in build_dcc_decompress_compute_shader()
|
D | radv_meta_clear.c | 1178 nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform, img_type, "out_img"); in build_clear_dcc_comp_to_single_shader() local 1179 output_img->data.descriptor_set = 0; in build_clear_dcc_comp_to_single_shader() 1180 output_img->data.binding = 0; in build_clear_dcc_comp_to_single_shader() 1192 nir_image_deref_store(&b, &nir_build_deref_var(&b, output_img)->dest.ssa, coord, in build_clear_dcc_comp_to_single_shader()
|