/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/ |
D | adaptive_avg_pool2d_impl.cu | 29 … const uint output_height, const uint output_width, T *input_data, in AdaptiveAvgPool2DKernel() argument 33 T *output_ptr = output_data + c * output_height * output_width; in AdaptiveAvgPool2DKernel() 35 for (uint oh = 0; oh < output_height; oh++) { in AdaptiveAvgPool2DKernel() 36 uint ih0 = start_index(oh, output_height, input_height); in AdaptiveAvgPool2DKernel() 37 uint ih1 = end_index(oh, output_height, input_height); in AdaptiveAvgPool2DKernel() 60 … const uint output_height, const uint output_width, float *input_data, in AdaptiveAvgPool2DKernel() argument 64 float *output_ptr = output_data + c * output_height * output_width; in AdaptiveAvgPool2DKernel() 66 for (uint oh = 0; oh < output_height; oh++) { in AdaptiveAvgPool2DKernel() 67 uint ih0 = start_index(oh, output_height, input_height); in AdaptiveAvgPool2DKernel() 68 uint ih1 = end_index(oh, output_height, input_height); in AdaptiveAvgPool2DKernel() [all …]
|
D | adaptive_avg_pool2d_grad_impl.cu | 29 … const uint output_height, const uint output_width, T *input_data, in AdaptiveAvgPool2DGradKernel() argument 33 T *output_ptr = output_data + c * output_height * output_width; in AdaptiveAvgPool2DGradKernel() 35 size_t output_size = output_height * output_width; in AdaptiveAvgPool2DGradKernel() 41 uint oh0 = start_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel() 42 uint oh1 = end_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel() 63 … const uint output_height, const uint output_width, float *input_data, in AdaptiveAvgPool2DGradKernel() argument 67 float *output_ptr = output_data + c * output_height * output_width; in AdaptiveAvgPool2DGradKernel() 69 size_t output_size = output_height * output_width; in AdaptiveAvgPool2DGradKernel() 75 uint oh0 = start_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel() 76 uint oh1 = end_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/ |
D | soft_dvpp_decode_resize_jpeg_op.cc | 47 info.output_height = target_height_; in Compute() 48 …_width = static_cast<int>(std::lround(static_cast<float>(input_w) / input_h * info.output_height)); in Compute() 52 …info.output_height = static_cast<int>(std::lround(static_cast<float>(input_h) / input_w * info.out… in Compute() 55 info.output_height = target_height_; in Compute() 59 cv::Mat out_rgb_img(info.output_height, info.output_width, CV_8UC3); in Compute() 61 info.output_buffer_size = info.output_height * info.output_width * 3; in Compute()
|
/third_party/libjpeg-turbo/ |
D | jdmaster.c | 117 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 125 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 133 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 141 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 149 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 157 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 165 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 173 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 181 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 189 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() [all …]
|
D | jdapistd.c | 114 while (cinfo->output_scanline < cinfo->output_height) { in output_pass_setup() 119 cinfo->progress->pass_limit = (long)cinfo->output_height; in output_pass_setup() 273 if (cinfo->output_scanline >= cinfo->output_height) { in jpeg_read_scanlines() 281 cinfo->progress->pass_limit = (long)cinfo->output_height; in jpeg_read_scanlines() 422 if (cinfo->output_scanline + num_lines >= cinfo->output_height) { in jpeg_skip_scanlines() 423 cinfo->output_scanline = cinfo->output_height; in jpeg_skip_scanlines() 426 return cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 479 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 483 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 500 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() [all …]
|
D | wrrle.c | 102 if (cinfo->output_width > 32767 || cinfo->output_height > 32767) in start_output_rle() 104 cinfo->output_height); in start_output_rle() 161 if (cinfo->output_scanline < cinfo->output_height) { in rle_put_pixel_rows() 194 header.ymax = cinfo->output_height - 1; in finish_output_rle() 219 progress->pub.pass_limit = cinfo->output_height; in finish_output_rle() 226 for (row = cinfo->output_height - 1; row >= 0; row--) { in finish_output_rle() 239 for (row = cinfo->output_height - 1; row >= 0; row--) { in finish_output_rle() 304 cinfo->output_height, (JDIMENSION)1); in jinit_write_rle()
|
D | djpeg.c | 691 if (skip_end > cinfo.output_height - 1) { in main() 693 cinfo.output_height); in main() 700 tmp = cinfo.output_height; in main() 701 cinfo.output_height -= (skip_end - skip_start + 1); in main() 703 cinfo.output_height = tmp; in main() 712 while (cinfo.output_scanline < cinfo.output_height) { in main() 726 crop_y + crop_height > cinfo.output_height) { in main() 728 progname, cinfo.output_width, cinfo.output_height); in main() 741 tmp = cinfo.output_height; in main() 742 cinfo.output_height = crop_height; in main() [all …]
|
D | transupp.c | 278 MCU_rows = srcinfo->output_height / in do_flip_v() 407 MCU_cols = srcinfo->output_height / in do_rot_90() 558 MCU_rows = srcinfo->output_height / in do_rot_180() 670 MCU_cols = srcinfo->output_height / in do_transverse() 868 MCU_rows = info->output_height / info->iMCU_sample_height; in trim_bottom_edge() 871 info->output_height = MCU_rows * info->iMCU_sample_height; in trim_bottom_edge() 919 srcinfo->output_height = srcinfo->image_height; in jtransform_request_workspace() 927 srcinfo->output_height, in jtransform_request_workspace() 934 srcinfo->output_height, in jtransform_request_workspace() 952 info->output_width = srcinfo->output_height; in jtransform_request_workspace() [all …]
|
D | wrbmp.c | 258 bfSize = headersize + (long)dest->row_width * (long)cinfo->output_height; in write_bmp_header() 274 PUT_4B(bmpinfoheader, 8, cinfo->output_height); /* biHeight */ in write_bmp_header() 327 bfSize = headersize + (long)dest->row_width * (long)cinfo->output_height; in write_os2_header() 343 PUT_2B(bmpcoreheader, 6, cinfo->output_height); /* bcHeight */ in write_os2_header() 452 for (row = cinfo->output_height; row > 0; row--) { in finish_output_bmp() 454 progress->pub.pass_counter = (long)(cinfo->output_height - row); in finish_output_bmp() 455 progress->pub.pass_limit = (long)cinfo->output_height; in finish_output_bmp() 538 dest->row_width, cinfo->output_height, (JDIMENSION)1); in jinit_write_bmp()
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
D | jdmaster.c | 105 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 113 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 121 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 129 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 137 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 145 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 153 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 161 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 169 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 177 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() [all …]
|
D | djpeg.c | 727 if (skip_end > cinfo.output_height - 1) { in djpeg() 729 cinfo.output_height); in djpeg() 736 tmp = cinfo.output_height; in djpeg() 737 cinfo.output_height -= (skip_end - skip_start + 1); in djpeg() 739 cinfo.output_height = tmp; in djpeg() 753 while (cinfo.output_scanline < cinfo.output_height) { in djpeg() 767 crop_y + crop_height > cinfo.output_height) { in djpeg() 769 progname, cinfo.output_width, cinfo.output_height); in djpeg() 782 tmp = cinfo.output_height; in djpeg() 783 cinfo.output_height = crop_height; in djpeg() [all …]
|
D | jdapistd.c | 114 while (cinfo->output_scanline < cinfo->output_height) { in output_pass_setup() 119 cinfo->progress->pass_limit = (long)cinfo->output_height; in output_pass_setup() 273 if (cinfo->output_scanline >= cinfo->output_height) { in jpeg_read_scanlines() 281 cinfo->progress->pass_limit = (long)cinfo->output_height; in jpeg_read_scanlines() 421 if (cinfo->output_scanline + num_lines >= cinfo->output_height) { in jpeg_skip_scanlines() 422 num_lines = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 423 cinfo->output_scanline = cinfo->output_height; in jpeg_skip_scanlines() 477 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 492 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 529 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() [all …]
|
D | transupp.c | 330 MCU_rows = srcinfo->output_height / in do_crop_ext_zero() 344 if (dstinfo->_jpeg_height > srcinfo->output_height) { in do_crop_ext_zero() 406 MCU_rows = srcinfo->output_height / in do_crop_ext_flat() 420 if (dstinfo->_jpeg_height > srcinfo->output_height) { in do_crop_ext_flat() 487 MCU_rows = srcinfo->output_height / in do_crop_ext_reflect() 501 if (dstinfo->_jpeg_height > srcinfo->output_height) { in do_crop_ext_reflect() 870 MCU_rows = srcinfo->output_height / in do_flip_v() 998 MCU_cols = srcinfo->output_height / in do_rot_90() 1149 MCU_rows = srcinfo->output_height / in do_rot_180() 1261 MCU_cols = srcinfo->output_height / in do_transverse() [all …]
|
D | wrbmp.c | 256 bfSize = headersize + (long)dest->row_width * (long)cinfo->output_height; in write_bmp_header() 272 PUT_4B(bmpinfoheader, 8, cinfo->output_height); /* biHeight */ in write_bmp_header() 325 bfSize = headersize + (long)dest->row_width * (long)cinfo->output_height; in write_os2_header() 341 PUT_2B(bmpcoreheader, 6, cinfo->output_height); /* bcHeight */ in write_os2_header() 449 for (row = cinfo->output_height; row > 0; row--) { in finish_output_bmp() 451 progress->pub.pass_counter = (long)(cinfo->output_height - row); in finish_output_bmp() 452 progress->pub.pass_limit = (long)cinfo->output_height; in finish_output_bmp() 532 dest->row_width, cinfo->output_height, (JDIMENSION)1); in jinit_write_bmp()
|
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/ |
D | jdmaster.c | 117 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 125 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 133 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 141 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 149 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 157 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 165 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 173 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 181 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() 189 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions() [all …]
|
D | jdapistd.c | 114 while (cinfo->output_scanline < cinfo->output_height) { in output_pass_setup() 119 cinfo->progress->pass_limit = (long)cinfo->output_height; in output_pass_setup() 273 if (cinfo->output_scanline >= cinfo->output_height) { in jpeg_read_scanlines() 281 cinfo->progress->pass_limit = (long)cinfo->output_height; in jpeg_read_scanlines() 420 if (cinfo->output_scanline + num_lines >= cinfo->output_height) { in jpeg_skip_scanlines() 421 cinfo->output_scanline = cinfo->output_height; in jpeg_skip_scanlines() 424 return cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 478 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 482 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() 499 upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline; in jpeg_skip_scanlines() [all …]
|
D | wrrle.c | 102 if (cinfo->output_width > 32767 || cinfo->output_height > 32767) in start_output_rle() 104 cinfo->output_height); in start_output_rle() 161 if (cinfo->output_scanline < cinfo->output_height) { in rle_put_pixel_rows() 194 header.ymax = cinfo->output_height - 1; in finish_output_rle() 219 progress->pub.pass_limit = cinfo->output_height; in finish_output_rle() 226 for (row = cinfo->output_height - 1; row >= 0; row--) { in finish_output_rle() 239 for (row = cinfo->output_height - 1; row >= 0; row--) { in finish_output_rle() 304 cinfo->output_height, (JDIMENSION)1); in jinit_write_rle()
|
D | djpeg.c | 689 if (skip_end > cinfo.output_height - 1) { in main() 691 cinfo.output_height); in main() 698 tmp = cinfo.output_height; in main() 699 cinfo.output_height -= (skip_end - skip_start + 1); in main() 701 cinfo.output_height = tmp; in main() 710 while (cinfo.output_scanline < cinfo.output_height) { in main() 724 crop_y + crop_height > cinfo.output_height) { in main() 726 progname, cinfo.output_width, cinfo.output_height); in main() 739 tmp = cinfo.output_height; in main() 740 cinfo.output_height = crop_height; in main() [all …]
|
D | transupp.c | 278 MCU_rows = srcinfo->output_height / in do_flip_v() 407 MCU_cols = srcinfo->output_height / in do_rot_90() 558 MCU_rows = srcinfo->output_height / in do_rot_180() 670 MCU_cols = srcinfo->output_height / in do_transverse() 868 MCU_rows = info->output_height / info->iMCU_sample_height; in trim_bottom_edge() 871 info->output_height = MCU_rows * info->iMCU_sample_height; in trim_bottom_edge() 919 srcinfo->output_height = srcinfo->image_height; in jtransform_request_workspace() 927 srcinfo->output_height, in jtransform_request_workspace() 934 srcinfo->output_height, in jtransform_request_workspace() 952 info->output_width = srcinfo->output_height; in jtransform_request_workspace() [all …]
|
/third_party/mesa3d/src/gallium/frontends/xvmc/tests/ |
D | test_rendering.c | 55 …Args(int argc, char **argv, unsigned int *output_width, unsigned int *output_height, double *accep… in ParseArgs() argument 61 *output_height = DEFAULT_OUTPUT_HEIGHT; in ParseArgs() 74 if (sscanf(argv[++i], "%u", output_height) != 1) in ParseArgs() 135 unsigned int output_height; in main() local 154 ParseArgs(argc, argv, &output_width, &output_height, &acceptable_error, &prompt); in main() 184 window = XCreateSimpleWindow(display, root, 0, 0, output_width, output_height, 0, 0, colorkey); in main() 276 …y, NULL, window, 0, 0, INPUT_WIDTH, INPUT_HEIGHT, 0, 0, output_width, output_height, XVMC_FRAME_PI… in main() 304 0, 0, output_width, output_height, in main()
|
D | xvmc_bench.c | 58 unsigned int output_height; member 74 config->output_height = 0; in ParseArgs() 98 if (sscanf(argv[++i], "%u", &config->output_height) != 1) in ParseArgs() 171 if (config->output_height == 0) in ParseArgs() 172 config->output_height = config->input_height; in ParseArgs() 236 …window = XCreateSimpleWindow(display, root, 0, 0, config.output_width, config.output_height, 0, 0,… in main() 278 …g.input_width, config.input_height, 0, 0, config.output_width, config.output_height, XVMC_FRAME_PI… in main() 287 …put: %u,%u\n", config.input_width, config.input_height, config.output_width, config.output_height); in main()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/nn/ |
D | adaptive_avg_pool2d_gpu_kernel.h | 38 output_height(0), in AdaptiveAvgPool2DKernel() 56 …ApplyAdaptiveAvgPool2D(size, input_height, input_width, output_height, output_width, input_addr, o… in Launch() 65 output_height = shape_addr[0]; in Init() 68 output_height = static_cast<uint>(shape_addr[0]); in Init() 126 uint output_height; variable
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/utils/ |
D | soft_dp.cc | 34 if (soft_dp_process_info->output_width % 2 == 1 || soft_dp_process_info->output_height % 2 == 1) { in DecodeAndResizeJpeg() 55 output.height = soft_dp_process_info->output_height; in DecodeAndResizeJpeg() 69 if (soft_dp_process_info->output_width % 2 == 1 || soft_dp_process_info->output_height % 2 == 1) { in DecodeAndCropAndResizeJpeg() 86 output.height = soft_dp_process_info->output_height; in DecodeAndCropAndResizeJpeg()
|
/third_party/ffmpeg/libavfilter/dnn/ |
D | dnn_backend_native_layer_avgpool.c | 62 … int height_end, width_end, height_radius, width_radius, output_height, output_width, kernel_area; in ff_dnn_execute_layer_avg_pool() local 91 output_height = ceil(height / (kernel_strides * 1.0)); in ff_dnn_execute_layer_avg_pool() 99 output_height = ceil((height - avgpool_params->kernel_size + 1) / (kernel_strides * 1.0)); in ff_dnn_execute_layer_avg_pool() 104 output_operand->dims[1] = output_height; in ff_dnn_execute_layer_avg_pool()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/ |
D | lite_image_utils.cc | 192 crop_h = cinfo.output_height; in JpegCropAndDecode() 194 static_cast<unsigned int>(crop_h + crop_y) > cinfo.output_height) { in JpegCropAndDecode() 323 *img_height = cinfo.output_height; in GetJpegImageInfo() 368 …esize(const std::shared_ptr<Tensor> &input, std::shared_ptr<Tensor> *output, int32_t output_height, in Resize() argument 378 …if (output_height == 0 || output_height > input->shape()[0] * height_width_scale_limit || output_w… in Resize() 387 TensorShape shape{output_height, output_width}; in Resize() 406 …lite_mat_resize.Init(output_width, output_height, lite_mat_rgb.channel_, reinterpret_cast<void *>(… in Resize() 409 bool ret = ResizeBilinear(lite_mat_rgb, lite_mat_resize, output_width, output_height); in Resize() 468 int output_height = input->shape()[0]; in RgbToBgr() local 476 TensorShape new_shape = TensorShape({output_height, output_width, 3}); in RgbToBgr() [all …]
|