Home
last modified time | relevance | path

Searched refs:src_height (Results 1 – 25 of 71) sorted by relevance

123

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dmatrix_combine_impl.cu20 __global__ void MatrixCombineKernel(const size_t size, const size_t src_height, const size_t src_wi… in MatrixCombineKernel() argument
23 size_t batchIdx = pointIdx / (src_height * src_width); in MatrixCombineKernel()
24 size_t src_h = (pointIdx - batchIdx * src_height * src_width) / src_width; in MatrixCombineKernel()
25 size_t src_w = (pointIdx - batchIdx * src_height * src_width) % src_width; in MatrixCombineKernel()
26 size_t dst_h = src_height * batchIdx + src_h; in MatrixCombineKernel()
33 __global__ void MatrixCombineKernel(const size_t size, const size_t src_height, const size_t src_wi… in MatrixCombineKernel() argument
37 size_t batchIdx = pointIdx / (src_height * src_width); in MatrixCombineKernel()
39 size_t src_h = (pointIdx - batchIdx * src_height * src_width) / src_width; in MatrixCombineKernel()
40 size_t src_w = (pointIdx - batchIdx * src_height * src_width) % src_width; in MatrixCombineKernel()
41 size_t dst_h = src_height * batchIdx + src_h; in MatrixCombineKernel()
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_thumbnail_cuda.cu26 int *histogram, int src_width, int src_height) in Thumbnail_uchar() argument
30 if (y < src_height && x < src_width) in Thumbnail_uchar()
38 int *histogram, int src_width, int src_height) in Thumbnail_uchar2() argument
43 if (y < src_height && x < src_width) in Thumbnail_uchar2()
52 int *histogram, int src_width, int src_height) in Thumbnail_ushort() argument
57 if (y < src_height && x < src_width) in Thumbnail_ushort()
65 int *histogram, int src_width, int src_height) in Thumbnail_ushort2() argument
70 if (y < src_height && x < src_width) in Thumbnail_ushort2()
Dvf_scale_cuda.cu29 int src_width, int src_height, in Subsample_Nearest() argument
38 float vscale = (float)src_height / (float)dst_height; in Subsample_Nearest()
50 int src_width, int src_height, in Subsample_Bilinear() argument
59 float vscale = (float)src_height / (float)dst_height; in Subsample_Bilinear()
85 int src_width, int src_height, \
90 src_width, src_height, \
106 int src_width, int src_height, \
111 src_width, src_height, \
Dvf_scale_cuda_bicubic.cu89 int src_width, int src_height, in Subsample_Bicubic() argument
98 float vscale = (float)src_height / (float)dst_height; in Subsample_Bicubic()
132 int src_width, int src_height, in Subsample_FastBicubic() argument
141 float vscale = (float)src_height / (float)dst_height; in Subsample_FastBicubic()
185 int src_width, int src_height, \
190 src_width, src_height, \
207 int src_width, int src_height, \
212 src_width, src_height, \
Dvf_yadif_cuda.cu102 int src_width, int src_height, in yadif_single() argument
172 int src_width, int src_height, in yadif_double() argument
248 int src_width, int src_height, in yadif_uchar() argument
253 src_width, src_height, in yadif_uchar()
262 int src_width, int src_height, in yadif_ushort() argument
267 src_width, src_height, in yadif_ushort()
276 int src_width, int src_height, in yadif_uchar2() argument
281 src_width, src_height, in yadif_uchar2()
290 int src_width, int src_height, in yadif_ushort2() argument
295 src_width, src_height, in yadif_ushort2()
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/
Drescaler_utils.c22 void WebPRescalerInit(WebPRescaler* const wrk, int src_width, int src_height, in WebPRescalerInit() argument
27 const int y_add = src_height, y_sub = dst_height; in WebPRescalerInit()
29 wrk->y_expand = (src_height < dst_height); in WebPRescalerInit()
31 wrk->src_height = src_height; in WebPRescalerInit()
77 int WebPRescalerGetScaledDimensions(int src_width, int src_height, in WebPRescalerGetScaledDimensions() argument
87 if (width == 0 && src_height > 0) { in WebPRescalerGetScaledDimensions()
89 (int)(((uint64_t)src_width * height + src_height - 1) / src_height); in WebPRescalerGetScaledDimensions()
94 (int)(((uint64_t)src_height * width + src_width - 1) / src_width); in WebPRescalerGetScaledDimensions()
Drescaler_utils.h41 int src_width, src_height; // source dimensions member
51 int src_width, int src_height,
61 int WebPRescalerGetScaledDimensions(int src_width, int src_height,
81 return (rescaler->src_y >= rescaler->src_height); in WebPRescalerInputDone()
/third_party/skia/third_party/externals/libwebp/src/utils/
Drescaler_utils.c25 int src_width, int src_height, in WebPRescalerInit() argument
30 const int y_add = src_height, y_sub = dst_height; in WebPRescalerInit()
35 rescaler->y_expand = (src_height < dst_height); in WebPRescalerInit()
37 rescaler->src_height = src_height; in WebPRescalerInit()
85 int WebPRescalerGetScaledDimensions(int src_width, int src_height, in WebPRescalerGetScaledDimensions() argument
96 if (width == 0 && src_height > 0) { in WebPRescalerGetScaledDimensions()
98 (int)(((uint64_t)src_width * height + src_height - 1) / src_height); in WebPRescalerGetScaledDimensions()
103 (int)(((uint64_t)src_height * width + src_width - 1) / src_width); in WebPRescalerGetScaledDimensions()
Drescaler_utils.h41 int src_width, src_height; // source dimensions member
52 int src_width, int src_height,
62 int WebPRescalerGetScaledDimensions(int src_width, int src_height,
82 return (rescaler->src_y >= rescaler->src_height); in WebPRescalerInputDone()
/third_party/pixman/test/
Daffine-test.c33 int src_width, src_height; in test_composite() local
58 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1; in test_composite()
71 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2); in test_composite()
77 srcbuf = (uint32_t *)malloc (src_stride * src_height); in test_composite()
80 prng_randmemset (srcbuf, src_stride * src_height, 0); in test_composite()
85 srcbuf += (src_stride / 4) * (src_height - 1); in test_composite()
102 src_fmt, src_width, src_height, srcbuf, src_stride); in test_composite()
226 src_width, src_height, dst_width, dst_height); in test_composite()
240 clip_boxes[i].y1 = prng_rand_n (src_height); in test_composite()
244 clip_boxes[i].y1 + prng_rand_n (src_height - clip_boxes[i].y1); in test_composite()
[all …]
Dscaling-test.c58 int src_width, src_height; in test_composite() local
101 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1; in test_composite()
131 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2); in test_composite()
139 srcbuf = (uint32_t *)malloc (src_stride * src_height); in test_composite()
143 prng_randmemset (srcbuf, src_stride * src_height, 0); in test_composite()
153 srcbuf += (src_stride / 4) * (src_height - 1); in test_composite()
170 src_fmt, src_width, src_height, srcbuf, src_stride); in test_composite()
267 clip_boxes[i].y1 = prng_rand_n (src_height); in test_composite()
271 clip_boxes[i].y1 + prng_rand_n (src_height - clip_boxes[i].y1); in test_composite()
368 src_width, src_height, src_x, src_y); in test_composite()
[all …]
Dcomposite-traps-test.c98 int src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1; in test_composite() local
103 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2); in test_composite()
107 orig = bits = (uint32_t *)make_random_bytes (src_stride * src_height); in test_composite()
111 bits += (src_stride / 4) * (src_height - 1); in test_composite()
116 src_format, src_width, src_height, bits, src_stride); in test_composite()
128 clip_boxes[i].y1 = prng_rand_n (src_height); in test_composite()
132 clip_boxes[i].y1 + prng_rand_n (src_height - clip_boxes[i].y1); in test_composite()
Dscaling-crash-test.c22 int32_t src_height, in run_test() argument
55 srcbuf = (uint32_t *)malloc ((src_width + 10) * (src_height + 10) * 4); in run_test()
58 memset (srcbuf, 0x88, src_width * src_height * 4); in run_test()
62 PIXMAN_a8r8g8b8, src_width, src_height, in run_test()
67 0, 0, 0, 0, 0, 0, src_width, src_height); in run_test()
Dblitters-test.c238 int src_width, src_height; in test_composite() local
287 src_height = pixman_image_get_height (src_img); in test_composite()
297 src_y = prng_rand_n (src_height); in test_composite()
314 src_height, in test_composite()
354 src_width, src_height, dst_width, dst_height); in test_composite()
/third_party/gstreamer/gstplugins_good/gst/videomixer/
Dblend.c53 gint src_width, src_height; \
56 src_height = GST_VIDEO_FRAME_HEIGHT (srcframe); \
78 src_height -= -ypos; \
85 if (ypos + src_height > dest_height) { \
86 src_height = dest_height - ypos; \
89 if (src_height > 0 && src_width > 0) { \
92 LOOP (dest, src, src_height, src_width, src_stride, dest_stride, s_alpha); \
98 _##method##_loop_##name (guint8 * dest, const guint8 * src, gint src_height, \
103 s_alpha, src_width, src_height); \
206 gint src_stride, gint dest_stride, gint src_width, gint src_height, \
[all …]
/third_party/gstreamer/gstplugins_base/gst/compositor/
Dblend.c52 gint src_width, src_height; \
55 src_height = GST_VIDEO_FRAME_HEIGHT (srcframe); \
80 src_height -= dst_y_start - ypos; \
87 if (ypos + src_height > dst_y_end) { \
88 src_height = dst_y_end - ypos; \
91 if (src_height > 0 && src_width > 0) { \
94 LOOP (dest, src, src_height, src_width, src_stride, dest_stride, s_alpha, \
101 _overlay_loop_##name (guint8 * dest, const guint8 * src, gint src_height, \
110 for (y = 0; y < src_height; y++) { \
117 s_alpha, src_width, src_height); \
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_copy_image.c43 int src_width, int src_height) in copy_miptrees() argument
57 src_width, src_height)) in copy_miptrees()
65 src_width, src_height); in copy_miptrees()
76 int src_width, int src_height) in brw_copy_image_sub_data() argument
117 src_width, src_height); in brw_copy_image_sub_data()
131 src_width, src_height); in brw_copy_image_sub_data()
/third_party/mesa3d/src/mesa/main/
Dtexcompress_bptc_tmp.h657 decompress_rgba_unorm_block(int src_width, int src_height, in decompress_rgba_unorm_block() argument
680 for(y = 0; y < src_height; y += 1) { in decompress_rgba_unorm_block()
725 for(y = 0; y < src_height; y += 1) { in decompress_rgba_unorm_block()
1044 decompress_rgb_float_block(unsigned src_width, unsigned src_height, in decompress_rgb_float_block() argument
1075 for(y = 0; y < src_height; y += 1) { in decompress_rgb_float_block()
1102 for(y = 0; y < src_height; y += 1) { in decompress_rgb_float_block()
1311 int src_width, int src_height, in write_rgb_indices_unorm() argument
1335 for (y = 0; y < src_height; y++) { in write_rgb_indices_unorm()
1361 if (src_height < BLOCK_SIZE) in write_rgb_indices_unorm()
1362 write_bits(writer, 2 * BLOCK_SIZE * (BLOCK_SIZE - src_height), 0); in write_rgb_indices_unorm()
[all …]
Dtexcompress_etc.h72 unsigned src_height);
79 unsigned src_height,
/third_party/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_blit.c258 unsigned src_width, unsigned src_height, in emit_draw_packet() argument
268 calc_tex_coords(src_width, src_height, in emit_draw_packet()
330 unsigned src_height, in r100_blit() argument
360 if (reg_height + src_y_offset > src_height) in r100_blit()
361 reg_height = src_height - src_y_offset; in r100_blit()
378 src_width, src_height, src_pitch, src_offset, in r100_blit()
399 emit_tx_setup(r100, src_mesaformat, src_bo, src_offset, src_width, src_height, src_pitch); in r100_blit()
403 emit_draw_packet(r100, src_width, src_height, in r100_blit()
/third_party/gstreamer/gstplugins_good/ext/libcaca/
Dgstcacatv.c88 cacatv->src_height, 4 * cacatv->src_width); in gst_cacatv_transform_frame()
208 GValue src_height = G_VALUE_INIT; in gst_cacatv_transform_caps() local
215 g_value_init (&src_height, G_TYPE_INT); in gst_cacatv_transform_caps()
219 cacatv->src_height = in gst_cacatv_transform_caps()
223 g_value_set_int (&src_height, cacatv->src_height); in gst_cacatv_transform_caps()
226 gst_caps_set_value (ret, "height", &src_height); in gst_cacatv_transform_caps()
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dr200_blit.c409 unsigned src_width, unsigned src_height, argument
419 calc_tex_coords(src_width, src_height,
478 unsigned src_height, argument
508 if (reg_height + src_y_offset > src_height)
509 reg_height = src_height - src_y_offset;
526 src_width, src_height, src_pitch,
547 …emit_tx_setup(r200, src_mesaformat, dst_mesaformat, src_bo, src_offset, src_width, src_height, src…
551 emit_draw_packet(r200, src_width, src_height,
/third_party/weston/clients/
Dscaler.c69 wl_fixed_t src_x, src_y, src_width, src_height; in set_my_viewport() local
86 src_height = wl_fixed_from_double((RECT_H - 0.5) / BUFFER_SCALE); in set_my_viewport()
99 src_height = wl_fixed_from_int(RECT_H / BUFFER_SCALE); in set_my_viewport()
101 src_width, src_height); in set_my_viewport()
109 src_width, src_height); in set_my_viewport()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-blend.c301 gint i, j, global_alpha_val, src_width, src_height, dest_width, dest_height; in gst_video_blend() local
318 src_height = GST_VIDEO_FRAME_HEIGHT (src); in gst_video_blend()
325 GST_LOG ("blend src %dx%d onto dest %dx%d @ %d,%d", src_width, src_height, in gst_video_blend()
329 if (x + src_width <= 0 || y + src_height <= 0 in gst_video_blend()
383 src_height -= src_yoff; in gst_video_blend()
392 if (y + src_height > dest_height) in gst_video_blend()
393 src_height = dest_height - y; in gst_video_blend()
399 for (i = y; i < y + src_height; i++, src_yoff++) { in gst_video_blend()
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_blt.c248 uint32_t src_width = src_box->width, src_height = src_box->height; in crocus_emit_blt() local
275 src_height = DIV_ROUND_UP(src_height, (int)bh); in crocus_emit_blt()
322 for (uint32_t chunk_y = 0; chunk_y < src_height; chunk_y += max_chunk_size) { in crocus_emit_blt()
324 const uint32_t chunk_h = MIN2(max_chunk_size, src_height - chunk_y); in crocus_emit_blt()
368 blt_set_alpha_to_one(batch, dst, 0, 0, src_width, src_height); in crocus_emit_blt()

123