/third_party/ffmpeg/libavfilter/ |
D | vf_scale_cuda.cu | 28 int dst_width, int dst_height, int dst_pitch, in Subsample_Nearest() argument 35 if (yo < dst_height && xo < dst_width) in Subsample_Nearest() 37 float hscale = (float)src_width / (float)dst_width; in Subsample_Nearest() 49 int dst_width, int dst_height, int dst_pitch, in Subsample_Bilinear() argument 56 if (yo < dst_height && xo < dst_width) in Subsample_Bilinear() 58 float hscale = (float)src_width / (float)dst_width; in Subsample_Bilinear() 84 int dst_width, int dst_height, int dst_pitch, \ 89 dst_width, dst_height, dst_pitch, \ 105 int dst_width, int dst_height, int dst_pitch, \ 110 dst_width, dst_height, dst_pitch, \
|
D | vf_scale_cuda_bicubic.cu | 88 int dst_width, int dst_height, int dst_pitch, in Subsample_Bicubic() argument 95 if (yo < dst_height && xo < dst_width) in Subsample_Bicubic() 97 float hscale = (float)src_width / (float)dst_width; in Subsample_Bicubic() 131 int dst_width, int dst_height, int dst_pitch, in Subsample_FastBicubic() argument 138 if (yo < dst_height && xo < dst_width) in Subsample_FastBicubic() 140 float hscale = (float)src_width / (float)dst_width; in Subsample_FastBicubic() 184 int dst_width, int dst_height, int dst_pitch, \ 189 dst_width, dst_height, dst_pitch, \ 206 int dst_width, int dst_height, int dst_pitch, \ 211 dst_width, dst_height, dst_pitch, \
|
D | vf_yadif_cuda.cu | 101 int dst_width, int dst_height, int dst_pitch, in yadif_single() argument 109 if (xo >= dst_width || yo >= dst_height) { in yadif_single() 171 int dst_width, int dst_height, int dst_pitch, in yadif_double() argument 178 if (xo >= dst_width || yo >= dst_height) { in yadif_double() 247 int dst_width, int dst_height, int dst_pitch, in yadif_uchar() argument 252 dst_width, dst_height, dst_pitch, in yadif_uchar() 261 int dst_width, int dst_height, int dst_pitch, in yadif_ushort() argument 266 dst_width, dst_height, dst_pitch, in yadif_ushort() 275 int dst_width, int dst_height, int dst_pitch, in yadif_uchar2() argument 280 dst_width, dst_height, dst_pitch, in yadif_uchar2() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/ |
D | matrix_combine_impl.cu | 21 const size_t dst_width, T *input_addr, T *output_addr) { in MatrixCombineKernel() argument 28 output_addr[dst_h * dst_width + dst_w] = input_addr[pointIdx]; in MatrixCombineKernel() 34 … const size_t dst_width, const size_t res_width, const size_t batch, T *input_addr, in MatrixCombineKernel() argument 43 output_addr[dst_h * dst_width + dst_w] = input_addr[pointIdx]; in MatrixCombineKernel() 50 output_addr[dst_h * dst_width + dst_w] = input_addr[src_coordinate]; in MatrixCombineKernel() 56 …Combine(const size_t size, const size_t src_height, const size_t src_width, const size_t dst_width, in MatrixCombine() argument 60 …neKernel<<<GET_BLOCKS(size), GET_THREADS, 0, cuda_stream>>>(size, src_height, src_width, dst_width, in MatrixCombine() 63 …neKernel<<<GET_BLOCKS(size), GET_THREADS, 0, cuda_stream>>>(size, src_height, src_width, dst_width, in MatrixCombine() 70 … const size_t dst_width, const size_t residual, const size_t res_width,
|
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/ |
D | rescaler_utils.c | 24 int dst_width, int dst_height, int dst_stride, in WebPRescalerInit() argument 26 const int x_add = src_width, x_sub = dst_width; in WebPRescalerInit() 28 wrk->x_expand = (src_width < dst_width); in WebPRescalerInit() 32 wrk->dst_width = dst_width; in WebPRescalerInit() 71 wrk->frow = work + num_channels * dst_width; in WebPRescalerInit() 72 memset(work, 0, 2 * dst_width * num_channels * sizeof(*work)); in WebPRescalerInit() 127 for (x = 0; x < wrk->num_channels * wrk->dst_width; ++x) { in WebPRescalerImport()
|
D | rescaler_utils.h | 42 int dst_width, dst_height; // destination dimensions member 53 int dst_width, int dst_height, int dst_stride,
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
D | rescaler_utils.c | 27 int dst_width, int dst_height, int dst_stride, in WebPRescalerInit() argument 29 const int x_add = src_width, x_sub = dst_width; in WebPRescalerInit() 31 const uint64_t total_size = 2ull * dst_width * num_channels * sizeof(*work); in WebPRescalerInit() 34 rescaler->x_expand = (src_width < dst_width); in WebPRescalerInit() 38 rescaler->dst_width = dst_width; in WebPRescalerInit() 78 rescaler->frow = work + num_channels * dst_width; in WebPRescalerInit() 139 for (x = 0; x < rescaler->num_channels * rescaler->dst_width; ++x) { in WebPRescalerImport()
|
D | rescaler_utils.h | 42 int dst_width, dst_height; // destination dimensions member 54 int dst_width, int dst_height, int dst_stride,
|
/third_party/pixman/test/ |
D | affine-test.c | 34 int dst_width, dst_height; in test_composite() local 59 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1; in test_composite() 62 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp; in test_composite() 72 dst_x = -(dst_width / 4) + prng_rand_n (dst_width * 3 / 2); in test_composite() 74 w = prng_rand_n (dst_width * 3 / 2 - dst_x); in test_composite() 105 dst_fmt, dst_width, dst_height, dstbuf, dst_stride); in test_composite() 226 src_width, src_height, dst_width, dst_height); in test_composite() 266 clip_boxes[i].x1 = prng_rand_n (dst_width); in test_composite() 269 clip_boxes[i].x1 + prng_rand_n (dst_width - clip_boxes[i].x1); in test_composite()
|
D | scaling-crash-test.c | 19 run_test (int32_t dst_width, in run_test() argument 56 dstbuf = (uint32_t *)malloc (dst_width * dst_height * 4); in run_test() 59 memset (dstbuf, 0x33, dst_width * dst_height * 4); in run_test() 71 PIXMAN_a8r8g8b8, dst_width, dst_height, dstbuf, dst_width * 4); in run_test() 82 src_x, src_y, 0, 0, 0, 0, dst_width, dst_height); in run_test() 87 for (i = 0; i < dst_width * dst_height; i++) in run_test()
|
D | scaling-test.c | 60 int dst_width, dst_height; in test_composite() local 113 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1; in test_composite() 117 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp; in test_composite() 134 dst_x = -(dst_width / 4) + prng_rand_n (dst_width * 3 / 2); in test_composite() 136 w = prng_rand_n (dst_width * 3 / 2 - dst_x); in test_composite() 176 dst_fmt, dst_width, dst_height, dstbuf, dst_stride); in test_composite() 321 clip_boxes[i].x1 = prng_rand_n (dst_width); in test_composite() 324 clip_boxes[i].x1 + prng_rand_n (dst_width - clip_boxes[i].x1); in test_composite() 375 dst_width, dst_height, dst_x, dst_y); in test_composite()
|
D | composite-traps-test.c | 54 int dst_width, dst_height; in test_composite() local 155 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1; in test_composite() 157 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp; in test_composite() 168 dst_x = -(dst_width / 4) + prng_rand_n (dst_width * 3 / 2); in test_composite() 172 dst_format, dst_width, dst_height, dst_bits, dst_stride); in test_composite() 207 clip_boxes[i].x1 = prng_rand_n (dst_width); in test_composite() 210 clip_boxes[i].x1 + prng_rand_n (dst_width - clip_boxes[i].x1); in test_composite()
|
D | blitters-test.c | 239 int dst_width, dst_height; in test_composite() local 290 dst_width = pixman_image_get_width (dst_img); in test_composite() 298 dst_x = prng_rand_n (dst_width); in test_composite() 344 w = prng_rand_n (dst_width - dst_x + 1); in test_composite() 354 src_width, src_height, dst_width, dst_height); in test_composite()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_bld_alpha.c | 75 const unsigned dst_width = 8; in lp_build_alpha_test() local 80 alpha = lp_build_clamped_float_to_unsigned_norm(gallivm, type, dst_width, alpha); in lp_build_alpha_test() 81 ref = lp_build_clamped_float_to_unsigned_norm(gallivm, type, dst_width, ref); in lp_build_alpha_test()
|
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/ |
D | rescaler.c | 32 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerImportRowExpand_C() 64 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerImportRowShrink_C() 102 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerExportRowExpand_C() 131 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerExportRowShrink_C() 179 assert(wrk->src_width == 1 && wrk->dst_width <= 2); in WebPRescalerExportRow() 180 for (i = 0; i < wrk->num_channels * wrk->dst_width; ++i) { in WebPRescalerExportRow()
|
D | rescaler_mips32.c | 27 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowShrink_MIPS32() 87 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowExpand_MIPS32() 152 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowExpand_MIPS32() 214 const int x_out_max = wrk->dst_width * wrk->num_channels;
|
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
D | rescaler.c | 32 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerImportRowExpand_C() 65 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerImportRowShrink_C() 103 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerExportRowExpand_C() 132 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerExportRowShrink_C() 180 assert(wrk->src_width == 1 && wrk->dst_width <= 2); in WebPRescalerExportRow() 181 for (i = 0; i < wrk->num_channels * wrk->dst_width; ++i) { in WebPRescalerExportRow()
|
D | rescaler_mips32.c | 27 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowShrink_MIPS32() 87 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowExpand_MIPS32() 152 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowExpand_MIPS32() 214 const int x_out_max = wrk->dst_width * wrk->num_channels;
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/lite_cv/ |
D | image_process.cc | 83 …inear3C(const unsigned char *src, int src_width, int src_height, unsigned char *dst, int dst_width, in ResizeBilinear3C() argument 85 double scale_width = static_cast<double>(src_width) / dst_width; in ResizeBilinear3C() 88 if (dst_height >= (INT_MAX / 2 - dst_width)) { in ResizeBilinear3C() 91 int *data_buf = new int[2 * dst_width + 2 * dst_height]; in ResizeBilinear3C() 94 int *y_offset = data_buf + dst_width; in ResizeBilinear3C() 96 int16_t *x_weight = reinterpret_cast<int16_t *>(data_buf + dst_width + dst_height); in ResizeBilinear3C() 97 int16_t *y_weight = reinterpret_cast<int16_t *>(x_weight + dst_width); in ResizeBilinear3C() 99 InitBilinearWeight(x_offset, x_weight, scale_width, dst_width, src_width, 3); in ResizeBilinear3C() 102 LiteMat x_tmp_buf0(dst_width * 3 + 1, LDataType::UINT16); in ResizeBilinear3C() 103 LiteMat x_tmp_buf1(dst_width * 3 + 1, LDataType::UINT16); in ResizeBilinear3C() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_blit.c | 337 unsigned dst_width, in r100_blit() argument 362 if (reg_width + dst_x_offset > dst_width) in r100_blit() 363 reg_width = dst_width - dst_x_offset; in r100_blit() 401 emit_cb_setup(r100, dst_bo, dst_offset, dst_mesaformat, dst_pitch, dst_width, dst_height); in r100_blit()
|
/third_party/ffmpeg/libavcodec/ |
D | proresenc_anatoliy.c | 476 … unsigned dst_width, unsigned dst_height, int is_alpha_plane, in subimage_with_fill_template() argument 479 int box_width = FFMIN(width - x, dst_width); in subimage_with_fill_template() 508 for (; j < dst_width; j++) in subimage_with_fill_template() 511 dst += dst_width; in subimage_with_fill_template() 513 last_line = dst - dst_width; in subimage_with_fill_template() 515 for (j = 0; j < dst_width; ++j) { in subimage_with_fill_template() 518 dst += dst_width; in subimage_with_fill_template() 524 unsigned dst_width, unsigned dst_height, int is_interlaced, int is_top_field) in subimage_with_fill() argument 526 …subimage_with_fill_template(src, x, y, stride, width, height, dst, dst_width, dst_height, 0, is_in… in subimage_with_fill() 532 … unsigned dst_width, unsigned dst_height, int is_interlaced, int is_top_field) in subimage_alpha_with_fill() argument [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_conv.c | 266 unsigned dst_width, in lp_build_clamped_float_to_unsigned_norm() argument 275 assert(dst_width <= src_type.width); in lp_build_clamped_float_to_unsigned_norm() 280 if (dst_width <= mantissa) { in lp_build_clamped_float_to_unsigned_norm() 293 ubound = (1ULL << dst_width); in lp_build_clamped_float_to_unsigned_norm() 296 bias = (double)(1ULL << (mantissa - dst_width)); in lp_build_clamped_float_to_unsigned_norm() 305 else if (dst_width == (mantissa + 1)) { in lp_build_clamped_float_to_unsigned_norm() 316 scale = (double)((1ULL << dst_width) - 1); in lp_build_clamped_float_to_unsigned_norm() 339 unsigned n = MIN2(src_type.width - 1u, dst_width); in lp_build_clamped_float_to_unsigned_norm() 342 unsigned lshift = dst_width - n; in lp_build_clamped_float_to_unsigned_norm()
|
D | lp_bld_gather.c | 83 unsigned dst_width, in lp_build_gather_elem() argument 92 LLVMTypeRef dst_elem_type = LLVMIntTypeInContext(gallivm->context, dst_width); in lp_build_gather_elem() 140 assert(src_width <= dst_width); in lp_build_gather_elem() 141 if (src_width < dst_width) { in lp_build_gather_elem() 146 LLVMConstInt(dst_elem_type, dst_width - src_width, 0), ""); in lp_build_gather_elem()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_sse.h | 623 int32_t dst_width, in util_sse2_stretch_row_8unorm() argument 631 assert(dst_width >= 0); in util_sse2_stretch_row_8unorm() 632 assert(dst_width % 4 == 0); in util_sse2_stretch_row_8unorm() 645 dst_width >>= 2; in util_sse2_stretch_row_8unorm() 646 while (dst_width) { in util_sse2_stretch_row_8unorm() 695 --dst_width; in util_sse2_stretch_row_8unorm()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_blit.c | 683 unsigned dst_width, dst_height, src_width0, src_height0, src_widthFL, src_heightFL; in r600_resource_copy_region() local 707 dst_width = u_minify(dst->width0, dst_level); in r600_resource_copy_region() 727 dst_width = util_format_get_nblocksx(dst->format, dst_width); in r600_resource_copy_region() 752 dst_width = util_format_get_nblocksx(dst->format, dst_width); in r600_resource_copy_region() 797 dst_width, dst_height); in r600_resource_copy_region() 828 unsigned dst_width = u_minify(info->dst.resource->width0, info->dst.level); in do_hardware_msaa_resolve() local 851 dst_width == info->src.resource->width0 && in do_hardware_msaa_resolve() 855 info->dst.box.width == dst_width && in do_hardware_msaa_resolve() 860 info->src.box.width == dst_width && in do_hardware_msaa_resolve()
|