/third_party/skia/docs/examples/ |
H A D | Rect_setBoundsCheck.cpp | 9 SkRect rect; in REG_FIDDLE() local 10 bool success = rect.setBoundsCheck(points, count); in REG_FIDDLE() 16 SkDebugf("count: %d rect: %g, %g, %g, %g success: %s\n", count, in REG_FIDDLE() 17 rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, success ? "true" : "false"); in REG_FIDDLE()
|
H A D | Rect_setBoundsNoCheck.cpp | 9 SkRect rect; in REG_FIDDLE() local 10 rect.setBoundsNoCheck(points, count); in REG_FIDDLE() 16 SkDebugf("count: %d rect: %g, %g, %g, %g\n", count, in REG_FIDDLE() 17 rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
|
H A D | Rect_setBounds.cpp | 9 SkRect rect; in REG_FIDDLE() local 10 rect.setBounds(points, count); in REG_FIDDLE() 16 SkDebugf("count: %d rect: %g, %g, %g, %g\n", count, in REG_FIDDLE() 17 rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
|
H A D | Rect_makeSorted.cpp | 7 SkRect rect = { 30.5f, 50.5f, 20.5f, 10.5f }; in REG_FIDDLE() local 8 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE() 9 SkRect sort = rect.makeSorted(); in REG_FIDDLE()
|
H A D | Rect_MakeSize.cpp | 8 SkRect rect = SkRect::MakeSize(size); in REG_FIDDLE() local 9 SkDebugf("rect width: %g height: %g\n", rect.width(), rect.height()); in REG_FIDDLE() 11 rect = SkRect::MakeSize(SkSize::Make(floor)); in REG_FIDDLE() 12 SkDebugf("floor width: %g height: %g\n", rect.width(), rect.height()); in REG_FIDDLE()
|
H A D | Rect_toQuad.cpp | 7 SkRect rect = {1, 2, 3, 4}; in REG_FIDDLE() local 9 rect.toQuad(corners); in REG_FIDDLE() 10 SkDebugf("rect: {%g, %g, %g, %g}\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
|
H A D | Rect_contains_3.cpp | 7 SkRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local 10 SkDebugf("rect: (%g, %g, %g, %g) %s (%d, %d, %d, %d)\n", in REG_FIDDLE() 11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE() 12 rect.contains(contained) ? "contains" : "does not contain", in REG_FIDDLE()
|
H A D | Rect_contains_2.cpp | 7 SkRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local 10 SkDebugf("rect: (%g, %g, %g, %g) %s (%g, %g, %g, %g)\n", in REG_FIDDLE() 11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE() 12 rect.contains(contained) ? "contains" : "does not contain", in REG_FIDDLE()
|
H A D | Rect_contains.cpp | 7 SkRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local 10 SkDebugf("rect: (%g, %g, %g, %g) %s (%g, %g)\n", in REG_FIDDLE() 11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE() 12 rect.contains(contained.x(), contained.y()) ? "contains" : "does not contain", in REG_FIDDLE()
|
H A D | IRect_MakeSize.cpp | 8 SkIRect rect = SkIRect::MakeSize(size.toRound()); in REG_FIDDLE() local 9 SkDebugf("round width: %d height: %d\n", rect.width(), rect.height()); in REG_FIDDLE() 10 rect = SkIRect::MakeSize(size.toFloor()); in REG_FIDDLE() 11 SkDebugf("floor width: %d height: %d\n", rect.width(), rect.height()); in REG_FIDDLE()
|
H A D | IRect_makeSorted.cpp | 7 SkIRect rect = { 30, 50, 20, 10 }; in REG_FIDDLE() local 8 SkDebugf("rect: %d, %d, %d, %d\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE() 9 SkIRect sort = rect.makeSorted(); in REG_FIDDLE()
|
H A D | IRect_containsNoEmptyCheck.cpp | 7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local 10 bool success = rect.containsNoEmptyCheck( in REG_FIDDLE() 12 SkDebugf("rect: (%d, %d, %d, %d) %s (%d, %d, %d, %d)\n", in REG_FIDDLE() 13 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE()
|
H A D | IRect_containsNoEmptyCheck_2.cpp | 7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local 10 SkDebugf("rect: (%d, %d, %d, %d) %s (%d, %d, %d, %d)\n", in REG_FIDDLE() 11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE() 12 rect.containsNoEmptyCheck(contained) ? "contains" : "does not contain", in REG_FIDDLE()
|
H A D | IRect_contains_4.cpp | 7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local 10 SkDebugf("rect: (%d, %d, %d, %d) %s (%g, %g, %g, %g)\n", in REG_FIDDLE() 11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE() 12 rect.contains(contained) ? "contains" : "does not contain", in REG_FIDDLE()
|
H A D | IRect_contains_3.cpp | 7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local 10 SkDebugf("rect: (%d, %d, %d, %d) %s (%d, %d, %d, %d)\n", in REG_FIDDLE() 11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE() 12 rect.contains(contained) ? "contains" : "does not contain", in REG_FIDDLE()
|
H A D | IRect_contains.cpp | 7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local 10 SkDebugf("rect: (%d, %d, %d, %d) %s (%d, %d)\n", in REG_FIDDLE() 11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE() 12 rect.contains(pt.x(), pt.y()) ? "contains" : "does not contain", pt.x(), pt.y()); in REG_FIDDLE()
|
/third_party/skia/tests/ |
H A D | CanvasStateTest.cpp | 118 SkRect rect = SkRect::MakeXYWH(SkIntToScalar(SPACER), SkIntToScalar(SPACER), in DEF_TEST() local 159 // draw a rect within the layer's bounds and again outside the layer's bounds in DEF_TEST() 160 canvas->saveLayer(SkCanvas::SaveLayerRec(&rect, paint.getMaybeNull())); in DEF_TEST() 169 rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, SPACER); in DEF_TEST() 176 complex_layers_draw(canvas, rect.fLeft, rect.fTop, in DEF_TEST() 177 rect in DEF_TEST() 260 const SkIRect& rect = iter.rect(); DEF_TEST() local [all...] |
/third_party/skia/src/gpu/ |
H A D | GrClip.h | 41 PreClipResult(SkRect rect, GrAA aa) : PreClipResult(SkRRect::MakeRect(rect), aa) {} in PreClipResult() 77 * with one exception. When 'result.fIsRRect' is true, preApply() reports the single round rect 79 * action is taken to modify the draw, apply() will represent this round rect in the applied 114 * @param innerClipBounds device-space rect fully contained by the clip 124 * @param outerClipBounds device-space rect that contains the clip 189 * Returns true if the given rect counts as aligned with pixel boundaries. 191 static bool IsPixelAligned(const SkRect& rect) { in IsPixelAligned() argument 192 return SkScalarAbs(SkScalarRoundToScalar(rect.fLeft) - rect in IsPixelAligned() [all...] |
H A D | GrFixedClip.cpp | 13 return fScissorState.rect(); in getConservativeBounds() 18 if (!SkIRect::Intersects(fScissorState.rect(), pixelBounds)) { in preApply() 26 if (!fScissorState.enabled() || fScissorState.rect().contains(pixelBounds)) { in preApply() 30 // Report the scissor as a degenerate round rect in preApply() 31 return {SkRect::Make(fScissorState.rect()), GrAA::kNo}; in preApply() 35 if (!SkIRect::Intersects(fScissorState.rect(), *bounds)) { in apply() 40 if (fScissorState.enabled() && !fScissorState.rect().contains(*bounds)) { in apply() 41 SkAssertResult(bounds->intersect(fScissorState.rect())); in apply()
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | mt9m001.c | 98 struct v4l2_rect rect; /* Sensor window */ member 198 { MT9M001_COLUMN_START, mt9m001->rect.left }, in mt9m001_apply_selection() 199 { MT9M001_ROW_START, mt9m001->rect.top }, in mt9m001_apply_selection() 200 { MT9M001_WINDOW_WIDTH, mt9m001->rect.width - 1 }, in mt9m001_apply_selection() 202 mt9m001->rect.height + mt9m001->y_skip_top - 1 }, in mt9m001_apply_selection() 261 struct v4l2_rect rect = sel->r; in mt9m001_set_selection() local 272 rect.height = ALIGN(rect.height, 2); in mt9m001_set_selection() 275 rect.width = ALIGN(rect in mt9m001_set_selection() [all...] |
H A D | mt9m111.c | 234 struct v4l2_rect rect; /* cropping rectangle */ member 384 struct mt9m111_context *ctx, struct v4l2_rect *rect, in mt9m111_setup_rect_ctx() 388 int ret = mt9m111_reg_write(client, ctx->reducer_xzoom, rect->width); in mt9m111_setup_rect_ctx() 390 ret = mt9m111_reg_write(client, ctx->reducer_yzoom, rect->height); in mt9m111_setup_rect_ctx() 398 static int mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, in mt9m111_setup_geometry() argument 404 ret = reg_write(COLUMN_START, rect->left); in mt9m111_setup_geometry() 406 ret = reg_write(ROW_START, rect->top); in mt9m111_setup_geometry() 409 ret = reg_write(WINDOW_WIDTH, rect->width); in mt9m111_setup_geometry() 411 ret = reg_write(WINDOW_HEIGHT, rect->height); in mt9m111_setup_geometry() 417 rect, widt in mt9m111_setup_geometry() 383 mt9m111_setup_rect_ctx(struct mt9m111 *mt9m111, struct mt9m111_context *ctx, struct v4l2_rect *rect, unsigned int width, unsigned int height) mt9m111_setup_rect_ctx() argument 457 struct v4l2_rect rect = sel->r; mt9m111_set_selection() local 634 struct v4l2_rect *rect = &mt9m111->rect; mt9m111_set_fmt() local [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | mt9m001.c | 98 struct v4l2_rect rect; /* Sensor window */ member 198 { MT9M001_COLUMN_START, mt9m001->rect.left }, in mt9m001_apply_selection() 199 { MT9M001_ROW_START, mt9m001->rect.top }, in mt9m001_apply_selection() 200 { MT9M001_WINDOW_WIDTH, mt9m001->rect.width - 1 }, in mt9m001_apply_selection() 202 mt9m001->rect.height + mt9m001->y_skip_top - 1 }, in mt9m001_apply_selection() 262 struct v4l2_rect rect = sel->r; in mt9m001_set_selection() local 273 rect.height = ALIGN(rect.height, 2); in mt9m001_set_selection() 276 rect.width = ALIGN(rect in mt9m001_set_selection() [all...] |
H A D | mt9m111.c | 233 struct v4l2_rect rect; /* cropping rectangle */ member 383 struct mt9m111_context *ctx, struct v4l2_rect *rect, in mt9m111_setup_rect_ctx() 387 int ret = mt9m111_reg_write(client, ctx->reducer_xzoom, rect->width); in mt9m111_setup_rect_ctx() 389 ret = mt9m111_reg_write(client, ctx->reducer_yzoom, rect->height); in mt9m111_setup_rect_ctx() 397 static int mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, in mt9m111_setup_geometry() argument 403 ret = reg_write(COLUMN_START, rect->left); in mt9m111_setup_geometry() 405 ret = reg_write(ROW_START, rect->top); in mt9m111_setup_geometry() 408 ret = reg_write(WINDOW_WIDTH, rect->width); in mt9m111_setup_geometry() 410 ret = reg_write(WINDOW_HEIGHT, rect->height); in mt9m111_setup_geometry() 416 rect, widt in mt9m111_setup_geometry() 382 mt9m111_setup_rect_ctx(struct mt9m111 *mt9m111, struct mt9m111_context *ctx, struct v4l2_rect *rect, unsigned int width, unsigned int height) mt9m111_setup_rect_ctx() argument 456 struct v4l2_rect rect = sel->r; mt9m111_set_selection() local 633 struct v4l2_rect *rect = &mt9m111->rect; mt9m111_set_fmt() local [all...] |
/third_party/skia/include/core/ |
H A D | SkRegion.h | 52 /** Constructs a rectangular SkRegion matching the bounds of rect. 54 @param rect bounds of constructed SkRegion 59 explicit SkRegion(const SkIRect& rect); 193 /** Constructs a rectangular SkRegion matching the bounds of rect. 194 If rect is empty, constructs empty and returns false. 196 @param rect bounds of constructed SkRegion 197 @return true if rect is not empty 201 bool setRect(const SkIRect& rect); 246 /** Returns true if SkRegion intersects rect. 247 Returns false if either rect o 377 op(const SkIRect& rect, Op op) op() argument 494 const SkIRect& rect() const { return fRect; } rect() function in SkRegion::Iterator 544 const SkIRect& rect() const { return fRect; } rect() function in SkRegion::Cliperator [all...] |
/third_party/skia/src/core/ |
H A D | SkAnnotation.cpp | 28 void SkAnnotateRectWithURL(SkCanvas* canvas, const SkRect& rect, SkData* value) { in SkAnnotateRectWithURL() argument 32 canvas->drawAnnotation(rect, SkAnnotationKeys::URL_Key(), value); in SkAnnotateRectWithURL() 39 const SkRect rect = SkRect::MakeXYWH(point.x(), point.y(), 0, 0); in SkAnnotateNamedDestination() local 40 canvas->drawAnnotation(rect, SkAnnotationKeys::Define_Named_Dest_Key(), name); in SkAnnotateNamedDestination() 43 void SkAnnotateLinkToDestination(SkCanvas* canvas, const SkRect& rect, SkData* name) { in SkAnnotateLinkToDestination() argument 47 canvas->drawAnnotation(rect, SkAnnotationKeys::Link_Named_Dest_Key(), name); in SkAnnotateLinkToDestination()
|