Home
last modified time | relevance | path

Searched refs:dst_size (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/
Ddepthwise_conv2d.cl20 … int2 stride, int2 padding, int2 dilation, int4 src_size, int4 dst_size,
25 if (X >= dst_size.x || Y >= (dst_size.y * dst_size.w) || Z >= dst_size.z) return;
28 int batch = Y / dst_size.y;
29 int y_offset = (Y % dst_size.y) * stride.y + padding.y;
48 WRITE_IMAGE(dst_data, (int2)(X * dst_size.z + Z, Y), res);
53 … int2 stride, int2 padding, int2 dilation, int4 src_size, int4 dst_size,
58 if (X >= dst_size.x || Y >= (dst_size.y * dst_size.w) || Z >= dst_size.z) return;
61 int batch = Y / dst_size.y;
62 int y_offset = (Y % dst_size.y) * stride.y + padding.y;
80 WRITE_IMAGE(dst_data, (int2)(X * dst_size.z + Z, Y), res);
[all …]
Dspace_to_batch_nd.cl19 int4 dst_size, int2 block_size, int4 paddings) {
24 int N_I = Z / dst_size.z;
25 Z = Z % dst_size.z;
26 if (X >= dst_size.x || Y >= dst_size.y || Z >= dst_size.z || N_I >= src_size.w) {
35 …res_data = READ_IMAGE(src_data, smp_zero, (int2)(w_org * dst_size.x + X, N_I * src_size.z + h_org)…
36 …WRITE_IMAGE(dst_data, (int2)(Y * dst_size.x + X, ((i * block_size.y + j) * src_size.w + N_I) * dst…
42 int4 dst_size, int2 block_size, int4 paddings) {
46 if (X >= dst_size.x || Y >= dst_size.y || Y >= dst_size.z) {
57 …WRITE_IMAGE(dst_data, (int2)(Z * dst_size.y + Y, (i * block_size.y + j) * dst_size.x + X), res_dat…
Dconv2d_transpose.cl22 int4 dst_size, int act_type) {
32 int n = dst_c / dst_size.z;
33 dst_c = dst_c % dst_size.z;
34 if (dst_h >= dst_size.x || dst_w >= dst_size.y || dst_c >= dst_size.z || n >= dst_size.w) return;
113 WRITE_IMAGE(dst_data, (int2)(dst_w * dst_size.z + dst_c, n * dst_size.x + dst_h), r0);
114 if (dst_h + stride.x < dst_size.x && dst_w < dst_size.y) {
115 … WRITE_IMAGE(dst_data, (int2)(dst_w * dst_size.z + dst_c, n * dst_size.x + dst_h + stride.x), r1);
117 if (dst_h < dst_size.x && dst_w + stride.y < dst_size.y) {
118 …WRITE_IMAGE(dst_data, (int2)((dst_w + stride.y) * dst_size.z + dst_c, n * dst_size.x + dst_h), r2);
120 if (dst_h + stride.x < dst_size.x && dst_w + stride.y < dst_size.y) {
[all …]
Dgather.cl20 int4 src_size, int4 dst_size, int indices_num, int axis) {
24 if (X >= dst_size.x || Y >= dst_size.y * dst_size.w || Z >= dst_size.z || dst_size.y == 0) {
28 int batch = Y / dst_size.y;
29 int height = Y % dst_size.y;
57 WRITE_IMAGE(dst_data, (int2)(X * dst_size.z + Z, batch * dst_size.y + height), res_data);
Dbatch_to_space_nd.cl19 int4 dst_size, int2 block_size, int4 paddings) {
30 if (Y_dst >= dst_size.y || Z_dst >= dst_size.z) {
37 res_data = READ_IMAGE(src_data, smp_zero, (int2)(Y_org * dst_size.x + X, Z_com));
38 …WRITE_IMAGE(dst_data, (int2)((Y * block_size.y + j) * dst_size.x + X, Z * block_size.x + i), res_d…
43 int4 dst_size, int2 block_size, int4 paddings) {
47 if (X >= dst_size.x || Y >= dst_size.y || Y >= dst_size.z) {
58 res_data = READ_IMAGE(src_data, smp_zero, (int2)(Y_org * dst_size.x + X, Z_com));
59 …WRITE_IMAGE(dst_data, (int2)((Y * block_size.y + j) * dst_size.x + X, Z * block_size.x + i), res_d…
Dreshape.cl22 int4 dst_size) {
25 int CO4 = UP_DIV(dst_size.z, C4NUM);
26 int CO4_rem = dst_size.z % C4NUM;
27 if (X >= dst_size.x || Y > dst_size.y) {
39 gcnt = X + dst_size.x * Y;
43 int start = ((X / CO4 * dst_size.z + min(dst_size.z, (X % CO4) * C4NUM)) + dst_size.w * Y);
/third_party/mesa3d/src/util/format/
Dformat_utils.h150 _mesa_unsigned_to_unsigned(unsigned src, unsigned dst_size) in _mesa_unsigned_to_unsigned() argument
152 return MIN2(src, u_uintN_max(dst_size)); in _mesa_unsigned_to_unsigned()
156 _mesa_unsigned_to_signed(unsigned src, unsigned dst_size) in _mesa_unsigned_to_signed() argument
158 return MIN2(src, (unsigned)u_intN_max(dst_size)); in _mesa_unsigned_to_signed()
162 _mesa_signed_to_signed(int src, unsigned dst_size) in _mesa_signed_to_signed() argument
164 return CLAMP(src, u_intN_min(dst_size), u_intN_max(dst_size)); in _mesa_signed_to_signed()
168 _mesa_signed_to_unsigned(int src, unsigned dst_size) in _mesa_signed_to_unsigned() argument
170 return CLAMP(src, 0, u_uintN_max(dst_size)); in _mesa_signed_to_unsigned()
/third_party/skia/third_party/externals/icu/fuzzers/
Dicu_ucasemap_fuzzer.cc32 int32_t dst_size = size * 2; in LLVMFuzzerTestOneInput() local
33 std::unique_ptr<char[]> dst(new char[dst_size]); in LLVMFuzzerTestOneInput()
37 case 0: ucasemap_utf8ToLower(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
40 case 1: ucasemap_utf8ToUpper(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
43 case 2: ucasemap_utf8ToTitle(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
46 case 3: ucasemap_utf8FoldCase(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
/third_party/flutter/skia/third_party/externals/icu/fuzzers/
Dicu_ucasemap_fuzzer.cc32 int32_t dst_size = size * 2; in LLVMFuzzerTestOneInput() local
33 std::unique_ptr<char[]> dst(new char[dst_size]); in LLVMFuzzerTestOneInput()
37 case 0: ucasemap_utf8ToLower(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
40 case 1: ucasemap_utf8ToUpper(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
43 case 2: ucasemap_utf8ToTitle(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
46 case 3: ucasemap_utf8FoldCase(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
/third_party/icu/icu4c/source/test/fuzzer/
Ducasemap_fuzzer.cpp52 int32_t dst_size = size * 2; in LLVMFuzzerTestOneInput() local
53 std::unique_ptr<char[]> dst(new char[dst_size]); in LLVMFuzzerTestOneInput()
57 case 0: ucasemap_utf8ToLower(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
60 case 1: ucasemap_utf8ToUpper(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
63 case 2: ucasemap_utf8ToTitle(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
66 case 3: ucasemap_utf8FoldCase(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
/third_party/ffmpeg/libavcodec/
Ddsicinvideo.c94 unsigned char *dst, int dst_size) in cin_decode_huffman() argument
99 unsigned char *dst_end = dst + dst_size; in cin_decode_huffman()
129 unsigned char *dst, int dst_size) in cin_decode_lzss() argument
133 unsigned char *dst_end = dst + dst_size, *dst_start = dst; in cin_decode_lzss()
160 if (dst_end - dst > dst_size - dst_size/10) in cin_decode_lzss()
167 unsigned char *dst, int dst_size) in cin_decode_rle() argument
170 unsigned char *dst_end = dst + dst_size; in cin_decode_rle()
190 if (dst_end - dst > dst_size - dst_size/10) in cin_decode_rle()
Dtiertexseqv.c41 unsigned char *dst, int dst_size) in seq_unpack_rle_block() argument
49 for (i = 0, sz = 0; i < 64 && sz < dst_size; i++) { in seq_unpack_rle_block()
58 for (i = 0; i < 64 && dst_size > 0; i++) { in seq_unpack_rle_block()
64 memset(dst, *src++, FFMIN(len, dst_size)); in seq_unpack_rle_block()
68 memcpy(dst, src, FFMIN(len, dst_size)); in seq_unpack_rle_block()
72 dst_size -= len; in seq_unpack_rle_block()
Diff.c555 static int decode_byterun(uint8_t *dst, int dst_size, in decode_byterun() argument
559 for (x = 0; x < dst_size && bytestream2_get_bytes_left(gb) > 0;) { in decode_byterun()
563 length = FFMIN3(value + 1, dst_size - x, bytestream2_get_bytes_left(gb)); in decode_byterun()
568 length = FFMIN(-value + 1, dst_size - x); in decode_byterun()
575 if (x < dst_size) { in decode_byterun()
577 memset(dst+x, 0, dst_size - x); in decode_byterun()
810 int w, int bpp, int dst_size) in decode_short_horizontal_delta() argument
820 bytestream2_init_writer(&pb, dst, dst_size); in decode_short_horizontal_delta()
863 int w, int xor, int bpp, int dst_size) in decode_byte_vertical_delta() argument
873 bytestream2_init_writer(&pb, dst, dst_size); in decode_byte_vertical_delta()
[all …]
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dbatch_to_space_nd.cc64 cl_int4 dst_size = {(cl_int)CO4, out_shape[2], out_shape[1], out_shape[0]}; in SetConstArgs() local
73 if (ocl_runtime_->SetKernelArg(kernel_, arg_cnt++, dst_size) != CL_SUCCESS) { in SetConstArgs()
91 cl_int4 dst_size = {(cl_int)CO4, out_shape[2], out_shape[1], out_shape[0]}; in SetGlobalLocal() local
93 global_size_ = {(size_t)dst_size.s[0], (size_t)dst_size.s[1], (size_t)dst_size.s[2]}; in SetGlobalLocal()
Dspace_to_batch_nd.cc69 …cl_int4 dst_size = {(cl_int)CO4, out_tensors_[0]->Width(), out_tensors_[0]->Height(), out_tensors_… in SetConstArgs() local
78 if (ocl_runtime_->SetKernelArg(kernel_, arg_cnt++, dst_size) != CL_SUCCESS) { in SetConstArgs()
95 …cl_int4 dst_size = {(cl_int)CO4, out_tensors_[0]->Width(), out_tensors_[0]->Height(), out_tensors_… in SetGlobalLocal() local
97 global_size_ = {(size_t)dst_size.s[0], (size_t)dst_size.s[1], in SetGlobalLocal()
98 (size_t)dst_size.s[2] * (size_t)(in_tensors_[0]->Batch())}; in SetGlobalLocal()
/third_party/ffmpeg/libswresample/
Dresample.c452 static int multiple_resample(ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int … in multiple_resample() argument
460 dst_size = FFMIN(dst_size, c->compensation_distance); in multiple_resample()
470 dst_size = FFMAX(FFMIN(dst_size, new_size), 0); in multiple_resample()
471 if (dst_size > 0) { in multiple_resample()
473 c->dsp.resample_one(dst->ch[i], src->ch[i], dst_size, index2, incr); in multiple_resample()
475 c->index += dst_size * c->dst_incr_div; in multiple_resample()
476 c->index += (c->frac + dst_size * (int64_t)c->dst_incr_mod) / c->src_incr; in multiple_resample()
479 c->frac = (c->frac + dst_size * (int64_t)c->dst_incr_mod) % c->src_incr; in multiple_resample()
491 dst_size = FFMAX(FFMIN(dst_size, delta_n), 0); in multiple_resample()
492 if (dst_size > 0) { in multiple_resample()
[all …]
/third_party/ffmpeg/doc/examples/
Dscaling_video.c58 const char *dst_size = NULL; in main() local
74 dst_size = argv[2]; in main()
76 if (av_parse_video_size(&dst_w, &dst_h, dst_size) < 0) { in main()
79 dst_size); in main()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_device_address.cc116 bool FloatToHalfAndSyncHostToDevice(void *dst, size_t dst_size, const void *src, size_t src_size) { in FloatToHalfAndSyncHostToDevice() argument
118 if (elem_num != (dst_size / FLOAT16_LEN)) { in FloatToHalfAndSyncHostToDevice()
120 << dst_size << "]"; in FloatToHalfAndSyncHostToDevice()
124 SyncMemory(dst, half_data.data(), dst_size, RT_MEMCPY_HOST_TO_DEVICE); in FloatToHalfAndSyncHostToDevice()
128 bool Float64ToFloatAndSyncHostToDevice(void *dst, size_t dst_size, const void *src, size_t src_size… in Float64ToFloatAndSyncHostToDevice() argument
129 if (src_size / 2 != dst_size) { in Float64ToFloatAndSyncHostToDevice()
130 MS_EXCEPTION(ArgumentError) << "src_size[" << src_size << "], dst_size[" << dst_size << "]"; in Float64ToFloatAndSyncHostToDevice()
132 size_t elem_num = dst_size / sizeof(float); in Float64ToFloatAndSyncHostToDevice()
135 SyncMemory(dst, host_tmp.data(), dst_size, RT_MEMCPY_HOST_TO_DEVICE); in Float64ToFloatAndSyncHostToDevice()
139 bool SyncDeviceToHostAndHalfToFloat(void *dst, size_t dst_size, const void *src, size_t src_size) { in SyncDeviceToHostAndHalfToFloat() argument
[all …]
Dascend_launch_mul.cc54 void AscendLaunchMul::CopyHostMemToDevice(size_t origin_size, size_t dst_size) { in CopyHostMemToDevice() argument
55 …auto ret = rtMemcpyAsync(input2_addr_, dst_size, &input2_value_, origin_size, RT_MEMCPY_HOST_TO_DE… in CopyHostMemToDevice()
/third_party/skia/third_party/externals/microhttpd/src/examples/
Dmhd2spdy_structures.c146 copy_buffer(const void *src, size_t src_size, void **dst, size_t *dst_size) in copy_buffer() argument
154 *dst = realloc(*dst, src_size + *dst_size); in copy_buffer()
158 memcpy(*dst + *dst_size, src, src_size); in copy_buffer()
159 *dst_size += src_size; in copy_buffer()
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Davisubtitle.c120 guint dst_size) in check_correct_buffer() argument
153 fail_unless (gst_buffer_get_size (newBuffer) == dst_size, in check_correct_buffer()
155 gst_buffer_get_size (newBuffer), dst_size); in check_correct_buffer()
156 fail_unless (gst_buffer_memcmp (newBuffer, 0, dst_data, dst_size) == 0, in check_correct_buffer()
/third_party/pulseaudio/src/pulsecore/ffmpeg/
Dresample2.c210 …mpleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx){ in av_resample() argument
221 dst_size= FFMIN(dst_size, (src_size-1-index) * (int64_t)c->src_incr / c->dst_incr); in av_resample()
223 for(dst_index=0; dst_index < dst_size; dst_index++){ in av_resample()
232 for(dst_index=0; dst_index < dst_size; dst_index++){ in av_resample()
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_vlc.h69 vl_vlc_init_table(struct vl_vlc_entry *dst, unsigned dst_size, const struct vl_vlc_compressed *src,… in vl_vlc_init_table() argument
71 unsigned i, bits = util_logbase2(dst_size); in vl_vlc_init_table()
73 assert(dst && dst_size); in vl_vlc_init_table()
76 for (i=0;i<dst_size;++i) { in vl_vlc_init_table()
/third_party/pixman/test/
Dscaling-crash-test.c131 do_test (int32_t dst_size, in do_test() argument
143 if (run_test (dst_size, 1, in do_test()
157 if (run_test (1, dst_size, in do_test()
/third_party/ffmpeg/libavformat/
Drtmppkt.c501 const uint8_t *name, uint8_t *dst, int dst_size) in amf_get_field_value2() argument
525 snprintf(dst, dst_size, "%g", av_int2double(bytestream2_get_be64(gb))); in amf_get_field_value2()
528 snprintf(dst, dst_size, "%s", bytestream2_get_byte(gb) ? "true" : "false"); in amf_get_field_value2()
532 if (dst_size < 1) in amf_get_field_value2()
534 if (dst_size < len + 1) in amf_get_field_value2()
535 len = dst_size - 1; in amf_get_field_value2()
552 const uint8_t *name, uint8_t *dst, int dst_size) in ff_amf_get_field_value() argument
561 return amf_get_field_value2(&gb, name, dst, dst_size); in ff_amf_get_field_value()

1234