/third_party/skia/experimental/graphite/src/ |
H A D | Device.cpp | 188 const SkPoint* points, const SkPaint& paint) { in drawPoints() 194 SkRect pointRect = SkRect::MakeLTRB(points[i].fX - radius, points[i].fY - radius, in drawPoints() 195 points[i].fX + radius, points[i].fY + radius); in drawPoints() 208 this->drawShape(Shape(points[i], points[(i + 1) % count]), paint, stroke); in drawPoints() 187 drawPoints(SkCanvas::PointMode mode, size_t count, const SkPoint* points, const SkPaint& paint) drawPoints() argument
|
/third_party/skia/gm/ |
H A D | convex_all_line_paths.cpp | 70 { 5.0f, -25.0f }, // remove if collinear diagonal points are not concave 72 { 5.0f, 25.0f }, // remove if collinear diagonal points are not concave 188 const SkPoint* points; in GetPath() local 192 points = ConvexLineOnlyData::gPoints[index]; in GetPath() 236 points = data.get(); in GetPath() 242 builder.moveTo(points[0]); in GetPath() 244 builder.lineTo(points[i]); in GetPath() 247 builder.moveTo(points[numPts-1]); in GetPath() 249 builder.lineTo(points[i]); in GetPath()
|
H A D | testgradient.cpp | 47 SkPoint points[2] = { variable 54 points, colors, nullptr, 2, SkTileMode::kClamp));
|
H A D | drawregionmodes.cpp | 78 SkPoint points[] = { SkPoint::Make(50.0f, 50.0f), SkPoint::Make(150.0f, 150.0f) }; variable 80 paint.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 2,
|
H A D | hardstop_gradients_many.cpp | 48 static constexpr SkPoint points[] = { variable 71 auto shader = SkGradientShader::MakeLinear(points,
|
H A D | skbug_257.cpp | 52 font.getPos(rec.glyphs, count, rec.points(), {x, y}); in exercise_draw_pos_text() 115 SkPoint points[8] = {{size / 2, 8 + translate}, in DEF_SIMPLE_GM() local 126 canvas->drawPoints(SkCanvas::kLines_PointMode, 8, points, checker); in DEF_SIMPLE_GM() 132 // reference points (without the huge translations). in DEF_SIMPLE_GM()
|
/third_party/python/Doc/includes/ |
H A D | minidom-example.py | 50 def handlePoints(points): 52 for point in points:
|
/third_party/skia/docs/examples/ |
H A D | Dither_b.cpp | 11 SkPoint points[] = {{0, 0}, {20, 0}}; in REG_FIDDLE() local 15 points, colors, nullptr, SK_ARRAY_COUNT(colors), in REG_FIDDLE()
|
H A D | not_path_gradient.cpp | 19 SkPoint points[2] = {SkPoint::Make(0.0f, 0.0f), SkPoint::Make(256.0f, 256.0f)}; in REG_FIDDLE() local 24 SkGradientShader::MakeLinear(points, colors, NULL, 2, SkTileMode::kClamp, 0, NULL)); in REG_FIDDLE()
|
H A D | shader.cpp | 19 SkPoint points[2] = {SkPoint::Make(0.0f, 0.0f), SkPoint::Make(256.0f, 256.0f)}; in REG_FIDDLE() local 22 SkGradientShader::MakeLinear(points, colors, NULL, 2, SkTileMode::kClamp, 0, NULL)); in REG_FIDDLE()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_curves.c | 99 { "master","set master points coordinates",OFFSET(comp_points_str[NB_COMP]), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 100 { "m", "set master points coordinates",OFFSET(comp_points_str[NB_COMP]), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 101 { "red", "set red points coordinates", OFFSET(comp_points_str[0]), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 102 { "r", "set red points coordinates", OFFSET(comp_points_str[0]), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 103 { "green", "set green points coordinates", OFFSET(comp_points_str[1]), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 104 { "g", "set green points coordinates", OFFSET(comp_points_str[1]), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 105 { "blue", "set blue points coordinates", OFFSET(comp_points_str[2]), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 106 { "b", "set blue points coordinates", OFFSET(comp_points_str[2]), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 107 { "all", "set points coordinates for all components", OFFSET(comp_points_str_all), AV_OPT_TYPE_STRING, {.str=NULL}, .flags = FLAGS }, 157 static int parse_points_str(AVFilterContext *ctx, struct keypoint **points, cons argument 219 interpolate(void *log_ctx, uint16_t *y, const struct keypoint *points, int nbits) interpolate() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/pfr/ |
H A D | pfrgload.c | 99 FT_Vector* p1 = outline->points + first; in pfr_glyph_close_contour() 100 FT_Vector* p2 = outline->points + last; in pfr_glyph_close_contour() 149 outline->points[n] = *to; in pfr_glyph_line_to() 182 FT_Vector* vec = outline->points + outline->n_points; in pfr_glyph_curve_to() 786 /* translate and eventually scale the new glyph points */ in pfr_glyph_load_rec() 789 FT_Vector* vec = base->points + old_points; in pfr_glyph_load_rec() 802 FT_Vector* vec = loader->base.outline.points + old_points; in pfr_glyph_load_rec()
|
/third_party/skia/src/core/ |
H A D | SkPath.cpp | 52 * Path.bounds is defined to be the bounds of all the control points. 88 avoiding the need to revisit all of the points in getBounds(). 128 Stores the verbs and points as they are given to us, with exceptions: 391 const SkPoint* pts = fPathRef->points(); in isLine() 421 The path contains fewer than four points. 430 Single points on the rectangle side. 454 const SkPoint* pts = fPathRef->points(); in isRect() 476 sk_careful_memcpy(dst, fPathRef->points(), count * sizeof(SkPoint)); in getPoints() 867 // Return the unit vectors pointing at the start/stop points for the given start/sweep angles 941 // degenerate(rect) => radii points ar in addRRect() 1954 SkPoint points[4]; dump() local 2293 const SkPoint* points = fPathRef->points(); computeConvexity() local [all...] |
H A D | SkPathPriv.h | 148 * Iterates through a raw range of path verbs, points, and conics. All values are returned 156 * Iterable object for traversing verbs, points, and conic weights in a path: 166 // Don't allow iteration through non-finite points. in Iterate() 169 path.fPathRef->points(), path.fPathRef->conicWeights()) { in Iterate() 171 Iterate(const uint8_t* verbsBegin, const uint8_t* verbsEnd, const SkPoint* points, in Iterate() 173 : fVerbsBegin(verbsBegin), fVerbsEnd(verbsEnd), fPoints(points), fWeights(weights) { in Iterate() 191 /** Returns a raw pointer to the path points */ 193 return path.fPathRef->points(); in PointData() 293 // Returns number of valid points for each SkPath::Iter verb 309 // Returns number of valid points fo [all...] |
/third_party/skia/third_party/externals/freetype/src/sfnt/ |
H A D | sfwoff2.c | 520 /* Store decoded points in glyph buffer. */ 523 const WOFF2_Point points, in store_points() 546 const WOFF2_PointRec point = points[i]; in store_points() 620 FT_Int dx = points[i].x - last_x; in store_points() 621 FT_Int dy = points[i].y - last_y; in store_points() 658 const WOFF2_Point points, in compute_bbox() 675 x_min = points[0].x; in compute_bbox() 676 y_min = points[0].y; in compute_bbox() 677 x_max = points[0].x; in compute_bbox() 678 y_max = points[ in compute_bbox() 522 store_points( FT_ULong n_points, const WOFF2_Point points, FT_UShort n_contours, FT_UShort instruction_len, FT_Byte* dst, FT_ULong dst_size, FT_ULong* glyph_size ) store_points() argument 657 compute_bbox( FT_ULong n_points, const WOFF2_Point points, FT_Byte* dst, FT_UShort* src_x_min ) compute_bbox() argument 855 WOFF2_Point points = NULL; reconstruct_glyf() local [all...] |
/third_party/skia/bench/ |
H A D | HardStopGradientBench_ScaleNumHardStops.cpp | 40 SkPoint points[2] = { variable 72 fPaint.setShader(SkGradientShader::MakeLinear(points,
|
/third_party/skia/tests/ |
H A D | GeometryTest.cpp | 72 // Ensure we chop at approximately the correct points when we chop an entire list. in testChopCubic() 85 // Ensure the middle is exactly degenerate when we chop at two equal points. in testChopCubic() 326 SkPoint points[] = {{x1, y1}, {x2, y1}, {x2, y2}, {x1, y2}}; in check_cubic_around_rect() local 329 bezier[0] = points[i]; in check_cubic_around_rect() 332 bezier[1] = points[jidx]; in check_cubic_around_rect() 337 bezier[2] = points[kidx]; in check_cubic_around_rect() 340 bezier[3] = points[l]; in check_cubic_around_rect() 349 bezier[0] = points[i]; in check_cubic_around_rect() 352 bezier[1] = points[jidx]; in check_cubic_around_rect() 353 bezier[2] = points[jid in check_cubic_around_rect() [all...] |
/third_party/skia/third_party/externals/freetype/src/truetype/ |
H A D | ttgxvar.c | 123 * Read a set of points to which the following deltas will apply. 135 * The number of points read. A zero value means that 136 * all points in the glyph will be affected, without 140 * An array of FT_UShort containing the affected points or the 148 FT_UShort *points = NULL; in ft_var_readpackedpoints() local 174 FT_TRACE1(( "ft_var_readpackedpoints: number of points too large\n" )); in ft_var_readpackedpoints() 181 if ( FT_QNEW_ARRAY( points, n + 1 ) ) in ft_var_readpackedpoints() 195 points[i++] = first; in ft_var_readpackedpoints() 201 points[i++] = first; in ft_var_readpackedpoints() 209 points[ in ft_var_readpackedpoints() 3310 FT_UShort* points; FT_LOCAL_DEF() local 3882 FT_UShort* points; FT_LOCAL_DEF() local [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftgloadr.c | 110 FT_FREE( loader->base.outline.points ); in FT_GlyphLoader_Reset() 149 current->points = FT_OFFSET( base->points, base->n_points ); in FT_GlyphLoader_Adjust_Points() 153 /* handle extra points table - if any */ in FT_GlyphLoader_Adjust_Points() 202 /* it DOESN'T change the number of points within the loader! */ 222 /* check points & tags */ in FT_BASE_DEF() 234 if ( FT_RENEW_ARRAY( base->points, old_max, new_max ) || in FT_BASE_DEF()
|
/third_party/skia/include/core/ |
H A D | SkPoint.h | 247 /** Adds offset to each SkPoint in points array with count entries. 249 @param points SkPoint array 251 @param offset vector added to points 253 static void Offset(SkPoint points[], int count, const SkVector& offset) { in Offset() 254 Offset(points, count, offset.fX, offset.fY); in Offset() 257 /** Adds offset (dx, dy) to each SkPoint in points array of length count. 259 @param points SkPoint array 261 @param dx added to fX in points 262 @param dy added to fY in points 264 static void Offset(SkPoint points[], in [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | roqvideoenc.c | 157 int *points; // Allocated together with closest_cb member 803 static void create_clusters(const AVFrame *frame, int w, int h, int *points) in create_clusters() argument 811 frame_block_to_cell(points + (l + 2*k)*6, frame->data, in create_clusters() 813 points += 24; in create_clusters() 818 int *points, int inputCount, roq_cell *results, in generate_codebook() 827 ret = avpriv_elbg_do(&enc->elbg, points, 6 * c_size, inputCount, codebook, in generate_codebook() 852 int *points = enc->points; in generate_new_codebooks() local 855 create_clusters(enc->frame_to_enc, roq->width, roq->height, points); in generate_new_codebooks() 860 if ((ret = generate_codebook(enc, points, ma in generate_new_codebooks() 817 generate_codebook(RoqEncContext *enc, int *points, int inputCount, roq_cell *results, int size, int cbsize) generate_codebook() argument [all...] |
/third_party/skia/modules/canvaskit/ |
H A D | interface.js | 133 // points is a 1d array of length 2n representing n points where the even indices 136 CanvasKit.Path.prototype.addPoly = function(points, close) { 137 var ptr = copy1dArray(points, 'HEAPF32'); 138 this._addPoly(ptr, points.length / 2, close); 139 freeArraysThatAreNotMallocedByUsers(ptr, points); 156 CanvasKit.Path.prototype.addVerbsPointsWeights = function(verbs, points, weights) { 158 var pointsPtr = copy1dArray(points, 'HEAPF32'); 161 this._addVerbsPointsWeights(verbsPtr, verbs.length, pointsPtr, points.length, 164 freeArraysThatAreNotMallocedByUsers(pointsPtr, points); [all...] |
/third_party/python/Lib/encodings/ |
H A D | punycode.py | 111 for points, delta in enumerate(deltas): 114 bias = adapt(delta, points==0, baselen+points+1)
|
/third_party/skia/samplecode/ |
H A D | SampleStrokeVerb.cpp | 132 void doClick(SkPoint points[]) { in doClick() argument 134 points[fPtIdx] += fCurr - fPrev; in doClick() 137 points[i] += fCurr - fPrev; in doClick()
|
/third_party/openssl/test/ |
H A D | ectest.c | 79 const EC_POINT *points[6]; in group_order_tests() local 118 points[0] = points[1] = P; in group_order_tests() 120 if (!TEST_true(EC_POINTs_mul(group, R, NULL, 2, points, scalars, ctx)) in group_order_tests() 121 || !TEST_true(EC_POINT_dbl(group, S, points[0], ctx)) in group_order_tests() 126 points[0] = Q; /* => infinity */ in group_order_tests() 128 points[1] = P; /* => -P */ in group_order_tests() 130 points[2] = Q; /* => infinity */ in group_order_tests() 132 points[3] = Q; /* => infinity */ in group_order_tests() 134 points[ in group_order_tests() 167 const EC_POINT *points[4]; prime_field_tests() local 788 const EC_POINT *points[3]; char2_curve_test() local [all...] |