Home
last modified time | relevance | path

Searched refs:contours (Results 1 - 23 of 23) sorted by relevance

/third_party/skia/third_party/externals/freetype/src/sdf/
H A Dftsdf.c57 * (1) We have a set of contours that make the outline of a shape/glyph.
368 * contours ::
369 * Linked list of all the contours that make the shape.
375 SDF_Contour* contours; member
607 /* Also free the list of contours. */
612 SDF_Contour* contours; in sdf_shape_done() local
620 contours = (*shape)->contours; in sdf_shape_done()
625 /* release all contours */ in sdf_shape_done()
626 while ( contours ) in sdf_shape_done()
1208 SDF_Contour* contours; split_sdf_shape() local
3201 SDF_Contour* contours; /* list of all contours */ sdf_generate_bounding_box() local
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A Dftgloadr.c112 FT_FREE( loader->base.outline.contours ); in FT_GlyphLoader_Reset()
151 current->contours = FT_OFFSET( base->contours, base->n_contours ); in FT_GlyphLoader_Adjust_Points()
259 /* check contours */ in FT_BASE_DEF()
270 if ( FT_RENEW_ARRAY( base->contours, old_max, new_max ) ) in FT_BASE_DEF()
366 /* adjust contours count in newest outline */ in FT_GlyphLoader_Add()
368 current->outline.contours[n] = in FT_GlyphLoader_Add()
369 (short)( current->outline.contours[n] + n_base_points ); in FT_GlyphLoader_Add()
H A Dftoutln.c85 last = outline->contours[n]; in FT_EXPORT_DEF()
321 FT_NEW_ARRAY( anoutline->contours, numContours ) ) in FT_EXPORT_DEF()
362 end = outline->contours[n]; in FT_EXPORT_DEF()
364 /* note that we don't accept empty contours */ in FT_EXPORT_DEF()
409 FT_ARRAY_COPY( target->contours, source->contours, source->n_contours ); in FT_EXPORT_DEF()
446 FT_FREE( outline->contours ); in FT_EXPORT_DEF()
545 last = outline->contours[n]; in FT_Outline_Reverse()
730 (outline)->contours[c - 1] + 1 \
732 (last) = (outline)->points + (outline)->contours[
[all...]
H A Dftstroke.c728 /* copy contours */ in ft_stroke_border_export()
732 FT_Short* write = outline->contours + outline->n_contours; in ft_stroke_border_export()
2077 last = (FT_UInt)outline->contours[n]; in FT_EXPORT_DEF()
/third_party/skia/third_party/externals/freetype/src/autofit/
H A Dafhints.c420 AF_Point* contour = hints->contours; in af_glyph_hints_dump_points()
831 if ( hints->contours != hints->embedded.contours ) in af_glyph_hints_done()
832 FT_FREE( hints->contours ); in af_glyph_hints_done()
881 /* first of all, reallocate the contours array if necessary */ in FT_LOCAL_DEF()
887 if ( !hints->contours ) in FT_LOCAL_DEF()
889 hints->contours = hints->embedded.contours; in FT_LOCAL_DEF()
895 if ( hints->contours == hints->embedded.contours ) in FT_LOCAL_DEF()
[all...]
H A Dafhints.h338 #define AF_CONTOURS_EMBEDDED 8 /* number of embedded contours */
354 FT_Int max_contours; /* number of allocated contours */
355 FT_Int num_contours; /* number of used contours */
356 AF_Point* contours; /* contours array */ member
369 AF_Point contours[AF_CONTOURS_EMBEDDED]; member
H A Daflatin.c515 last = outline.contours[nn]; in af_latin_metrics_init_blues()
517 /* Avoid single-point contours since they are never */ in af_latin_metrics_init_blues()
1529 /* Walk over all contours and compute its segments. */
1541 AF_Point* contour = hints->contours; in FT_LOCAL_DEF()
1925 } /* contours */ in FT_LOCAL_DEF()
2541 /* for the orientation of contours */ in af_latin_hints_compute_blue_edges()
H A Dafcjk.c429 last = outline.contours[nn]; in af_cjk_metrics_init_blues()
431 /* Avoid single-point contours since they are never rasterized. */ in af_cjk_metrics_init_blues()
794 /* Walk over all contours and compute its segments. */
/third_party/skia/src/pathops/
H A DSkPathOpsAsWinding.cpp324 SkPath reverseMarkedContours(vector<Contour>& contours, SkPathFillType fillType) { in reverseMarkedContours() argument
331 for (const Contour& contour : contours) { in reverseMarkedContours()
389 // count contours in AsWinding()
390 vector<Contour> contours; // one per contour in AsWinding() local
392 winder.contourBounds(&contours); in AsWinding()
393 if (contours.size() <= 1) { in AsWinding()
398 for (auto& contour : contours) { in AsWinding()
421 *result = winder.reverseMarkedContours(contours, fillType); in AsWinding()
/third_party/skia/src/gpu/geometry/
H A DGrTriangulator.h62 // 1) Linearize the path contours into piecewise linear segments:
63 void pathToContours(float tolerance, const SkRect& clipBounds, VertexList* contours,
67 void contoursToMesh(VertexList* contours, int contourCnt, VertexList* mesh,
167 void sanitizeContours(VertexList* contours, int contourCnt) const;
169 void buildEdges(VertexList* contours, int contourCnt, VertexList* mesh,
171 Poly* contoursToPolys(VertexList* contours, int contourCnt) const;
256 * Vertices are used in three ways: first, the path contours are converted into a
259 * in Y) using the same fPrev/fNext pointers that were used for the contours, to avoid
280 Vertex* fPrev; // Linked list of contours, then Y-sorted vertices.
H A DGrTriangulator.cpp523 // Stage 1: convert the input path to a set of linear contours (linked list of Vertices).
526 VertexList* contours, bool* isLinear) const { in pathToContours()
530 VertexList* contour = contours; in pathToContours()
536 this->appendPointToContour(quad[i], contours); in pathToContours()
1105 void GrTriangulator::sanitizeContours(VertexList* contours, int contourCnt) const { in sanitizeContours() argument
1106 for (VertexList* contour = contours; contourCnt > 0; --contourCnt, ++contour) { in sanitizeContours()
1159 // Stage 2: convert the contours to a mesh of edges connecting the vertices.
1161 void GrTriangulator::buildEdges(VertexList* contours, int contourCnt, VertexList* mesh, in buildEdges() argument
1163 for (VertexList* contour = contours; contourCnt > 0; --contourCnt, ++contour) { in buildEdges()
1469 void GrTriangulator::contoursToMesh(VertexList* contours, in argument
525 pathToContours(float tolerance, const SkRect& clipBounds, VertexList* contours, bool* isLinear) const pathToContours() argument
1504 contoursToPolys(VertexList* contours, int contourCnt) const contoursToPolys() argument
[all...]
/third_party/skia/third_party/externals/freetype/src/truetype/
H A Dttgload.c347 FT_TRACE5(( " # of contours: %d\n", loader->n_contours )); in FT_CALLBACK_DEF()
378 /* check that we can add the contours to the glyph */ in FT_CALLBACK_DEF()
383 /* reading the contours' endpoints & number of points */ in FT_CALLBACK_DEF()
384 cont = gloader->current.outline.contours; in FT_CALLBACK_DEF()
387 /* check space for contours array + instructions count */ in FT_CALLBACK_DEF()
404 /* unordered contours: this is invalid */ in FT_CALLBACK_DEF()
812 zone->contours = (FT_UShort*)load->outline.contours + start_contour; in tt_prepare_zone()
1765 short contours[4] = { 0, 1, 2, 3 }; in load_truetype_glyph() local
1786 outline.contours in load_truetype_glyph()
1954 short* contours = NULL; load_truetype_glyph() local
[all...]
H A Dttobjs.c77 FT_FREE( zone->contours ); in tt_glyphzone_done()
106 * The capacity of glyph zone in contours.
131 FT_NEW_ARRAY( zone->contours, maxContours ) ) in FT_LOCAL_DEF()
H A Dttinterp.c5659 start = (FT_UShort)( exc->zp2.contours[contour - 1] + 1 - in Ins_SHC()
5666 limit = (FT_UShort)( exc->zp2.contours[contour] - in Ins_SHC()
5706 /* Twilight zone has no real contours, so use `n_points'. */ in Ins_SHZ()
5712 limit = (FT_UShort)( exc->zp2.contours[exc->zp2.n_contours - 1] + 1 ); in Ins_SHZ()
7066 end_point = exc->pts.contours[contour] - exc->pts.first_point; in Ins_IUP()
7811 /* contours, in the `glyf' table) of a glyph, and such iterations */ in FT_EXPORT_DEF()
H A Dttgxvar.c3751 end_point = outline->contours[contour]; in tt_interpolate_deltas()
/third_party/skia/third_party/externals/freetype/src/psaux/
H A Dpsobjs.c1716 outline->contours[outline->n_contours - 1] = in FT_LOCAL_DEF()
1763 ? 0 : outline->contours[outline->n_contours - 2] + 1; in t1_builder_close_contour()
1791 /* Don't add contours only consisting of one point, i.e., */ in t1_builder_close_contour()
1799 outline->contours[outline->n_contours - 1] = in t1_builder_close_contour()
1998 outline->contours[outline->n_contours - 1] = in FT_LOCAL_DEF()
2042 ? 0 : outline->contours[outline->n_contours - 2] + 1; in cff_builder_close_contour()
2070 /* Don't add contours only consisting of one point, i.e., */ in cff_builder_close_contour()
2078 outline->contours[outline->n_contours - 1] = in cff_builder_close_contour()
2306 outline->contours[outline->n_contours - 1] = in FT_LOCAL_DEF()
2350 ? 0 : outline->contours[outlin in ps_builder_close_contour()
[all...]
/third_party/skia/third_party/externals/freetype/src/pshinter/
H A Dpshalgo.c941 if ( glyph->contours[n].count < 4 ) in psh_glyph_compute_inflections()
945 first = glyph->contours[n].start; in psh_glyph_compute_inflections()
1044 FT_FREE( glyph->contours ); in psh_glyph_done()
1169 /* allocate and setup points + contours arrays */ in psh_glyph_init()
1171 FT_NEW_ARRAY( glyph->contours, outline->n_contours ) ) in psh_glyph_init()
1180 PSH_Contour contour = glyph->contours; in psh_glyph_init()
1189 next = (FT_UInt)outline->contours[n] + 1; in psh_glyph_init()
1297 PSH_Point first = glyph->contours[n].start; in psh_glyph_compute_extrema()
1301 if ( glyph->contours[n].count == 0 ) in psh_glyph_compute_extrema()
1921 PSH_Contour contour = glyph->contours; in psh_glyph_interpolate_other_points()
[all...]
H A Dpshalgo.h191 PSH_Contour contours; member
/third_party/skia/third_party/externals/freetype/include/freetype/
H A Dftimage.h293 * The number of contours in the outline.
319 * contours ::
322 * defined by the points '0' to `contours[0]`, the second one is
323 * defined by the points `contours[0]+1` to `contours[1]`, etc.
338 short n_contours; /* number of contours in glyph */
343 short* contours; /* the contour end points */ member
372 * `points`, `flags`, and `contours`) are 'owned' by the outline
381 * By default, outside contours of an outline are oriented in
741 * contours
[all...]
/third_party/skia/third_party/externals/freetype/src/pfr/
H A Dpfrgload.c93 first = outline->contours[outline->n_contours - 1]; in pfr_glyph_close_contour()
110 /* don't add empty contours */ in pfr_glyph_close_contour()
112 outline->contours[outline->n_contours++] = (short)last; in pfr_glyph_close_contour()
/third_party/skia/third_party/externals/freetype/include/freetype/internal/
H A Dtttypes.h1667 * Max size in links contours of the zone.
1673 * The current number of contours in the zone.
1684 * contours ::
1685 * The contours end points.
1696 FT_Short n_contours; /* number of contours */
1703 FT_UShort* contours; /* contour end points */ member
/third_party/skia/third_party/externals/freetype/src/raster/
H A Dftraster.c2000 (UShort)ras.outline.contours[i], in Convert_Glyph()
2004 start = (UShort)ras.outline.contours[i] + 1; in Convert_Glyph()
3247 if ( !outline->contours || !outline->points ) in ft_black_render()
3251 outline->contours[outline->n_contours - 1] + 1 ) in ft_black_render()
/third_party/skia/third_party/externals/freetype/src/smooth/
H A Dftgrays.c1626 * of new contours in the outline.
1690 last = outline->contours[n]; in FT_Outline_Decompose()
2066 if ( !outline->contours || !outline->points ) in gray_raster_render()
2070 outline->contours[outline->n_contours - 1] + 1 ) in gray_raster_render()

Completed in 54 milliseconds