Home
last modified time | relevance | path

Searched refs:line2 (Results 1 – 25 of 67) sorted by relevance

123

/third_party/skia/tests/
DPathOpsLineIntersectionTest.cpp87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
91 SkDPoint result2 = line2.ptAtT(ts[1][i]); in check_results()
97 result2 = line2.ptAtT(ts[1][i ^ 1]); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
110 SkASSERT(ValidLine(line2)); in testOne()
113 int pts = i.intersect(line1, line2); in testOne()
116 check_results(reporter, line1, line2, i, nearAllowed); in testOne()
117 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
124 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left); in testOne()
125 check_results(reporter, line2, line1, ts, nearAllowed); in testOne()
[all …]
DPathOpsDLineTest.cpp26 SkDLine line2; in DEF_TEST() local
28 line2.set(pts); in DEF_TEST()
29 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); in DEF_TEST()
/third_party/flutter/skia/tests/
DPathOpsLineIntersectionTest.cpp87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
91 SkDPoint result2 = line2.ptAtT(ts[1][i]); in check_results()
97 result2 = line2.ptAtT(ts[1][i ^ 1]); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
110 SkASSERT(ValidLine(line2)); in testOne()
113 int pts = i.intersect(line1, line2); in testOne()
116 check_results(reporter, line1, line2, i, nearAllowed); in testOne()
117 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
124 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left); in testOne()
125 check_results(reporter, line2, line1, ts, nearAllowed); in testOne()
[all …]
DPathOpsDLineTest.cpp26 SkDLine line2; in DEF_TEST() local
28 line2.set(pts); in DEF_TEST()
29 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); in DEF_TEST()
/third_party/ltp/testcases/kernel/fs/mongo/
Dmongo_compare.c55 char line2[100]; in main() local
104 fgets(line2, 100, f2); in main()
108 if (p = strstr(line2, "\n")) in main()
125 strcpy(tmp_str[i], line2); in main()
134 line3, line2); in main()
160 line2[strlen(line2) - 1] = 0; in main()
161 while (strlen(line2) < 40) { in main()
162 strcat(line2, " "); in main()
165 strcat(line3, line2); in main()
175 if (p2 = strstr(line2, " :")) { in main()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/ivtc/
Dgstivtc.c371 reconstruct_line (guint8 * line1, guint8 * line2, int i, int a, int b, int c, in reconstruct_line() argument
380 x += line2[i + 0] * d; in reconstruct_line()
381 x += line2[i + 1] * c; in reconstruct_line()
382 x += line2[i + 2] * b; in reconstruct_line()
383 x += line2[i + 3] * a; in reconstruct_line()
411 guint8 *line2 = GET_LINE (&field->frame, k, j + 1); in reconstruct_single() local
418 dx = -line1[i - 1] - line2[i - 1] + line1[i + 1] + line2[i + 1]; in reconstruct_single()
422 + line2[i - 1] + 2 * line2[i] + line2[i + 1]; in reconstruct_single()
429 dest[i] = (line1[i] + line2[i] + 1) >> 1; in reconstruct_single()
432 dest[i] = reconstruct_line (line1, line2, i, 0, 0, 0, 16); in reconstruct_single()
[all …]
/third_party/ffmpeg/libavformat/
Dsccdec.c66 char line2[4096], line[4096]; in scc_read_header() local
80 while (!ff_text_eof(&tr) || next_ts == AV_NOPTS_VALUE || line2[0]) { in scc_read_header()
99 len = ff_subtitles_read_line(&tr, line2, sizeof(line2)); in scc_read_header()
103 if (av_sscanf(line2, "%d:%d:%d%*[:;]%d", &hh, &mm, &ss, &fs) == 4) in scc_read_header()
107 memmove(line, line2, sizeof(line)); in scc_read_header()
108 line2[0] = 0; in scc_read_header()
111 len = ff_subtitles_read_line(&tr, line2, sizeof(line2)); in scc_read_header()
115 if (av_sscanf(line2, "%d:%d:%d%*[:;]%d", &hh, &mm, &ss, &fs) == 4) in scc_read_header()
/third_party/python/Lib/idlelib/idle_test/
Dmock_tk.py252 line2, char2 = self._decode(index2)
254 return line1 < line2 or line1 == line2 and char1 < char2
256 return line1 < line2 or line1 == line2 and char1 <= char2
258 return line1 > line2 or line1 == line2 and char1 > char2
260 return line1 > line2 or line1 == line2 and char1 >= char2
262 return line1 == line2 and char1 == char2
264 return line1 != line2 or char1 != char2
Dtest_history.py13 line2 = 'b = a' variable
45 self.history.store(line2)
46 self.assertEqual(self.history.history, [line1, line2])
48 self.assertEqual(self.history.history, [line2, line1])
53 self.history.store(line2)
83 self.history.history = [line1, line2]
109 test(True, line2, prefix, 1)
117 test(False, line2, prefix, 1)
137 test(True, line2, prefix, 1)
146 test(True, line2, prefix, 1)
[all …]
/third_party/boost/tools/quickbook/test/unit/
Dsource_map_test.cpp24 quickbook::string_iterator line2 = line1_end + 1; in simple_map_tests() local
51 f1->position_of(f1->source().begin() + (line2 - line1)), in simple_map_tests()
78 builder.add(quickbook::string_view(line2, line2_end - line2)); in simple_map_tests()
89 quickbook::file_position(2, line2_end - line2 + 1)); in simple_map_tests()
94 builder.add(quickbook::string_view(line2, line2_end - line2)); in simple_map_tests()
108 f1->position_of(f1->source().begin() + (line2_end - line2 - 1)), in simple_map_tests()
109 quickbook::file_position(2, line2_end - line2)); in simple_map_tests()
111 f1->position_of(f1->source().begin() + (line2_end - line2)), in simple_map_tests()
114 f1->position_of(f1->source().begin() + (line2_end - line2 + 1)), in simple_map_tests()
123 builder.add(quickbook::string_view(line2, line2_end - line2)); in simple_map_tests()
[all …]
/third_party/boost/libs/numeric/interval/examples/
Dfilter.cpp66 I* line2 = u[i]; in det_sign_algo1() local
68 line2[j] = line1[j]; in det_sign_algo1()
96 I *line2 = u[p[k]]; in det_sign_algo1() local
97 I fact = line2[i] / pivot; in det_sign_algo1()
98 for(int j = i + 1; j < dim; j++) line2[j] -= fact * line1[j]; in det_sign_algo1()
141 double *line2 = lu[p[k]]; in det_sign_algo2() local
142 double fact = line2[i] / pivot; in det_sign_algo2()
143 line2[i] = fact; in det_sign_algo2()
144 for(int j = i + 1; j < dim; j++) line2[j] -= line1[j] * fact; in det_sign_algo2()
/third_party/gn/src/base/files/
Dfile_util.cc88 std::string line1, line2; in TextContentsEqual() local
90 getline(file2, line2); in TextContentsEqual()
104 std::string::size_type end2 = line2.find_last_not_of("\r\n"); in TextContentsEqual()
106 line2.clear(); in TextContentsEqual()
107 else if (end2 + 1 < line2.length()) in TextContentsEqual()
108 line2.erase(end2 + 1); in TextContentsEqual()
110 if (line1 != line2) in TextContentsEqual()
/third_party/boost/libs/geometry/doc/src/examples/algorithms/
Dintersects_segment.cpp23 bg::model::linestring<P> line1, line2; in main() local
26 boost::geometry::read_wkt("linestring(2 1,1 2)", line2); in main()
28 bool b = boost::geometry::intersects(line1, line2); in main()
Dintersects_linestring.cpp23 boost::geometry::model::linestring<P> line1, line2; in main() local
26 boost::geometry::read_wkt("linestring(2 1,1 2,4 0)", line2); in main()
28 bool b = boost::geometry::intersects(line1, line2); in main()
Dintersection_ls_ls_point.cpp28 std::vector<P> line1, line2; in BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED() local
30 boost::geometry::read_wkt("linestring(1 2,2 1,3 2)", line2); in BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED()
33 boost::geometry::intersection(line1, line2, intersection_points); in BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED()
Dcrosses.cpp36 bg::model::linestring<bg::model::d2::point_xy<double> > line2; in main() local
37 bg::read_wkt("LINESTRING(1 1,1 2,1 3)", line2); in main()
38 check_crosses = bg::crosses(poly, line2); in main()
Dassign_points.cpp48 ls line1, line2, line3; in main() local
51 …boost::geometry::assign_points(line2, tuple_list_of(0, 0)(2, 2)(4, 0)(6, 2)(8, 0)); /*< tuple_list… in main()
55 std::cout << "line 2: " << boost::geometry::dsv(line2) << std::endl; in main()
/third_party/mbedtls/tests/src/
Dhelpers.c99 memset( mbedtls_test_info.line2, 0, sizeof( mbedtls_test_info.line2 ) ); in mbedtls_test_info_reset()
118 (void) mbedtls_snprintf( mbedtls_test_info.line2, in mbedtls_test_equal()
119 sizeof( mbedtls_test_info.line2 ), in mbedtls_test_equal()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Dconv_depthwise_fp16.c172 float16_t *line2 = lines[2]; in ConvDw3x3InitTopFp16() local
177 ConvDw3x3RowLeftFp16(src + width * channel, line2, lw, channel); in ConvDw3x3InitTopFp16()
181 …ConvDw3x3RowMiddleFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel… in ConvDw3x3InitTopFp16()
186 …ConvDw3x3RowRightFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel); in ConvDw3x3InitTopFp16()
189 …ConvDw3x3RowSingleFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel… in ConvDw3x3InitTopFp16()
196 float16_t *line2 = lines[2]; in ConvDw3x3InitRowFp16() local
200 ConvDw3x3RowLeftFp16(src + width * channel, line2, lw, channel); in ConvDw3x3InitRowFp16()
205 …ConvDw3x3RowMiddleFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel… in ConvDw3x3InitRowFp16()
211 …ConvDw3x3RowRightFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel); in ConvDw3x3InitRowFp16()
215 …ConvDw3x3RowSingleFp16(src + width * channel + (ow - 1) * channel, line2 + 2 * ow * 8, lw, channel… in ConvDw3x3InitRowFp16()
[all …]
/third_party/python/Tools/scripts/
Dfindnocoding.py60 line2 = infile.readline()
63 blank_re.match(line1) and get_declaration(line2)):
70 if has_correct_encoding(line1+line2+rest, "utf-8"):
/third_party/node/deps/icu-small/source/tools/toolutil/
Dwritesrc.cpp335 char line[100], line2[100], line3[100], line4[100]; in usrc_writeUCPTrie() local
340 sprintf(line2, "static const uint%d_t %s_trieData[%%ld]={\n", (int)width, name); in usrc_writeUCPTrie()
345 sprintf(line2, "data_%d = [\n ", (int)width); in usrc_writeUCPTrie()
351 usrc_writeUCPTrieArrays(f, line, line2, pTrie, line3, syntax); in usrc_writeUCPTrie()
356 sprintf(line2, "%s_trieIndex", name); in usrc_writeUCPTrie()
362 line2[0] = 0; in usrc_writeUCPTrie()
369 usrc_writeUCPTrieStruct(f, line, pTrie, line2, line3, line4, syntax); in usrc_writeUCPTrie()
/third_party/icu/icu4c/source/tools/toolutil/
Dwritesrc.cpp298 char line[100], line2[100], line3[100]; in usrc_writeUCPTrie() local
300 sprintf(line2, "static const uint%d_t %s_trieData[%%ld]={\n", (int)width, name); in usrc_writeUCPTrie()
301 usrc_writeUCPTrieArrays(f, line, line2, pTrie, "\n};\n\n"); in usrc_writeUCPTrie()
303 sprintf(line2, "%s_trieIndex", name); in usrc_writeUCPTrie()
305 usrc_writeUCPTrieStruct(f, line, pTrie, line2, line3, "};\n\n"); in usrc_writeUCPTrie()
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
Dwritesrc.cpp298 char line[100], line2[100], line3[100]; in usrc_writeUCPTrie() local
300 sprintf(line2, "static const uint%d_t %s_trieData[%%ld]={\n", (int)width, name); in usrc_writeUCPTrie()
301 usrc_writeUCPTrieArrays(f, line, line2, pTrie, "\n};\n\n"); in usrc_writeUCPTrie()
303 sprintf(line2, "%s_trieIndex", name); in usrc_writeUCPTrie()
305 usrc_writeUCPTrieStruct(f, line, pTrie, line2, line3, "};\n\n"); in usrc_writeUCPTrie()
/third_party/flutter/skia/third_party/externals/icu/source/tools/toolutil/
Dwritesrc.cpp298 char line[100], line2[100], line3[100]; in usrc_writeUCPTrie() local
300 sprintf(line2, "static const uint%d_t %s_trieData[%%ld]={\n", (int)width, name); in usrc_writeUCPTrie()
301 usrc_writeUCPTrieArrays(f, line, line2, pTrie, "\n};\n\n"); in usrc_writeUCPTrie()
303 sprintf(line2, "%s_trieIndex", name); in usrc_writeUCPTrie()
305 usrc_writeUCPTrieStruct(f, line, pTrie, line2, line3, "};\n\n"); in usrc_writeUCPTrie()
/third_party/boost/libs/spirit/classic/test/
Dposition_iterator_tests.cpp261 const string line2 = "efgh"; variable
262 const string linebuf = "\n" + line1 + "\n" + line2 + "\n";
299 BOOST_TEST(iter2.get_currentline() == line2); in CheckLineExtractionOne()
300 BOOST_TEST(iter3.get_currentline() == line2); in CheckLineExtractionOne()
304 line2); in CheckLineExtractionOne()
308 line2); in CheckLineExtractionOne()
316 BOOST_TEST(iter.get_currentline() == line2); in CheckLineExtractionOne()
320 line2); in CheckLineExtractionOne()

123