Home
last modified time | relevance | path

Searched refs:start_pos (Results 1 – 25 of 111) sorted by relevance

12345

/third_party/mindspore/mindspore/core/ops/
Dstrided_slice.cc45 int64_t get_stride_with_not_zero(int64_t start_pos, int64_t end_pos, int64_t strides) { in get_stride_with_not_zero() argument
48 slicing_length = 1 + (end_pos + 1 - start_pos) / strides; in get_stride_with_not_zero()
286 int64_t StridedSlice::compute_slicing_length(int64_t start_pos, int64_t end_pos, int64_t strides, i… in compute_slicing_length() argument
289 if ((start_pos >= x_dim) || end_pos < -x_dim) { in compute_slicing_length()
292 if (-x_dim <= start_pos && start_pos < 0) { in compute_slicing_length()
293 start_pos += x_dim; in compute_slicing_length()
295 if (start_pos < -x_dim) { in compute_slicing_length()
296 start_pos = 0; in compute_slicing_length()
304 if (start_pos > end_pos) { in compute_slicing_length()
307 slicing_length = 1 + (end_pos - 1 - start_pos) / strides; in compute_slicing_length()
[all …]
/third_party/grpc/src/compiler/
Druby_generator_string-inl.h54 size_t start_pos = s.find(from); in Replace() local
55 if (start_pos == std::string::npos) { in Replace()
58 s.replace(start_pos, from.length(), to); in Replace()
76 size_t start_pos = s->find(from); in ReplacePrefix() local
77 if (start_pos == std::string::npos || start_pos != 0) { in ReplacePrefix()
80 s->replace(start_pos, from.length(), to); in ReplacePrefix()
/third_party/grpc/examples/cpp/helloworld/
Dgreeter_client.cc84 size_t start_pos = arg_val.find(arg_str); in main() local
85 if (start_pos != std::string::npos) { in main()
86 start_pos += arg_str.size(); in main()
87 if (arg_val[start_pos] == '=') { in main()
88 target_str = arg_val.substr(start_pos + 1); in main()
/third_party/ninja/src/
Dmsvc_helper-win32.cc25 size_t start_pos = 0; in Replace() local
26 while ((start_pos = result.find(find, start_pos)) != string::npos) { in Replace()
27 result.replace(start_pos, find.length(), replace); in Replace()
28 start_pos += replace.length(); in Replace()
/third_party/ffmpeg/libavcodec/
Dvima.c89 int start_pos; in decode_init() local
96 for (start_pos = 0; start_pos < 64; start_pos++) { in decode_init()
99 for (table_pos = 0, dest_pos = start_pos; in decode_init()
106 if (start_pos & count) in decode_init()
Datrac3plusdsp.c160 pos = (envelope->start_pos << 2) - reg_offset; in waves_synth()
164 envelope->start_pos != envelope->stop_pos) { in waves_synth()
198 tones_next->pend_env.start_pos < tones_next->pend_env.stop_pos) { in ff_atrac3p_generate_tones()
200 tones_next->curr_env.start_pos = tones_next->pend_env.start_pos + 32; in ff_atrac3p_generate_tones()
203 tones_next->curr_env.start_pos = tones_now->pend_env.start_pos; in ff_atrac3p_generate_tones()
206 tones_next->curr_env.start_pos = 0; in ff_atrac3p_generate_tones()
210 tones_now->pend_env.stop_pos >= tones_next->curr_env.start_pos) { in ff_atrac3p_generate_tones()
223 reg2_env_nonzero = (tones_next->curr_env.start_pos >= 32) ? 0 : 1; in ff_atrac3p_generate_tones()
Datrac1.c112 unsigned int start_pos, ref_pos = 0, pos = 0; in at1_imdct_block() local
140 start_pos = 0; in at1_imdct_block()
143 at1_imdct(q, &q->spec[pos], &su->spectrum[0][ref_pos + start_pos], nbits, band_num); in at1_imdct_block()
146 q->vector_fmul_window(&q->bands[band_num][start_pos], prev_buf, in at1_imdct_block()
147 &su->spectrum[0][ref_pos + start_pos], ff_sine_32, 16); in at1_imdct_block()
149 prev_buf = &su->spectrum[0][ref_pos+start_pos + 16]; in at1_imdct_block()
150 start_pos += block_size; in at1_imdct_block()
Dav1_parse.h104 int64_t *obu_size, int *start_pos, int *type, in parse_obu_header() argument
137 *start_pos = get_bits_count(&gb) / 8; in parse_obu_header()
139 size = *obu_size + *start_pos; in parse_obu_header()
Dav1_parse.c32 int start_pos, type, temporal_id, spatial_id; in ff_av1_extract_obu() local
35 len = parse_obu_header(buf, length, &obu_size, &start_pos, in ff_av1_extract_obu()
44 obu->data = buf + start_pos; in ff_av1_extract_obu()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dstridedslice_cpu_kernel.cc165 …dedSliceCPUKernel::RunTaskOnOuter(const uint8_t *input_addr, uint8_t *output_addr, int start_pos) { in RunTaskOnOuter() argument
168 …const uint8_t *cur_in_ptr = input_addr + (start_pos * input_shape_[split_axis_] + begin_index) * i… in RunTaskOnOuter()
169 uint8_t *cur_out_ptr = output_addr + start_pos * output_shape_[split_axis_] * inner_size; in RunTaskOnOuter()
170 int cur_outer = outer_ - start_pos; in RunTaskOnOuter()
180 …liceCPUKernel::RunTaskOnSplitAxis(const uint8_t *input_addr, uint8_t *output_addr, int start_pos) { in RunTaskOnSplitAxis() argument
183 …const uint8_t *cur_in_ptr = input_addr + (start_pos * slice_param_.strides_[split_axis_] + begin_i… in RunTaskOnSplitAxis()
184 uint8_t *cur_out_ptr = output_addr + start_pos * inner_size; in RunTaskOnSplitAxis()
185 int cal_axis_num = output_shape_[split_axis_] - start_pos; in RunTaskOnSplitAxis()
Dstridedslice_cpu_kernel.h45 int RunTaskOnOuter(const uint8_t *input_addr, uint8_t *output_addr, int start_pos);
46 int RunTaskOnSplitAxis(const uint8_t *input_addr, uint8_t *output_addr, int start_pos);
/third_party/skia/third_party/externals/freetype/src/sdf/
Dftsdf.c311 FT_26D6_Vec start_pos; member
705 edge->start_pos = contour->last_pos; in sdf_line_to()
744 edge->start_pos = contour->last_pos; in sdf_conic_to()
786 edge->start_pos = contour->last_pos; in sdf_cubic_to()
895 cbox.xMin = edge.start_pos.x < cbox.xMin in get_control_box()
896 ? edge.start_pos.x in get_control_box()
898 cbox.xMax = edge.start_pos.x > cbox.xMax in get_control_box()
899 ? edge.start_pos.x in get_control_box()
902 cbox.yMin = edge.start_pos.y < cbox.yMin in get_control_box()
903 ? edge.start_pos.y in get_control_box()
[all …]
/third_party/ffmpeg/libavformat/
Dav1.c37 int off, start_pos, type, temporal_id, spatial_id; in av1_filter_obus() local
47 int len = parse_obu_header(buf, end - buf, &obu_size, &start_pos, in av1_filter_obus()
337 int start_pos, type, temporal_id, spatial_id; in ff_av1_parse_seq_header() local
343 int len = parse_obu_header(buf, size, &obu_size, &start_pos, in ff_av1_parse_seq_header()
353 return parse_sequence_header(seq, buf + start_pos, obu_size); in ff_av1_parse_seq_header()
372 int start_pos, type, temporal_id, spatial_id; in ff_isom_write_av1c() local
397 int len = parse_obu_header(buf, size, &obu_size, &start_pos, in ff_isom_write_av1c()
411 ret = parse_sequence_header(&seq_params, buf + start_pos, obu_size); in ff_isom_write_av1c()
Dsauce.c37 uint64_t start_pos = avio_size(pb) - 128; in ff_sauce_read() local
39 avio_seek(pb, start_pos, SEEK_SET); in ff_sauce_read()
86 avio_seek(pb, start_pos - 64*nb_comments - 5, SEEK_SET); in ff_sauce_read()
Dwtvenc.c595 static int64_t write_fat_sector(AVFormatContext *s, int64_t start_pos, int nb_sectors, int sector_b… in write_fat_sector() argument
597 int64_t start_sector = start_pos >> WTV_SECTOR_BITS; in write_fat_sector()
725 static int finish_file(AVFormatContext *s, enum WtvFileIndex index, int64_t start_pos) in finish_file() argument
735 w->length = (end_pos - start_pos); in finish_file()
770 …w->first_sector = write_fat_sector(s, start_pos, nb_sectors, sector_bits, w->depth) >> WTV_SECTOR_… in finish_file()
772 w->first_sector = start_pos >> WTV_SECTOR_BITS; in finish_file()
788 int64_t start_pos, file_end_pos; in write_trailer() local
793 start_pos = avio_tell(pb); in write_trailer()
795 if (finish_file(s, WTV_TIMELINE_TABLE_0_ENTRIES_EVENTS, start_pos) < 0) in write_trailer()
798 start_pos = avio_tell(pb); in write_trailer()
[all …]
Dtty.c75 static int efi_read(AVFormatContext *avctx, uint64_t start_pos) in efi_read() argument
82 avio_seek(pb, start_pos, SEEK_SET); in efi_read()
98 s->fsize = start_pos; in efi_read()
/third_party/grpc/test/cpp/interop/
Dclient.cc124 size_t start_pos = 0; in ParseAdditionalMetadataFlag() local
125 while (start_pos < flag.length()) { in ParseAdditionalMetadataFlag()
126 size_t colon_pos = flag.find(':', start_pos); in ParseAdditionalMetadataFlag()
134 std::string key = flag.substr(start_pos, colon_pos - start_pos); in ParseAdditionalMetadataFlag()
164 start_pos = semicolon_pos + 1; in ParseAdditionalMetadataFlag()
/third_party/skia/third_party/externals/brotli/c/enc/
Dbrotli_bit_stream.h45 const uint8_t* input, size_t start_pos, size_t length, size_t mask,
56 const uint8_t* input, size_t start_pos, size_t length, size_t mask,
66 const uint8_t* input, size_t start_pos, size_t length, size_t mask,
/third_party/node/deps/brotli/c/enc/
Dbrotli_bit_stream.h45 const uint8_t* input, size_t start_pos, size_t length, size_t mask,
56 const uint8_t* input, size_t start_pos, size_t length, size_t mask,
66 const uint8_t* input, size_t start_pos, size_t length, size_t mask,
/third_party/boost/tools/inspect/
Dascii_check.cpp58 std::size_t start_pos = contents.find_last_of ( kCRLF, pos ); in find_line() local
59 …g::const_iterator line_start = contents.begin () + ( start_pos == std::string::npos ? 0 : start_po… in find_line()
/third_party/cef/libcef/browser/net/
Dchrome_scheme_handler.cc247 int start_pos, end_pos = 0; in Parse() local
252 start_pos = tmpl->find(ident_start_, end_pos); in Parse()
253 if (start_pos >= 0) { in Parse()
254 end_pos = tmpl->find(ident_end_, start_pos + ident_start_len); in Parse()
257 std::string key = tmpl->substr(start_pos + ident_start_len, in Parse()
258 end_pos - start_pos - ident_start_len); in Parse()
262 tmpl->replace(start_pos, end_pos + ident_end_len - start_pos, in Parse()
264 end_pos = start_pos + it->second.length(); in Parse()
/third_party/boost/boost/regex/v4/
Dperl_matcher.hpp264 BidiIterator start_pos; // where the last repeat started member in boost::BOOST_REGEX_DETAIL_NS::repeater_count
284 repeater_count(repeater_count** s) : stack(s), next(0), state_id(-1), count(0), start_pos() {} in repeater_count()
287 : start_pos(start) in repeater_count()
302 start_pos = p->start_pos; in repeater_count()
321 bool result = (count == 0) ? false : (pos == start_pos); in check_null_repeat()
325 start_pos = pos; in check_null_repeat()
/third_party/boost/boost/log/expressions/formatters/
Dmax_size_decorator.hpp130 …const size_type start_pos = strm.rdbuf()->storage()->size(), max_size_left = strm.rdbuf()->storage… in operator ()() local
131 … strm.rdbuf()->max_size(start_pos + (m_max_size <= max_size_left ? m_max_size : max_size_left)); in operator ()()
187 …const size_type start_pos = strm.rdbuf()->storage()->size(), max_size_left = strm.rdbuf()->storage… in operator ()() local
188 … strm.rdbuf()->max_size(start_pos + (m_max_size <= max_size_left ? m_max_size : max_size_left)); in operator ()()
/third_party/libphonenumber/cpp/src/phonenumbers/utf/
Dunicodetext.cc323 const_iterator start_pos) const { in find()
324 assert(start_pos.utf8_data() >= utf8_data()); in find()
325 assert(start_pos.utf8_data() <= utf8_data() + utf8_length()); in find()
326 return UnsafeFind(look, start_pos); in find()
334 const UnicodeText& look, const_iterator start_pos) const { in UnsafeFind()
340 searching.find(look_piece, start_pos.utf8_data() - utf8_data()); in UnsafeFind()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c1060 … ecma_length_t start_pos, /**< position of the first character */ in ecma_substring_copy_to_cesu8_buffer() argument
1072 if (start_pos >= string_length || start_pos >= end_pos) in ecma_substring_copy_to_cesu8_buffer()
1088 start_p += start_pos; in ecma_substring_copy_to_cesu8_buffer()
1089 size = end_pos - start_pos; in ecma_substring_copy_to_cesu8_buffer()
1100 end_pos -= start_pos; in ecma_substring_copy_to_cesu8_buffer()
1101 while (start_pos--) in ecma_substring_copy_to_cesu8_buffer()
1139 ecma_length_t start_pos, /**< position of the first character */ in ecma_substring_copy_to_utf8_buffer() argument
1153 if (start_pos >= utf8_str_length || start_pos >= end_pos) in ecma_substring_copy_to_utf8_buffer()
1168 cesu8_str_p += start_pos; in ecma_substring_copy_to_utf8_buffer()
1169 size = end_pos - start_pos; in ecma_substring_copy_to_utf8_buffer()
[all …]

12345