Home
last modified time | relevance | path

Searched refs:padded_width (Results 1 – 21 of 21) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dpad_impl.cu24 … const int old_width, const int padded_height, const int padded_width, const int pad_top, in Pad() argument
28 int block_num = pos / padded_width / padded_height; in Pad()
29 const int padded_w = pos % padded_width; in Pad()
30 const int padded_h = pos / padded_width % padded_height; in Pad()
43 … const int channels, const int padded_height, const int padded_width, const int pad_top, in PadNHWC() argument
47 int block_num = pos / channels / padded_width / padded_height; in PadNHWC()
48 const int padded_w = pos / channels % padded_width; in PadNHWC()
49 const int padded_h = pos / channels / padded_width % padded_height; in PadNHWC()
79 … const int channels, const int padded_height, const int padded_width, const int pad_top, in PadGradNHWC() argument
85 …dx[pos] = dy[((block_num * padded_height + padded_h) * padded_width + padded_w)*channels+pos%chann… in PadGradNHWC()
[all …]
Dpad_impl.cuh24 …const int old_width, const int padded_height, const int padded_width, const int pad_top, const int…
28 … const int old_width, const int padded_height, const int padded_width, const int pad_top,
32 …const int channels, const int padded_height, const int padded_width, const int pad_top, const int …
36 … const int channels, const int padded_height, const int padded_width, const int pad_top,
44 …const int padded_width, const int pad_head, const int pad_top, const int pad_left, const float pad…
49 … const int padded_width, const int pad_head, const int pad_top, const int pad_left, T* dx,
54 const int padded_width, const int pad_head, const int pad_top, const int pad_left,
59 … const int padded_width, const int pad_head, const int pad_top, const int pad_left, T *dx,
Dmirror_pad_impl.cu22 __inline__ __device__ bool range_check(int x, int y, int padded_width, int padded_height) { in range_check() argument
23 if (((x >= 0) && (x <= padded_width - 1)) && ((y >= 0) && (y <= padded_height - 1))) { in range_check()
42 … const int old_height, const int old_width, const int padded_height, const int padded_width, in MirrorPad() argument
61 int block_num = (pos / padded_width) / padded_height; in MirrorPad()
63 const int padded_x = pos % padded_width; in MirrorPad()
64 const int padded_y = (pos / padded_width) % padded_height; in MirrorPad()
236 … const int old_width, const int padded_height, const int padded_width, int padd_num, in CalMirrorPad() argument
239 … old_width, padded_height, padded_width, padd_num, in CalMirrorPad()
257 … const int padded_width, int padd_num, const int64_t *paddings, int mode,
261 … const int padded_width, int padd_num, const int64_t *paddings, int mode, half *output,
[all …]
Dmirror_pad_impl.cuh38 … const int old_width, const int padded_height, const int padded_width, int padd_num,
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dpad_cpu_kernel.cc96 const int padded_width = output_shape_[3]; in LaunchKernel() local
99 int block_num = (SizeToInt(pos) / padded_width) / padded_height; in LaunchKernel()
100 …const int padded_w = SizeToInt(pos) % padded_width; // x coordinate referred to… in LaunchKernel()
101 …const int padded_h = (SizeToInt(pos) / padded_width) % padded_height; // y coordinate referred to… in LaunchKernel()
Dmirror_pad_cpu_kernel.cc134 const int64_t padded_width = output_shape_[dim_offset + 1]; in LaunchKernel() local
156 int64_t block_num = (SizeToLong(pos) / padded_width) / padded_height; in LaunchKernel()
158 const int64_t padded_x = SizeToLong(pos) % padded_width; in LaunchKernel()
159 const int64_t padded_y = (SizeToLong(pos) / padded_width) % padded_height; in LaunchKernel()
Dmirror_pad_grad_cpu_kernel.cc47 bool range_check(int64_t x, int64_t y, int64_t padded_width, int64_t padded_height) { in range_check() argument
48 if (((x >= 0) && (x <= padded_width - 1)) && ((y >= 0) && (y <= padded_height - 1))) { in range_check()
/third_party/gstreamer/gstplugins_base/sys/xvimage/
Dxvimageallocator.c346 const GstVideoInfo * info, gint padded_width, gint padded_height, in gst_xvimage_allocator_alloc() argument
371 mem, padded_width, padded_height, crop->x, crop->y, crop->w, crop->h); in gst_xvimage_allocator_alloc()
383 context->xv_port_id, im_format, NULL, padded_width, padded_height, in gst_xvimage_allocator_alloc()
393 "could not XShmCreateImage a %dx%d image", padded_width, in gst_xvimage_allocator_alloc()
420 pitches[0] = GST_ROUND_UP_4 (padded_width); in gst_xvimage_allocator_alloc()
422 pitches[1] = GST_ROUND_UP_8 (padded_width) / 2; in gst_xvimage_allocator_alloc()
439 expected_size = padded_height * GST_ROUND_UP_4 (padded_width * 2); in gst_xvimage_allocator_alloc()
446 expected_size = padded_height * GST_ROUND_UP_4 (padded_width * in gst_xvimage_allocator_alloc()
496 context->xv_port_id, im_format, NULL, padded_width, padded_height); in gst_xvimage_allocator_alloc()
542 "could not XvShmCreateImage a %dx%d image", padded_width, in gst_xvimage_allocator_alloc()
Dxvimagepool.c118 xvpool->padded_width = in xvimage_buffer_pool_set_config()
136 xvpool->im_format, &info, xvpool->padded_width, in xvimage_buffer_pool_set_config()
214 info, xvpool->padded_width, xvpool->padded_height, &xvpool->crop, &err); in xvimage_buffer_pool_alloc()
Dxvimagepool.h49 guint padded_width; member
Dxvimageallocator.h48 gint padded_width,
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_rs.c294 bool tiled_clear = (surf->surf.padded_width & ETNA_RS_WIDTH_MASK) == 0 && in etna_rs_gen_clear_surface()
306 ….width = surf->surf.padded_width, /* These must be padded to 16x4 if !LINEAR, otherwise RS will ha… in etna_rs_gen_clear_surface()
329 surf->surf.padded_width * surf->surf.padded_height / 16); in etna_blit_clear_color_rs()
388 surf->surf.padded_width * surf->surf.padded_height / 16); in etna_blit_clear_zs_rs()
654 assert((blit_info->src.box.x + blit_info->src.box.width) * msaa_xscale <= src_lev->padded_width); in etna_try_rs_blit()
656 assert(blit_info->dst.box.x + blit_info->dst.box.width <= dst_lev->padded_width); in etna_try_rs_blit()
672 if (src_lev->padded_width <= ETNA_RS_WIDTH_MASK || in etna_try_rs_blit()
673 dst_lev->padded_width <= ETNA_RS_WIDTH_MASK || in etna_try_rs_blit()
693 if (width > src_lev->padded_width || in etna_try_rs_blit()
694 width > dst_lev->padded_width * msaa_xscale || in etna_try_rs_blit()
[all …]
Detnaviv_resource.c177 mip->padded_width = align(width * msaa_xscale, paddingX); in setup_miptree()
179 mip->stride = util_format_get_stride(prsc->format, mip->padded_width); in setup_miptree()
540 level->padded_width = align(level->width, paddingX); in etna_resource_from_handle()
550 if (level->stride < util_format_get_stride(tmpl->format, level->padded_width)) { in etna_resource_from_handle()
552 level->stride, util_format_get_stride(tmpl->format, level->padded_width), in etna_resource_from_handle()
Detnaviv_clear_blit.c210 MIN2(src_priv->levels[level].padded_width, dst_priv->levels[level].padded_width); in etna_copy_resource()
Detnaviv_resource.h44 unsigned width, padded_width; /* in pixels */ member
Detnaviv_blt.c504 assert(op.src_x < src_lev->padded_width); in etna_try_blt_blit()
506 assert((op.src_x + op.rect_w) <= src_lev->padded_width); in etna_try_blt_blit()
508 assert(op.dest_x < dst_lev->padded_width); in etna_try_blt_blit()
510 assert((op.dest_x + op.rect_w) <= dst_lev->padded_width); in etna_try_blt_blit()
Detnaviv_surface.c109 (rsc->levels[level].padded_width & ETNA_RS_WIDTH_MASK) == 0 && in etna_create_surface()
/third_party/gstreamer/gstplugins_base/sys/ximage/
Dximagepool.h93 guint padded_width; member
Dximagepool.c222 width = xpool->padded_width; in ximage_memory_alloc()
597 xpool->padded_width = in ximage_buffer_pool_set_config()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-info.c1385 gint padded_width, padded_height; in gst_video_info_align_full() local
1427 padded_width = width + align->padding_left + align->padding_right; in gst_video_info_align_full()
1431 GST_LOG ("padded dimension %u-%u", padded_width, padded_height); in gst_video_info_align_full()
1433 info->width = padded_width; in gst_video_info_align_full()
1451 padded_width += padded_width & ~(padded_width - 1); in gst_video_info_align_full()
1454 align->padding_right = padded_width - width - align->padding_left; in gst_video_info_align_full()
/third_party/gstreamer/gstplugins_good/sys/v4l2/
Dgstv4l2object.c3237 gint stride, pstride, padded_width, padded_height, i; in gst_v4l2_object_save_format() local
3253 padded_width = stride / pstride; in gst_v4l2_object_save_format()
3259 padded_width = stride; in gst_v4l2_object_save_format()
3262 if (padded_width < format->fmt.pix.width) in gst_v4l2_object_save_format()
3265 padded_width, format->fmt.pix.width); in gst_v4l2_object_save_format()
3267 align->padding_right = padded_width - info->width - align->padding_left; in gst_v4l2_object_save_format()