Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 1005) sorted by relevance

12345678910>>...41

/third_party/ffmpeg/libavfilter/
Dvf_lenscorrection.c79 LenscorrectionCtx *rect = ctx->priv; \
84 const int32_t *correction = rect->correction[plane]; \
85 const int fill_color = rect->fill_color[plane]; \
86 const int w = rect->planewidth[plane], h = rect->planeheight[plane]; \
87 const int xcenter = rect->cx * w; \
88 const int ycenter = rect->cy * h; \
118 LenscorrectionCtx *rect = ctx->priv; \
123 const int32_t *correction = rect->correction[plane]; \
124 const int fill_color = rect->fill_color[plane]; \
125 const int depth = rect->depth; \
[all …]
/third_party/skia/tests/
DPathOpsAsWindingTest.cpp12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPathDirection dir) { in build_squircle() argument
17 path.addRect(rect, dir); in build_squircle()
21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle()
23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle()
25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle()
32 SkScalar aX14 = rect.fLeft + rect.width() * 1 / 4; in build_squircle()
33 SkScalar aX34 = rect.fLeft + rect.width() * 3 / 4; in build_squircle()
[all …]
DPathOpsDRectTest.cpp31 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, rect2; in DEF_TEST() local
[all …]
DGrClipStackTest.cpp113 ElementsBuilder& rect(const SkRect& rect) { in rect() argument
114 return this->rect(rect, fLocalToDevice, fAA, fOp); in rect()
116 ElementsBuilder& rect(const SkRect& rect, GrAA aa, SkClipOp op) { in rect() function in __anonc2b7df300111::ElementsBuilder
117 return this->rect(rect, fLocalToDevice, aa, op); in rect()
119 ElementsBuilder& rect(const SkRect& rect, const SkMatrix& m, GrAA aa, SkClipOp op) { in rect() argument
120 fElements->push_back({GrShape(rect), m, op, aa}); in rect()
263 elementBounds = GrClip::GetPixelIBounds(e.fShape.rect(), e.fAA, in getOptimalBounds()
286 return a.fShape.rect() == b.fShape.rect(); in compare_elements()
322 cs.clipRect(e.fLocalToDevice, e.fShape.rect(), e.fAA, e.fOp); in run()
524 .rect(fracRect1).rect(fracRect2) in DEF_TEST()
[all …]
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_rect.h92 bool operator== (const dng_rect &rect) const;
94 bool operator!= (const dng_rect &rect) const
96 return !(*this == rect);
251 dng_rect_real64 (const dng_rect &rect) in dng_rect_real64() argument
252 : t ((real64) rect.t) in dng_rect_real64()
253 , l ((real64) rect.l) in dng_rect_real64()
254 , b ((real64) rect.b) in dng_rect_real64()
255 , r ((real64) rect.r) in dng_rect_real64()
264 bool operator== (const dng_rect_real64 &rect) const;
266 bool operator!= (const dng_rect_real64 &rect) const
[all …]
/third_party/lzma/CPP/Windows/Control/
DDialog.cpp125 static bool GetWorkAreaRect(RECT *rect, HWND hwnd) in GetWorkAreaRect() argument
146 *rect = mi.rcWork; in GetWorkAreaRect()
158 return BOOLToBool(::SystemParametersInfo(SPI_GETWORKAREA, 0, rect, 0)); in GetWorkAreaRect()
169 RECT rect; in IsDialogSizeOK() local
170 GetWorkAreaRect(&rect, hwnd); in IsDialogSizeOK()
171 const int wx = RECT_SIZE_X(rect); in IsDialogSizeOK()
172 const int wy = RECT_SIZE_Y(rect); in IsDialogSizeOK()
182 RECT rect; in GetMargins() local
183 rect.left = 0; in GetMargins()
184 rect.top = 0; in GetMargins()
[all …]
/third_party/skia/third_party/externals/libwebp/examples/
Dgifdec.c119 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.height, &sub_image)) { in GIFReadFrame()
135 rect.width, rect.height, rect.x_offset, rect.y_offset); in GIFReadFrame()
140 tmp = (uint8_t*)WebPMalloc(rect.width * sizeof(*tmp)); in GIFReadFrame()
153 for (; y < rect.height; y += interlace_jumps[pass], row += jump) { in GIFReadFrame()
154 if (DGifGetLine(gif, tmp, rect.width) == GIF_ERROR) goto End; in GIFReadFrame()
[all …]
/third_party/skia/samplecode/
DSampleClock.cpp42 SkRect rect; in onDrawContent() local
44 rect = SkRect::MakeLTRB(200-4, -4, 240+4, 4); in onDrawContent()
47 rrect.setRectRadii(rect, radii); in onDrawContent()
68 rect = SkRect::MakeLTRB(231.5f, -2.5f, 242.5, 2.5f); in onDrawContent()
73 rrect.setRectRadii(rect, radii); in onDrawContent()
108 rect = SkRect::MakeLTRB(-20-7, -7, 80+7, 7); in onDrawContent()
113 rrect.setRectRadii(rect, radii); in onDrawContent()
129 rect = SkRect::MakeLTRB(-56-5, -5, 224+5, 5); in onDrawContent()
134 rrect.setRectRadii(rect, radii); in onDrawContent()
151 rect = SkRect::MakeLTRB(-60-3, -3, 166+3, 3); in onDrawContent()
[all …]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_rect.c72 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() argument
210 assert(rect->box.x0 <= ix * TILE_SIZE); in partial()
211 assert(rect->box.y0 <= iy * TILE_SIZE); in partial()
212 assert(rect->box.x1 >= (ix+1) * TILE_SIZE - 1); in partial()
[all …]
Dlp_rast_rect.c89 const struct lp_rast_rectangle *rect, in full() argument
94 &rect->inputs, in full()
101 const struct lp_rast_rectangle *rect, in partial() argument
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() argument
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->inputs.disable) { in lp_rast_rectangle()
[all …]
/third_party/skia/third_party/externals/libwebp/src/mux/
Danim_encode.c209 const FrameRectangle* const rect) { in WebPUtilClearPic() argument
210 if (rect != NULL) { in WebPUtilClearPic()
211 ClearRectangle(picture, rect->x_offset_, rect->y_offset_, in WebPUtilClearPic()
212 rect->width_, rect->height_); in WebPUtilClearPic()
400 static int IsEmptyRect(const FrameRectangle* const rect) { in IsEmptyRect() argument
401 return (rect->width_ == 0) || (rect->height_ == 0); in IsEmptyRect()
413 FrameRectangle* const rect, in MinimizeChangeRectangle() argument
423 assert(rect->x_offset_ + rect->width_ <= dst->width); in MinimizeChangeRectangle()
424 assert(rect->y_offset_ + rect->height_ <= dst->height); in MinimizeChangeRectangle()
427 for (i = rect->x_offset_; i < rect->x_offset_ + rect->width_; ++i) { in MinimizeChangeRectangle()
[all …]
/third_party/skia/experimental/graphite/src/geom/
DIntersectionTree.cpp25 bool intersects(Rect rect) override { in intersects() argument
26 if (GetLoVal(rect) < fSplitCoord && fLo->intersects(rect)) { in intersects()
29 if (GetHiVal(rect) > fSplitCoord && fHi->intersects(rect)) { in intersects()
35 Node* addNonIntersecting(Rect rect, SkArenaAlloc* arena) override { in addNonIntersecting() argument
36 if (GetLoVal(rect) < fSplitCoord) { in addNonIntersecting()
37 fLo = fLo->addNonIntersecting(rect, arena); in addNonIntersecting()
39 if (GetHiVal(rect) > fSplitCoord) { in addNonIntersecting()
40 fHi = fHi->addNonIntersecting(rect, arena); in addNonIntersecting()
46 SK_ALWAYS_INLINE static float GetLoVal(const Rect& rect) { in GetLoVal() argument
47 return (kSplitType == SplitType::kX) ? rect.left() : rect.top(); in GetLoVal()
[all …]
/third_party/skia/src/utils/mac/
DSkCGGeometry.h27 static inline bool SkCGRectIsEmpty(const CGRect& rect) { in SkCGRectIsEmpty() argument
28 return rect.size.width <= 0 || rect.size.height <= 0; in SkCGRectIsEmpty()
31 static inline CGFloat SkCGRectGetMinX(const CGRect& rect) { in SkCGRectGetMinX() argument
32 return rect.origin.x; in SkCGRectGetMinX()
35 static inline CGFloat SkCGRectGetMaxX(const CGRect& rect) { in SkCGRectGetMaxX() argument
36 return rect.origin.x + rect.size.width; in SkCGRectGetMaxX()
39 static inline CGFloat SkCGRectGetMinY(const CGRect& rect) { in SkCGRectGetMinY() argument
40 return rect.origin.y; in SkCGRectGetMinY()
43 static inline CGFloat SkCGRectGetMaxY(const CGRect& rect) { in SkCGRectGetMaxY() argument
44 return rect.origin.y + rect.size.height; in SkCGRectGetMaxY()
[all …]
/third_party/skia/docs/examples/
DIRect_makeOutset.cpp7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeOutset(15, 32); in draw()
11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_makeOutset.cpp7 SkRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeOutset(15, 32); in draw()
11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_makeInset.cpp7 SkRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeInset(15, 32); in draw()
11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DIRect_makeInset.cpp7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeInset(15, 32); in draw()
11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DIRect_makeOffset.cpp7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeOffset(15, 32); in draw()
11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_makeOffset.cpp7 SkRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeOffset(15, 32); in draw()
11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_setXYWH.cpp7 SkRect rect; in draw() local
8 rect.setXYWH(5, 35, -15, 25); in draw()
9 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
10 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
11 rect.sort(); in draw()
12 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
13 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_setWH.cpp7 SkRect rect; in draw() local
8 rect.setWH(-15, 25); in draw()
9 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
10 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
11 rect.sort(); in draw()
12 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
13 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DIRect_setXYWH.cpp7 SkIRect rect; in draw() local
8 rect.setXYWH(5, 35, -15, 25); in draw()
9 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
10 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
11 rect.sort(); in draw()
12 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
13 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_isSorted.cpp8 for (auto rect : tests) { in draw() local
9 SkDebugf("rect: {%g, %g, %g, %g} is" "%s sorted\n", rect.left(), rect.top(), rect.right(), in draw()
10 rect.bottom(), rect.isSorted() ? "" : " not"); in draw()
11 rect.sort(); in draw()
12 SkDebugf("sorted: {%g, %g, %g, %g} is" "%s sorted\n", rect.left(), rect.top(), rect.right(), in draw()
13 rect.bottom(), rect.isSorted() ? "" : " not"); in draw()
/third_party/skia/tests/graphite/
DRectTest.cpp17 const Rect rect = skRect; in DEF_GRAPHITE_TEST() local
18 CHECK(rect == rect); in DEF_GRAPHITE_TEST()
19 CHECK(rect == skRect); // promotes 'skRect' to a Rect for == in DEF_GRAPHITE_TEST()
20 CHECK(rect.asSkRect() == skRect); // converts 'rect' to SkRect for == in DEF_GRAPHITE_TEST()
34 CHECK((rect2 == rect) == (rect == rect2)); in DEF_GRAPHITE_TEST()
35 CHECK((rect2 != rect) == (rect != rect2)); in DEF_GRAPHITE_TEST()
36 CHECK((rect != rect2) == !(rect == rect2)); in DEF_GRAPHITE_TEST()
82 CHECK(rect.intersects(rect2) == rect2.intersects(rect)); in DEF_GRAPHITE_TEST()
83 CHECK(rect.intersects(rect2) == skRect.intersects(skRect2)); in DEF_GRAPHITE_TEST()
84 CHECK(rect.contains(rect2) == skRect.contains(skRect2)); in DEF_GRAPHITE_TEST()
[all …]
/third_party/ffmpeg/libavcodec/
Dxsubdec.c55 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->nb_colors = 4; in decode_frame()
114 rect->data[1] = av_mallocz(AVPALETTE_SIZE); in decode_frame()
115 if (!rect->data[0] || !rect->data[1]) in decode_frame()
[all …]

12345678910>>...41