Home
last modified time | relevance | path

Searched refs:points (Results 26 - 50 of 314) sorted by relevance

12345678910>>...13

/third_party/skia/gm/
H A Dpathmeasure.cpp36 for (int points = 1; points < 2147483647; ) { in path_measure_explosion()
37 if (points == quadratic_at[next_quadratic_at]) { in path_measure_explosion()
40 points += 2; in path_measure_explosion()
43 points += 1; in path_measure_explosion()
50 points += 1; in path_measure_explosion()
H A Ddstreadshuffle.cpp72 SkPoint points[4]; in drawShape() local
73 kRect.toQuad(points); in drawShape()
74 fConvexPath = SkPathBuilder().moveTo(points[0]) in drawShape()
75 .quadTo(points[1], points[2]) in drawShape()
76 .quadTo(points[3], points[0]) in drawShape()
85 SkPoint points[5] = {{50.f, 0.f}}; in drawShape() local
89 rot.mapPoints(points + i, points in drawShape()
[all...]
H A Dhardstop_gradients.cpp80 static void create_gradient_points(int cellRow, int cellCol, SkPoint points[2]) { in create_gradient_points() argument
87 points[0] = SkPoint::Make(x0, y); in create_gradient_points()
88 points[1] = SkPoint::Make(x1, y); in create_gradient_points()
107 SkPoint points[2]; variable
154 create_gradient_points(cellRow, cellCol, points);
157 points,
/third_party/skia/docs/examples/
H A DPoint_add_operator.cpp9 SkPoint points[] = { { 3, 1 }, { 4, 2 }, { 5, 1 }, { 7, 3 }, in REG_FIDDLE() local
15 canvas->drawPoints(SkCanvas::kPolygon_PointMode, SK_ARRAY_COUNT(points), points, paint); in REG_FIDDLE()
17 for (auto& point : points) { in REG_FIDDLE()
23 canvas->drawPoints(SkCanvas::kPolygon_PointMode, SK_ARRAY_COUNT(points), points, paint); in REG_FIDDLE()
H A DIPoint_add_operator.cpp15 SkIPoint points[] = { { 3, 1 }, { 4, 2 }, { 5, 1 }, { 7, 3 } }; in REG_FIDDLE() local
20 draw_lines(points, SK_ARRAY_COUNT(points), paint); in REG_FIDDLE()
22 for (auto& point : points) { in REG_FIDDLE()
28 draw_lines(points, SK_ARRAY_COUNT(points), paint); in REG_FIDDLE()
H A DRect_setBoundsCheck.cpp7 SkPoint points[] = {{3, 4}, {1, 2}, {5, 6}, {SK_ScalarNaN, 8}}; in REG_FIDDLE() local
8 for (int count = 0; count <= (int) SK_ARRAY_COUNT(points); ++count) { in REG_FIDDLE()
10 bool success = rect.setBoundsCheck(points, count); in REG_FIDDLE()
12 SkDebugf("added: %3g, %g ", points[count - 1].fX, points[count - 1].fY); in REG_FIDDLE()
H A DRect_setBoundsNoCheck.cpp7 SkPoint points[] = {{3, 4}, {1, 2}, {SK_ScalarInfinity, 6}, {SK_ScalarNaN, 8}}; in REG_FIDDLE() local
8 for (int count = 0; count <= (int) SK_ARRAY_COUNT(points); ++count) { in REG_FIDDLE()
10 rect.setBoundsNoCheck(points, count); in REG_FIDDLE()
12 SkDebugf("added: %3g, %g ", points[count - 1].fX, points[count - 1].fY); in REG_FIDDLE()
H A DRect_setBounds.cpp7 SkPoint points[] = {{3, 4}, {1, 2}, {5, 6}, {SK_ScalarNaN, 8}}; in REG_FIDDLE() local
8 for (int count = 0; count <= (int) SK_ARRAY_COUNT(points); ++count) { in REG_FIDDLE()
10 rect.setBounds(points, count); in REG_FIDDLE()
12 SkDebugf("added: %3g, %g ", points[count - 1].fX, points[count - 1].fY); in REG_FIDDLE()
H A DCanvas_PointMode.cpp10 SkPoint points[] = {{64, 32}, {96, 96}, {32, 96}}; in REG_FIDDLE() local
11 canvas->drawPoints(SkCanvas::kPoints_PointMode, 3, points, paint); in REG_FIDDLE()
13 canvas->drawPoints(SkCanvas::kLines_PointMode, 3, points, paint); in REG_FIDDLE()
15 canvas->drawPoints(SkCanvas::kPolygon_PointMode, 3, points, paint); in REG_FIDDLE()
17 path.addPoly(points, 3, false); in REG_FIDDLE()
H A DPath_Iter_next.cpp21 SkPoint points[4]; in REG_FIDDLE() local
22 verb = iter.next(points); in REG_FIDDLE()
25 SkDebugf("{%1.8g, %1.8g}, ", points[i].fX, points[i].fY); in REG_FIDDLE()
H A DCanvas_drawVertices_2.cpp8 SkPoint points[] = { { 0, 0 }, { 250, 0 }, { 100, 100 }, { 0, 250 } }; in REG_FIDDLE() local
11 paint.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 4, SkTileMode::kClamp)); in REG_FIDDLE()
13 SK_ARRAY_COUNT(points), points, texs, colors); in REG_FIDDLE()
H A DConic_Weight_c.cpp14 SkPoint points[4]; in REG_FIDDLE() local
15 verb = iter.next(points); in REG_FIDDLE()
18 SkDebugf("{%g, %g}, ", points[i].fX, points[i].fY); in REG_FIDDLE()
H A DConic_Weight_a.cpp14 SkPoint points[4]; in REG_FIDDLE() local
15 verb = iter.next(points); in REG_FIDDLE()
18 SkDebugf("{%g, %g}, ", points[i].fX, points[i].fY); in REG_FIDDLE()
H A DConic_Weight_b.cpp14 SkPoint points[4]; in REG_FIDDLE() local
15 verb = iter.next(points); in REG_FIDDLE()
18 SkDebugf("{%g, %g}, ", points[i].fX, points[i].fY); in REG_FIDDLE()
/third_party/ffmpeg/libavcodec/
H A Delbg.c36 * In the ELBG jargon, a cell is the set of points that are closest to a
55 int *points; member
101 error += distance_limited(centroid, elbg->points + cells->index*elbg->dim, elbg->dim, INT_MAX); in eval_error_cell()
150 int *points, in simple_lbg()
167 idx = distance_limited(centroid[0], points + tempcell->index*dim, dim, INT_MAX)>= in simple_lbg()
168 distance_limited(centroid[1], points + tempcell->index*dim, dim, INT_MAX); in simple_lbg()
171 newcentroid[idx][i] += points[tempcell->index*dim + i]; in simple_lbg()
178 int dist[2] = {distance_limited(centroid[0], points + tempcell->index*dim, dim, INT_MAX), in simple_lbg()
179 distance_limited(centroid[1], points + tempcell->index*dim, dim, INT_MAX)}; in simple_lbg()
202 min[i]=FFMIN(min[i], elbg->points[tempcel in get_new_centroids()
146 simple_lbg(ELBGContext *elbg, int dim, int *centroid[3], int newutility[3], int *points, cell *cells) simple_lbg() argument
349 do_elbg(ELBGContext *av_restrict elbg, int *points, int numpoints, int max_steps) do_elbg() argument
422 init_elbg(ELBGContext *av_restrict elbg, int *points, int *temp_points, int numpoints, int max_steps) init_elbg() argument
446 avpriv_elbg_do(ELBGContext **elbgp, int *points, int dim, int numpoints, int *codebook, int num_cb, int max_steps, int *closest_cb, AVLFG *rand_state, uintptr_t flags) avpriv_elbg_do() argument
[all...]
/third_party/libinput/src/
H A Dfilter-custom.c39 double points[]; member
43 create_custom_accel_function(double step, const double *points, size_t npoints) in create_custom_accel_function() argument
53 if (points[idx] < LIBINPUT_ACCEL_POINT_MIN_VALUE || in create_custom_accel_function()
54 points[idx] > LIBINPUT_ACCEL_POINT_MAX_VALUE) in create_custom_accel_function()
58 struct custom_accel_function *cf = zalloc(sizeof(*cf) + npoints * sizeof(*points)); in create_custom_accel_function()
62 memcpy(cf->points, points, sizeof(*points) * npoints); in create_custom_accel_function()
129 double *points = cf->points; in custom_accel_function_profile() local
[all...]
/third_party/mesa3d/src/mesa/main/
H A Deval.c145 /*** Copy and deallocate control points ***/
150 * Copy 1-parametric evaluator control points from user-specified
151 * memory space to a buffer of contiguous control points.
153 * \return pointer to buffer of contiguous control points or NULL if out
157 const GLfloat *points ) in _mesa_copy_map_points1f()
162 if (!points || !size) in _mesa_copy_map_points1f()
168 for (i = 0, p = buffer; i < uorder; i++, points += ustride) in _mesa_copy_map_points1f()
170 *p++ = points[k]; in _mesa_copy_map_points1f()
181 const GLdouble *points ) in _mesa_copy_map_points1d()
186 if (!points || !siz in _mesa_copy_map_points1d()
304 map1(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, const GLvoid *points, GLenum type ) map1() argument
381 map1(target, (GLfloat) u1, (GLfloat) u2, stride, order, points, GL_DOUBLE); _mesa_Map1d() local
386 map2( GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLvoid *points, GLenum type ) map2() argument
469 _mesa_Map2f( GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points) _mesa_Map2f() argument
486 (GLfloat) v1, (GLfloat) v2, vstride, vorder, points, GL_DOUBLE); _mesa_Map2d() local
[all...]
H A Deval.h49 const GLfloat *points );
53 const GLdouble *points );
58 const GLfloat *points );
63 const GLdouble *points );
/third_party/skia/src/core/
H A DSkPath_serial.cpp125 buffer.write(fPathRef->points(), pts * sizeof(SkPoint)); in writeToMemory()
225 const SkPoint* points = buffer.skipCount<SkPoint>(pts); in readFromMemory_EQ4Or5() local
257 tmp.moveTo(*points++); in readFromMemory_EQ4Or5()
261 tmp.lineTo(*points++); in readFromMemory_EQ4Or5()
265 tmp.quadTo(points[0], points[1]); in readFromMemory_EQ4Or5()
266 points += 2; in readFromMemory_EQ4Or5()
270 tmp.conicTo(points[0], points[1], *conics++); in readFromMemory_EQ4Or5()
271 points in readFromMemory_EQ4Or5()
[all...]
/third_party/skia/src/utils/win/
H A DSkDWriteGeometrySink.cpp78 SK_STDMETHODIMP_(void) SkDWriteGeometrySink::AddLines(const D2D1_POINT_2F *points, UINT pointsCount) { in AddLines() argument
79 for (const D2D1_POINT_2F *end = &points[pointsCount]; points < end; ++points) { in AddLines()
80 if (this->currentIsNot(*points)) { in AddLines()
81 this->goingTo(*points); in AddLines()
82 fPath->lineTo(points->x, points->y); in AddLines()
/third_party/skia/third_party/externals/freetype/src/truetype/
H A Dttgload.c383 /* reading the contours' endpoints & number of points */ in FT_CALLBACK_DEF()
418 FT_TRACE5(( " # of points: %d\n", n_points )); in FT_CALLBACK_DEF()
420 /* note that we will add four phantom points later */ in FT_CALLBACK_DEF()
510 vec = outline->points; in FT_CALLBACK_DEF()
547 vec = gloader->current.outline.points; in FT_CALLBACK_DEF()
734 FT_TRACE7(( " matching points: base=%d, component=%d\n", in FT_CALLBACK_DEF()
809 zone->cur = load->outline.points + start_point; in tt_prepare_zone()
824 * the zone is supposed to include four phantom points.
871 /* round phantom points */ in TT_Hint_Glyph()
909 /* Save possibly modified glyph phantom points unles in TT_Hint_Glyph()
1763 FT_Vector points[4]; load_truetype_glyph() local
1952 FT_Vector* points = NULL; load_truetype_glyph() local
[all...]
/third_party/skia/src/ports/
H A DSkScalerContext_mac_ct.cpp556 CGPoint* points = element->points; in ApplyElement() local
561 self.fCurrent = points[0]; in ApplyElement()
565 if (self.currentIsNot(points[0])) { in ApplyElement()
566 self.goingTo(points[0]); in ApplyElement()
567 self.fBuilder.lineTo(points[0].x, -points[0].y); in ApplyElement()
572 if (self.currentIsNot(points[0]) || self.currentIsNot(points[1])) { in ApplyElement()
573 self.goingTo(points[ in ApplyElement()
[all...]
/third_party/skia/third_party/externals/freetype/src/smooth/
H A Dftsmooth.c276 FT_Vector* points = outline->points; in ft_smooth_raster_lcd() local
277 FT_Vector* points_end = FT_OFFSET( points, outline->n_points ); in ft_smooth_raster_lcd()
288 for ( vec = points; vec < points_end; vec++ ) in ft_smooth_raster_lcd()
295 for ( vec = points; vec < points_end; vec++ ) in ft_smooth_raster_lcd()
308 FT_Vector* points = outline->points; in ft_smooth_raster_lcdv() local
309 FT_Vector* points_end = FT_OFFSET( points, outline->n_points ); in ft_smooth_raster_lcdv()
320 for ( vec = points; vec < points_end; vec++ ) in ft_smooth_raster_lcdv()
327 for ( vec = points; ve in ft_smooth_raster_lcdv()
373 FT_Vector* points = outline->points; ft_smooth_raster_overlap() local
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-var-gvar-table.hh260 hb_vector_t<unsigned int> &points /* OUT */, in unpack_points()
277 points.resize (count); in unpack_points()
294 points[i] = n; in unpack_points()
304 points[i] = n; in unpack_points()
510 static float infer_delta (const hb_array_t<contour_point_t> points, in infer_delta()
514 float target_val = T::get (points[target]); in infer_delta()
515 float prev_val = T::get (points[prev]); in infer_delta()
516 float next_val = T::get (points[next]); in infer_delta()
537 const hb_array_t<contour_point_t> points) const in apply_deltas_to_points()
552 /* Save original points fo in apply_deltas_to_points()
[all...]
/third_party/skia/src/utils/
H A DSkPatchUtils.h20 // Enums for control points based on the order specified in the constructor (clockwise).
28 * Get the points corresponding to the top cubic of cubics.
30 static void GetTopCubic(const SkPoint cubics[12], SkPoint points[4]);
33 * Get the points corresponding to the bottom cubic of cubics.
35 static void GetBottomCubic(const SkPoint cubics[12], SkPoint points[4]);
38 * Get the points corresponding to the left cubic of cubics.
40 static void GetLeftCubic(const SkPoint cubics[12], SkPoint points[4]);
43 * Get the points corresponding to the right cubic of cubics.
45 static void GetRightCubic(const SkPoint cubics[12], SkPoint points[4]);

Completed in 11 milliseconds

12345678910>>...13