/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/ |
D | resize.cl | 21 int4 in_size, int4 out_size, float2 scale_factor) { 25 if (X >= out_size.x * out_size.y || Y >= out_size.z || Z >= out_size.w) { 28 int N = X / out_size.y; 29 X = X % out_size.y; 32 WRITE_IMAGE(dst_data, (int2)(Y * out_size.w + Z, N * out_size.y + X), 37 int4 in_size, int4 out_size, float2 scale_factor) { 41 if (X >= out_size.y || Y >= out_size.z || Z >= out_size.w) { 46 WRITE_IMAGE(dst_data, (int2)(Y, Z * out_size.y + X), 51 int4 out_size, float2 scale_factor) { 55 if (X >= out_size.x * out_size.y || Y >= out_size.z || Z >= out_size.w) { [all …]
|
/third_party/libwebsockets/lib/misc/ |
D | base64-decode.c | 53 char *out, int out_size) in _lws_b64_encode_string() argument 69 if (done + 4 >= out_size) in _lws_b64_encode_string() 82 if (done + 1 >= out_size) in _lws_b64_encode_string() 91 lws_b64_encode_string(const char *in, int in_len, char *out, int out_size) in lws_b64_encode_string() argument 93 return _lws_b64_encode_string(encode_orig, in, in_len, out, out_size); in lws_b64_encode_string() 97 lws_b64_encode_string_url(const char *in, int in_len, char *out, int out_size) in lws_b64_encode_string_url() argument 99 return _lws_b64_encode_string(encode_url, in, in_len, out, out_size); in lws_b64_encode_string_url() 111 uint8_t *out, size_t *out_size, int final) in lws_b64_decode_stateful() argument 114 uint8_t *orig_out = out, *end_out = out + *out_size; in lws_b64_decode_stateful() 169 *out_size = (unsigned int)(out - orig_out); in lws_b64_decode_stateful() [all …]
|
/third_party/boost/boost/mpi/collectives/ |
D | scatterv.hpp | 28 scatterv_impl(const communicator& comm, const T* in_values, T* out_values, int out_size, in scatterv_impl() argument 31 assert(!sizes || out_size == sizes[comm.rank()]); in scatterv_impl() 40 out_values, out_size, type, root, comm)); in scatterv_impl() 47 scatterv_impl(const communicator& comm, T* out_values, int out_size, int root, in scatterv_impl() argument 50 scatterv_impl(comm, (T const*)0, out_values, out_size, in scatterv_impl() 62 scatterv_impl(const communicator& comm, const T* in_values, T* out_values, int out_size, in scatterv_impl() argument 70 assert(out_size == sizes[comm.rank()]); in scatterv_impl() 80 dispatch_scatter_sendbuf(comm, sendbuf, archsizes, (T const*)0, out_values, out_size, root); in scatterv_impl() 101 T* out_values, int out_size, int root) in scatterv() argument 104 detail::scatterv_impl(comm, in_values, out_values, out_size, c_data(sizes), c_data(displs), in scatterv() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | video-resampler.c | 212 gint in_size, out_size; in resampler_calculate_taps() local 217 out_size = resampler->out_size; in resampler_calculate_taps() 225 resampler->taps = g_malloc (sizeof (gdouble) * max_taps * out_size); in resampler_calculate_taps() 226 n_taps = resampler->n_taps = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps() 227 offset = resampler->offset = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps() 228 phase = resampler->phase = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps() 230 for (j = 0; j < out_size; j++) { in resampler_calculate_taps() 238 ox = (0.5 + (gdouble) j - shift) / out_size; in resampler_calculate_taps() 294 gint i, max_taps, out_size; in resampler_dump() 296 out_size = resampler->out_size; in resampler_dump() [all …]
|
D | video-scaler.c | 112 guint i, out_size, max_taps, n_phases; in resampler_zip() local 118 out_size = r1->out_size + r2->out_size; in resampler_zip() 120 n_phases = out_size; in resampler_zip() 121 offset = g_malloc (sizeof (guint32) * out_size); in resampler_zip() 126 resampler->out_size = out_size; in resampler_zip() 131 resampler->n_taps = g_malloc (sizeof (guint32) * out_size); in resampler_zip() 134 for (i = 0; i < out_size; i++) { in resampler_zip() 167 gint i, j, in_size, out_size, max_taps; in scaler_dump() 173 out_size = r->out_size; in scaler_dump() 179 g_print ("in %d, out %d, max_taps %d, n_phases %d\n", in_size, out_size, in scaler_dump() [all …]
|
/third_party/libxml2/doc/tutorial/ |
D | includeconvert.c | 10 int ret,size,out_size,temp; 14 out_size = size*2-1; 15 out = malloc((size_t)out_size); 27 ret = handler->input(out, &out_size, in, &temp); 37 out = realloc(out,out_size+1); 38 out[out_size]=0; /*null terminating out*/
|
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/FasterRcnn/ |
D | roi_align.py | 42 self.out_size = (out_size_h, out_size_w) 45 self.align_op = P.ROIAlign(self.out_size[0], self.out_size[1], 54 self.out_size, self.spatial_scale, self.sample_num) 87 self.out_size = config.roi_layer.out_size 123 self.out_size, self.out_size)), dtype=self.dtype)) 136 layer_cls = ROIAlign(self.out_size, self.out_size, 176 (1, 256, self.out_size, self.out_size)), mstype.bool_)
|
/third_party/ffmpeg/libavcodec/ |
D | h264_mp4toannexb_bsf.c | 46 static void count_or_copy(uint8_t **out, uint64_t *out_size, in count_or_copy() argument 49 uint8_t start_code_size = ps < 0 ? 0 : *out_size == 0 || ps ? 4 : 3; in count_or_copy() 62 *out_size += start_code_size + in_size; in count_or_copy() 177 uint64_t out_size; in h264_mp4toannexb_filter() local 201 out_size = 0; in h264_mp4toannexb_filter() 233 count_or_copy(&out, &out_size, s->sps, s->sps_size, -1, j); in h264_mp4toannexb_filter() 248 count_or_copy(&out, &out_size, ctx->par_out->extradata, in h264_mp4toannexb_filter() 256 count_or_copy(&out, &out_size, s->pps, s->pps_size, -1, j); in h264_mp4toannexb_filter() 260 count_or_copy(&out, &out_size, buf, nal_size, in h264_mp4toannexb_filter() 272 if (out_size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in h264_mp4toannexb_filter() [all …]
|
D | truehd_core_bsf.c | 43 int in_size, out_size; in truehd_core_filter() local 96 out_size = end + 4 + last_offset; in truehd_core_filter() 97 if (out_size < in_size) { in truehd_core_filter() 114 out_size -= reduce; in truehd_core_filter() 115 pkt->size = out_size; in truehd_core_filter() 123 parity_nibble ^= out_size / 2; in truehd_core_filter() 152 auheader |= (out_size / 2) & 0x0fff; in truehd_core_filter()
|
D | ws-snd1.c | 60 int in_size, out_size, ret; in ws_snd_decode_frame() local 73 out_size = AV_RL16(&buf[0]); in ws_snd_decode_frame() 83 frame->nb_samples = out_size; in ws_snd_decode_frame() 87 samples_end = samples + out_size; in ws_snd_decode_frame() 89 if (in_size == out_size) { in ws_snd_decode_frame() 90 memcpy(samples, buf, out_size); in ws_snd_decode_frame()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-sha1-base64.h | 57 lws_b64_encode_string(const char *in, int in_len, char *out, int out_size); 69 lws_b64_encode_string_url(const char *in, int in_len, char *out, int out_size); 80 lws_b64_decode_string(const char *in, char *out, int out_size); 92 lws_b64_decode_string_len(const char *in, int in_len, char *out, int out_size); 107 uint8_t *out, size_t *out_size, int final);
|
/third_party/ffmpeg/libavformat/ |
D | rtmphttp.c | 47 int out_size; ///< current output buffer size member 66 rt->out_size, 0); in rtmp_http_send_cmd() 73 rt->out_size = 0; in rtmp_http_send_cmd() 89 if (rt->out_size + size > rt->out_capacity) { in rtmp_http_write() 91 rt->out_capacity = (rt->out_size + size) * 2; in rtmp_http_write() 93 rt->out_size = 0; in rtmp_http_write() 99 memcpy(rt->out_data + rt->out_size, buf, size); in rtmp_http_write() 100 rt->out_size += size; in rtmp_http_write() 126 if (rt->out_size > 0) { in rtmp_http_read() 172 rt->out_size = 0; in rtmp_http_close()
|
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/ |
D | space_to_depth_fp32_tests.cc | 35 const int out_size = 16; in TEST_F() local 44 for (int i = 0; i < out_size; ++i) { in TEST_F() 48 ASSERT_EQ(0, CompareOutputData(output, expect_out, out_size, 0.000001)); in TEST_F() 62 const int out_size = 16; in TEST_F() local 90 for (int i = 0; i < out_size; ++i) { in TEST_F() 94 ASSERT_EQ(0, CompareOutputData(output.data(), expect_out, out_size, 0.000001)); in TEST_F()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/ |
D | symbolize_darwin.inc | 64 bool Symbolize(const void* pc, char* out, int out_size) { 65 if (out_size <= 0 || pc == nullptr) { 81 if (len + 1 <= static_cast<size_t>(out_size)) { // +1 for '\0' 86 strncpy(out, symbol.c_str(), out_size); 89 if (out[out_size - 1] != '\0') { 92 int ellipsis_size = std::min<int>(sizeof(kEllipsis) - 1, out_size - 1); 93 memcpy(out + out_size - ellipsis_size - 1, kEllipsis, ellipsis_size); 94 out[out_size - 1] = '\0';
|
D | symbolize_emscripten.inc | 47 bool Symbolize(const void* pc, char* out, int out_size) { 58 strncpy(out, func_name, out_size); 60 if (out[out_size - 1] != '\0') { 63 int ellipsis_size = std::min<int>(sizeof(kEllipsis) - 1, out_size - 1); 64 memcpy(out + out_size - ellipsis_size - 1, kEllipsis, ellipsis_size); 65 out[out_size - 1] = '\0';
|
D | symbolize_win32.inc | 57 bool Symbolize(const void* pc, char* out, int out_size) { 58 if (out_size <= 0) { 68 strncpy(out, symbol->Name, out_size); 69 if (out[out_size - 1] != '\0') { 73 std::min<int>(sizeof(kEllipsis) - 1, out_size - 1); 74 memcpy(out + out_size - ellipsis_size - 1, kEllipsis, ellipsis_size); 75 out[out_size - 1] = '\0';
|
/third_party/abseil-cpp/absl/debugging/ |
D | symbolize_darwin.inc | 64 bool Symbolize(const void* pc, char* out, int out_size) { 65 if (out_size <= 0 || pc == nullptr) { 81 if (len + 1 <= out_size) { // +1 for '\0' 86 strncpy(out, symbol.c_str(), out_size); 89 if (out[out_size - 1] != '\0') { 92 int ellipsis_size = std::min<int>(sizeof(kEllipsis) - 1, out_size - 1); 93 memcpy(out + out_size - ellipsis_size - 1, kEllipsis, ellipsis_size); 94 out[out_size - 1] = '\0';
|
D | symbolize_win32.inc | 57 bool Symbolize(const void* pc, char* out, int out_size) { 58 if (out_size <= 0) { 68 strncpy(out, symbol->Name, out_size); 69 if (out[out_size - 1] != '\0') { 73 std::min<int>(sizeof(kEllipsis) - 1, out_size - 1); 74 memcpy(out + out_size - ellipsis_size - 1, kEllipsis, ellipsis_size); 75 out[out_size - 1] = '\0';
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/mpegts/ |
D | gstmpegtsdescriptor.c | 296 dvb_text_from_utf8 (const gchar * text, gsize * out_size) in dvb_text_from_utf8() argument 307 out_text = g_convert_with_iconv (text, -1, giconv, NULL, out_size, &error); in dvb_text_from_utf8() 321 out_text = g_convert_with_iconv (text, -1, giconv, NULL, out_size, &error); in dvb_text_from_utf8() 332 iconvtablename[_ICONV_UTF8], "?", NULL, out_size, &error); in dvb_text_from_utf8() 346 _encode_control_codes (out_text, *out_size, FALSE); in dvb_text_from_utf8() 353 _encode_control_codes (out_text, *out_size, FALSE); in dvb_text_from_utf8() 354 out_buffer = g_malloc (*out_size + 3); in dvb_text_from_utf8() 358 memcpy (out_buffer + 3, out_text, *out_size); in dvb_text_from_utf8() 359 *out_size += 3; in dvb_text_from_utf8() 374 _encode_control_codes (out_text, *out_size, FALSE); in dvb_text_from_utf8() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/imageio/ |
D | pnmdec.c | 50 char out[MAX_LINE_SIZE + 1], size_t* const out_size) { in ReadLine() argument 52 *out_size = 0; in ReadLine() 63 *out_size = i; in ReadLine() 75 size_t out_size; in ReadPAMFields() local 79 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadPAMFields() 111 if (out_size > 20) sprintf(out + 20 - strlen(kEllipsis), kEllipsis); in ReadPAMFields() 138 size_t out_size; in ReadHeader() local 149 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader() 154 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader() 158 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
D | pnmdec.c | 50 char out[MAX_LINE_SIZE + 1], size_t* const out_size) { in ReadLine() argument 52 *out_size = 0; in ReadLine() 63 *out_size = i; in ReadLine() 75 size_t out_size; in ReadPAMFields() local 80 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadPAMFields() 115 if (out_size > 20) sprintf(out + 20 - strlen(kEllipsis), kEllipsis); in ReadPAMFields() 143 size_t out_size; in ReadHeader() local 154 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader() 159 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader() 163 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader()
|
/third_party/gstreamer/gstplugins_bad/gst/mpegpsmux/ |
D | mpegpsmux_aac.c | 84 gsize out_size; in mpegpsmux_prepare_aac() local 94 out_size = gst_buffer_get_size (buf) + 7; in mpegpsmux_prepare_aac() 122 adts_header[4] = (out_size & 0x1FF8) >> 3; in mpegpsmux_prepare_aac() 124 adts_header[5] = (out_size & 0x7) << 5; in mpegpsmux_prepare_aac()
|
/third_party/ffmpeg/libavformat/tests/ |
D | movenc.c | 55 int out_size; variable 101 out_size += size; in io_write() 129 (type != AVIO_DATA_MARKER_HEADER || out_size == 0) && in io_write_data_type() 150 out_size = 0; in init_out() 159 printf(" %d %s\n", out_size, cur_name); in close_out() 494 check(out_size == 0, "delay_moov flushed prematurely"); in main() 499 check(out_size > 0, "delay_moov didn't output anything"); in main() 508 check(out_size > 0, "No moov written"); in main() 530 check(out_size > 0, "No automatic flush?"); in main() 531 empty_moov_pos = prev_pos = out_size; in main() [all …]
|
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/ |
D | quant_dtype_cast_tests.cc | 52 const int out_size = 16; in TEST_F() local 78 for (int i = 0; i < out_size; ++i) { in TEST_F() 82 ASSERT_EQ(0, CompareOutputData(output.data(), expect_out, out_size, 0.000001)); in TEST_F() 103 const int out_size = 16; in TEST_F() local 128 for (int i = 0; i < out_size; ++i) { in TEST_F() 132 ASSERT_EQ(0, CompareOutputData(output.data(), expect_out, out_size, 0.000001)); in TEST_F()
|
/third_party/gstreamer/gstplugins_base/gst/rawparse/ |
D | gstrawbaseparse.c | 417 gsize alignment, GstBuffer * buffer, gsize out_size) in gst_raw_base_parse_align_buffer() argument 432 new_buffer = gst_buffer_new_allocate (NULL, out_size, ¶ms); in gst_raw_base_parse_align_buffer() 435 gst_buffer_fill (new_buffer, 0, map.data, out_size); in gst_raw_base_parse_align_buffer() 438 out_size); in gst_raw_base_parse_align_buffer() 457 gsize in_size, out_size; in gst_raw_base_parse_handle_frame() local 567 out_size = num_out_frames * frame_size; in gst_raw_base_parse_handle_frame() 575 g_assert (out_size >= (guint) (frame->overhead)); in gst_raw_base_parse_handle_frame() 576 out_size -= frame->overhead; in gst_raw_base_parse_handle_frame() 580 " bytes output (%u frame(s)) %d bytes overhead", in_size, out_size, in gst_raw_base_parse_handle_frame() 590 gst_util_uint64_scale (out_size, GST_SECOND * units_d, units_n); in gst_raw_base_parse_handle_frame() [all …]
|