/third_party/skia/docs/examples/ |
H A D | Rect_makeOffset.cpp | 7 SkRect rect = { 10, 50, 20, 60 }; in REG_FIDDLE() local 8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect = rect.makeOffset(15, 32); in REG_FIDDLE() 11 SkDebugf("rect in REG_FIDDLE() [all...] |
H A D | Rect_makeOutset.cpp | 7 SkRect rect = { 10, 50, 20, 60 }; in REG_FIDDLE() local 8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect = rect.makeOutset(15, 32); in REG_FIDDLE() 11 SkDebugf("rect in REG_FIDDLE() [all...] |
H A D | Rect_makeInset.cpp | 7 SkRect rect = { 10, 50, 20, 60 }; in REG_FIDDLE() local 8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect = rect.makeInset(15, 32); in REG_FIDDLE() 11 SkDebugf("rect in REG_FIDDLE() [all...] |
H A D | IRect_setXYWH.cpp | 7 SkIRect rect; in REG_FIDDLE() local 8 rect.setXYWH(5, 35, -15, 25); in REG_FIDDLE() 9 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 10 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 11 rect.sort(); in REG_FIDDLE() 12 SkDebugf("rect in REG_FIDDLE() [all...] |
H A D | IRect_makeOffset.cpp | 7 SkIRect rect = { 10, 50, 20, 60 }; in REG_FIDDLE() local 8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect = rect.makeOffset(15, 32); in REG_FIDDLE() 11 SkDebugf("rect in REG_FIDDLE() [all...] |
H A D | IRect_makeOutset.cpp | 7 SkIRect rect = { 10, 50, 20, 60 }; in REG_FIDDLE() local 8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect = rect.makeOutset(15, 32); in REG_FIDDLE() 11 SkDebugf("rect in REG_FIDDLE() [all...] |
H A D | IRect_makeInset.cpp | 7 SkIRect rect = { 10, 50, 20, 60 }; in REG_FIDDLE() local 8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect = rect.makeInset(15, 32); in REG_FIDDLE() 11 SkDebugf("rect in REG_FIDDLE() [all...] |
H A D | Rect_isEmpty.cpp | 8 for (auto rect : tests) { in REG_FIDDLE() 9 SkDebugf("rect: {%g, %g, %g, %g} is" "%s empty\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 10 rect.bottom(), rect.isEmpty() ? "" : " not"); in REG_FIDDLE() 11 rect.sort(); in REG_FIDDLE() 12 SkDebugf("sorted: {%g, %g, %g, %g} is" "%s empty\n", rect.left(), rect in REG_FIDDLE() [all...] |
H A D | Rect_MakeXYWH.cpp | 7 SkRect rect = SkRect::MakeXYWH(5, 35, -15, 25); in REG_FIDDLE() local 8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect.sort(); in REG_FIDDLE() 11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect in REG_FIDDLE() [all...] |
H A D | Rect_MakeLTRB.cpp | 7 SkRect rect = SkRect::MakeLTRB(5, 35, 15, 25); in REG_FIDDLE() local 8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect.sort(); in REG_FIDDLE() 11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect in REG_FIDDLE() [all...] |
H A D | Rect_isSorted.cpp | 8 for (auto rect : tests) { in REG_FIDDLE() 9 SkDebugf("rect: {%g, %g, %g, %g} is" "%s sorted\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 10 rect.bottom(), rect.isSorted() ? "" : " not"); in REG_FIDDLE() 11 rect.sort(); in REG_FIDDLE() 12 SkDebugf("sorted: {%g, %g, %g, %g} is" "%s sorted\n", rect.left(), rect in REG_FIDDLE() [all...] |
H A D | IRect_MakeLTRB.cpp | 7 SkIRect rect = SkIRect::MakeLTRB(5, 35, 15, 25); in REG_FIDDLE() local 8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect.sort(); in REG_FIDDLE() 11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect in REG_FIDDLE() [all...] |
H A D | IRect_isEmpty64.cpp | 8 for (auto rect : tests) { in REG_FIDDLE() 9 SkDebugf("rect: {%d, %d, %d, %d} is" "%s empty\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 10 rect.bottom(), rect.isEmpty64() ? "" : " not"); in REG_FIDDLE() 11 rect.sort(); in REG_FIDDLE() 12 SkDebugf("sorted: {%d, %d, %d, %d} is" "%s empty\n", rect.left(), rect in REG_FIDDLE() [all...] |
H A D | IRect_isEmpty.cpp | 8 for (auto rect : tests) { in REG_FIDDLE() 9 SkDebugf("rect: {%d, %d, %d, %d} is" "%s empty\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 10 rect.bottom(), rect.isEmpty() ? "" : " not"); in REG_FIDDLE() 11 rect.sort(); in REG_FIDDLE() 12 SkDebugf("sorted: {%d, %d, %d, %d} is" "%s empty\n", rect.left(), rect in REG_FIDDLE() [all...] |
H A D | IRect_MakeXYWH.cpp | 7 SkIRect rect = SkIRect::MakeXYWH(5, 35, -15, 25); in REG_FIDDLE() local 8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in REG_FIDDLE() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in REG_FIDDLE() 10 rect.sort(); in REG_FIDDLE() 11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect in REG_FIDDLE() [all...] |
H A D | IRect_size.cpp | 7 auto debugster = [](const char* prefix, const SkIRect& rect) -> void { in REG_FIDDLE() 8 SkISize size = rect.size(); in REG_FIDDLE() 10 SkDebugf("rect: %d, %d, %d, %d ", rect.left(), rect.top(), rect.right(), rect.bottom()); in REG_FIDDLE() 13 SkIRect rect = {20, 30, 40, 50}; in REG_FIDDLE() local 14 debugster("original", rect); in REG_FIDDLE() 15 rect in REG_FIDDLE() [all...] |
H A D | Rect_set_4.cpp | 9 SkRect rect; in REG_FIDDLE() local 10 rect.set(point1, point2); in REG_FIDDLE() 11 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE() 12 rect.set(point2, point1); in REG_FIDDLE() 13 SkDebugf("rect: %g, %g, %g, %g\n", rect in REG_FIDDLE() [all...] |
/third_party/skia/tests/ |
H A D | PathOpsDRectTest.cpp | 31 static void setRawBounds(const SkDQuad& quad, SkDRect* rect) { in setRawBounds() argument 32 rect->set(quad[0]); in setRawBounds() 33 rect->add(quad[1]); in setRawBounds() 34 rect->add(quad[2]); in setRawBounds() 37 static void setRawBounds(const SkDCubic& cubic, SkDRect* rect) { in setRawBounds() argument 38 rect->set(cubic[0]); in setRawBounds() 39 rect->add(cubic[1]); in setRawBounds() 40 rect->add(cubic[2]); in setRawBounds() 41 rect->add(cubic[3]); in setRawBounds() 46 SkDRect rect, rect in DEF_TEST() local [all...] |
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_setup_rect.c | 72 struct lp_rast_rectangle *rect; in lp_setup_alloc_rectangle() local 73 unsigned bytes = sizeof(*rect) + (3 * input_array_sz); in lp_setup_alloc_rectangle() 74 rect = lp_scene_alloc_aligned(scene, bytes, 16); in lp_setup_alloc_rectangle() 75 if (rect == NULL) in lp_setup_alloc_rectangle() 78 rect->inputs.stride = input_array_sz; in lp_setup_alloc_rectangle() 80 return rect; in lp_setup_alloc_rectangle() 204 const struct lp_rast_rectangle *rect, in partial() 210 assert(rect->box.x0 <= ix * TILE_SIZE); in partial() 211 assert(rect->box.y0 <= iy * TILE_SIZE); in partial() 212 assert(rect in partial() 203 partial(struct lp_setup_context *setup, const struct lp_rast_rectangle *rect, boolean opaque, unsigned ix, unsigned iy, unsigned mask) partial() argument 320 struct lp_rast_rectangle *rect = try_rect_cw() local 360 lp_setup_bin_rectangle(struct lp_setup_context *setup, struct lp_rast_rectangle *rect, boolean opaque) lp_setup_bin_rectangle() argument [all...] |
H A D | lp_rast_rect.c | 89 const struct lp_rast_rectangle *rect, in full() 94 &rect->inputs, in full() 101 const struct lp_rast_rectangle *rect, in partial() 109 full(task, rect, ix, iy); in partial() 114 &rect->inputs, in partial() 124 const struct lp_rast_rectangle *rect, in intersect_rect_and_tile() 132 assert(u_rect_test_intersection(&rect->box, box)); in intersect_rect_and_tile() 134 u_rect_find_intersection(&rect->box, box); in intersect_rect_and_tile() 151 const struct lp_rast_rectangle *rect = arg.rectangle; in lp_rast_rectangle() local 164 if (rect in lp_rast_rectangle() 88 full(struct lp_rasterizer_task *task, const struct lp_rast_rectangle *rect, unsigned ix, unsigned iy) full() argument 100 partial(struct lp_rasterizer_task *task, const struct lp_rast_rectangle *rect, unsigned ix, unsigned iy, unsigned mask) partial() argument 123 intersect_rect_and_tile(struct lp_rasterizer_task *task, const struct lp_rast_rectangle *rect, struct u_rect *box) intersect_rect_and_tile() argument [all...] |
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | rrect.h | 23 #include "base/geometry/rect.h" 40 explicit RRect(const Rect& rect) : rect_(rect) {} in RRect() argument 46 static RRect MakeRect(const Rect& rect) in MakeRect() argument 49 rrect.SetRect(rect); in MakeRect() 53 static RRect MakeRRect(const Rect& rect, const Radius& radius) in MakeRRect() argument 56 rrect.SetRectWithSimpleRadius(rect, radius.GetX().Value(), radius.GetY().Value()); in MakeRRect() 60 static RRect MakeRRect(const Rect& rect, double x, double y) in MakeRRect() argument 63 rrect.SetRectWithSimpleRadius(rect, x, y); in MakeRRect() 67 static RRect MakeOval(const Rect& rect) in MakeOval() argument 84 SetRect(const Rect& rect) SetRect() argument 94 SetRectWithSimpleRadius(const Rect& rect, double xRadius, double yRadius) SetRectWithSimpleRadius() argument 118 SetOval(const Rect& rect) SetOval() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | color_test.cpp | 43 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 in OnTestPerformance() local 47 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 49 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 62 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 in OnTestPerformance() local 66 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 67 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 85 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 in OnTestPerformance() local 89 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 90 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 102 OH_Drawing_Rect* rect in OnTestPerformance() local 119 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 136 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 152 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 164 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local [all...] |
/third_party/skia/third_party/externals/libwebp/examples/ |
H A D | gifdec.c | 119 const GIFFrameRect rect = { in GIFReadFrame() local 122 const uint64_t memory_needed = 4 * rect.width * (uint64_t)rect.height; in GIFReadFrame() 124 *gif_rect = rect; in GIFReadFrame() 127 fprintf(stderr, "Image is too large (%d x %d).", rect.width, rect.height); in GIFReadFrame() 132 if (!WebPPictureView(picture, rect.x_offset, rect.y_offset, in GIFReadFrame() 133 rect.width, rect in GIFReadFrame() 247 GIFClearPic(WebPPicture* const pic, const GIFFrameRect* const rect) GIFClearPic() argument 260 GIFDisposeFrame(GIFDisposeMethod dispose, const GIFFrameRect* const rect, const WebPPicture* const prev_canvas, WebPPicture* const curr_canvas) GIFDisposeFrame() argument 280 GIFBlendFrames(const WebPPicture* const src, const GIFFrameRect* const rect, WebPPicture* const dst) GIFBlendFrames() argument 375 GIFDisposeFrame(GIFDisposeMethod dispose, const GIFFrameRect* const rect, const struct WebPPicture* const prev_canvas, struct WebPPicture* const curr_canvas) GIFDisposeFrame() argument 385 GIFBlendFrames(const struct WebPPicture* const src, const GIFFrameRect* const rect, struct WebPPicture* const dst) GIFBlendFrames() argument 400 GIFClearPic(struct WebPPicture* const pic, const GIFFrameRect* const rect) GIFClearPic() argument [all...] |
/test/xts/acts/graphic/graphicnapidrawingtest/ |
H A D | NativeDrawingRectLargeValueTest.cpp | 45 * @tc.desc: test for get height of rect. 52 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 2160, 4096); in HWTEST_F() local 53 float height = OH_Drawing_RectGetHeight(rect); in HWTEST_F() 55 OH_Drawing_RectDestroy(rect); in HWTEST_F() 60 * @tc.desc: test for get width of rect. 67 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 2160, 4096); in HWTEST_F() local 68 float width = OH_Drawing_RectGetWidth(rect); in HWTEST_F() 70 OH_Drawing_RectDestroy(rect); in HWTEST_F() 75 * @tc.desc: test for set and get of rect. 82 OH_Drawing_Rect* rect in HWTEST_F() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | xsubdec.c | 55 AVSubtitleRect *rect; in decode_frame() local 104 sub->rects[0] = rect = av_mallocz(sizeof(*sub->rects[0])); in decode_frame() 108 rect->x = x; rect->y = y; in decode_frame() 109 rect->w = w; rect->h = h; in decode_frame() 110 rect->type = SUBTITLE_BITMAP; in decode_frame() 111 rect->linesize[0] = w; in decode_frame() 112 rect->data[0] = av_malloc(w * h); in decode_frame() 113 rect in decode_frame() [all...] |