Searched refs:rect (Results 76 - 100 of 766) sorted by relevance

1234567891011>>

/external/skia/gm/
H A Dimagefilterscropexpand.cpp77 SkRect rect = cropRect.rect(); variable
78 rect.outset(SkIntToScalar(outset),
80 SkImageFilter::CropRect bigRect(rect, SkImageFilter::CropRect::kHasAll_CropEdge);
82 Draw(canvas, checkerboard, rect, SkColorFilterImageFilter::Create(
85 Draw(canvas, checkerboard, rect, SkBlurImageFilter::Create(
88 Draw(canvas, checkerboard, rect, SkBlurImageFilter::Create(
91 Draw(canvas, checkerboard, rect, SkDilateImageFilter::Create(
94 Draw(canvas, checkerboard, rect, SkErodeImageFilter::Create(
97 Draw(canvas, checkerboard, rect, SkDropShadowImageFilte
165 Draw(SkCanvas* canvas, const SkBitmap& bitmap, const SkRect& rect, SkImageFilter* filter) argument
[all...]
H A Dinternal_links.cpp41 SkRect rect = SkRect::MakeXYWH(0, 0, SkIntToScalar(50), SkIntToScalar(20)); local
42 SkAnnotateLinkToDestination(canvas, rect, name.get());
59 SkRect rect = SkRect::MakeXYWH(x, y, local
61 canvas->drawRect(rect, paint);
H A Dpathcontourstart.cpp53 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) {
55 path.addRect(rect, dir, startIndex);
59 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) {
61 path.addOval(rect, dir, startIndex);
65 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) {
68 rrect.setRectRadii(rect, radii);
75 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) {
77 rrect.setRect(rect);
84 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) {
86 rrect.setOval(rect);
[all...]
H A Dblurrect.cpp23 SkRect rect; local
26 rect = r;
27 rect.outset(STROKE_WIDTH/2, STROKE_WIDTH/2);
28 path.addRect(rect);
29 rect = r;
30 rect.inset(STROKE_WIDTH/2, STROKE_WIDTH/2);
32 path.addRect(rect);
39 SkRect rect; local
42 rect = r;
43 rect
[all...]
H A Dmegalooper.cpp81 // Just draw a blurred rect at each of the four corners of a square (centered at x,y).
104 SkRect rect = { -kHalfSquareSize, -kHalfSquareSize, kHalfSquareSize, kHalfSquareSize }; local
105 rect.offset(gBlurOffsets[i]);
106 rect.offset(x, y);
107 canvas->drawRect(rect, paint);
122 // (so each blurred rect is centered at one of the corners of the original).
123 // For each blur a large outer clip is centered around the blurred rect
124 // while a difference clip stays at the location of the original rect.
125 // Each blurred rect is drawn with a draw looper where the original (non-
126 // blurred rect) i
145 SkRect rect = { -kHalfSquareSize, -kHalfSquareSize, kHalfSquareSize, kHalfSquareSize }; local
185 SkRect rect = { -kHalfSquareSize, -kHalfSquareSize, kHalfSquareSize, kHalfSquareSize }; local
[all...]
H A Dshapes.cpp106 canvas->drawRect(shape.rect(), paint);
109 canvas->drawOval(shape.rect(), paint);
132 float s = 0.95f * SkTMin(outer.rect().width() / inner.rect().width(),
133 outer.rect().height() / inner.rect().height());
135 float dx = (rand.nextF() - 0.5f) * (outer.rect().width() - s * inner.rect().width());
136 float dy = (rand.nextF() - 0.5f) * (outer.rect().height() - s * inner.rect()
[all...]
H A Dquadpaths.cpp98 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); variable
104 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0);
109 canvas->translate(0, rect.height() + 40 * SK_Scalar1);
114 canvas->translate(rect.width() + 40 * SK_Scalar1, 0);
118 this->drawPath(path.fPath, canvas, color, rect,
127 canvas->drawRect(rect, rectPaint);
136 0, rect.height() + 12 * SK_Scalar1,
140 0, rect.height() + 24 * SK_Scalar1,
144 0, rect.height() + 36 * SK_Scalar1,
242 SkRect rect variable
[all...]
/external/skia/src/animator/
H A DSkDrawClip.h25 SkDrawRect* rect; member in class:SkDrawClip
/external/skia/src/images/
H A DSkPageFlipper.cpp45 void SkPageFlipper::inval(const SkIRect& rect) { argument
48 if (r.intersect(rect)) {
61 void SkPageFlipper::inval(const SkRect& rect, bool antialias) { argument
63 rect.round(&r);
/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/
H A DCameraManager.java113 // Make sure to clear these each time we close the camera, so that any scanning rect
173 * Calculates the framing rect which the UI should draw to show the user where to place the
200 Log.d(TAG, "Calculated framing rect: " + framingRect);
215 Rect rect = new Rect(framingRect);
221 rect.left = rect.left * cameraResolution.x / screenResolution.x;
222 rect.right = rect.right * cameraResolution.x / screenResolution.x;
223 rect.top = rect
[all...]
/external/mesa3d/src/gallium/targets/graw-gdi/
H A Dgraw_gdi.c71 RECT rect; local
97 SetRect(&rect, 0, 0, width, height);
98 AdjustWindowRectEx(&rect, style, FALSE, 0);
106 rect.right - rect.left,
107 rect.bottom - rect.top,
/external/skia/src/gpu/batches/
H A DGrAAFillRectBatch.cpp80 const SkRect& rect,
105 // create the rotated rect
106 fan0Pos->setRectFan(rect.fLeft, rect.fTop,
107 rect.fRight, rect.fBottom, vertexStride);
231 // We apply the viewmatrix to the rect points on the cpu. However, if the pipeline uses
310 const SkMatrix& viewMatrix, const SkRect& rect,
315 geo.fRect = rect;
321 const SkRect& rect, cons
76 generate_aa_fill_rect_geometry(intptr_t verts, size_t vertexStride, GrColor color, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect& devRect, const GrXPOverridesForBatch& overrides, const SkMatrix* localMatrix) argument
309 append_to_batch(AAFillRectBatchNoLocalMatrix* batch, GrColor color, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect& devRect) argument
319 append_to_batch(AAFillRectBatchLocalMatrix* batch, GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix, const SkRect& rect, const SkRect& devRect) argument
332 Create(GrColor color, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect& devRect) argument
342 Create(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix, const SkRect& rect, const SkRect& devRect) argument
353 Create(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix, const SkRect& rect) argument
362 CreateWithLocalRect(GrColor color, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect& localRect) argument
375 Append(GrBatch* origBatch, GrColor color, const SkMatrix& viewMatrix, const SkRect& rect, const SkRect& devRect) argument
385 Append(GrBatch* origBatch, GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix, const SkRect& rect, const SkRect& devRect) argument
407 SkRect rect = GrTest::TestRect(random); local
416 SkRect rect = GrTest::TestRect(random); local
[all...]
/external/webrtc/webrtc/modules/desktop_capture/
H A Ddesktop_region.h75 const DesktopRect& rect() const { return rect_; } function in class:webrtc::DesktopRegion::Iterator
92 explicit DesktopRegion(const DesktopRect& rect);
106 // Reset region to contain just |rect|.
107 void SetRect(const DesktopRect& rect);
109 // Adds specified rect(s) or region to the region.
110 void AddRect(const DesktopRect& rect);
120 // Clips the region by the |rect|.
121 void IntersectWith(const DesktopRect& rect);
126 // Subtracts |rect| from the current content of the region.
127 void Subtract(const DesktopRect& rect);
[all...]
/external/opencv3/modules/highgui/src/
H A Dwindow_w32.cpp305 icvLoadWindowPos( const char* name, CvRect& rect )
312 rect.x = rect.y = CW_USEDEFAULT;
313 rect.width = rect.height = 320;
321 RegQueryValueEx(hkey, "Left", NULL, &dwType, (BYTE*)&rect.x, &dwSize);
322 RegQueryValueEx(hkey, "Top", NULL, &dwType, (BYTE*)&rect.y, &dwSize);
323 RegQueryValueEx(hkey, "Width", NULL, &dwType, (BYTE*)&rect.width, &dwSize);
324 RegQueryValueEx(hkey, "Height", NULL, &dwType, (BYTE*)&rect.height, &dwSize);
326 if( rect
465 RECT rect; local
719 CvRect rect; local
998 RECT crect, trect, rect; local
1054 RECT rect; local
1254 RECT rmw, rw, rect; local
1293 RECT rect; local
1333 RECT rect; local
1356 RECT rect; local
1372 RECT rect; local
1423 RECT rect; local
1562 RECT rect = icvCalcWindowRect(window); local
1615 RECT rect; local
1661 RECT rect; local
1818 RECT rect; local
2024 RECT rect; local
[all...]
/external/droiddriver/src/io/appium/droiddriver/instrumentation/
H A DInstrumentationUiDevice.java77 Rect rect = new Rect(0, 0, drawingCache.getWidth(), drawingCache.getHeight());
78 rect.offset(xy[0], xy[1]);
80 Bitmap.createBitmap(rect.width() + xy[0], rect.height() + xy[1], Config.ARGB_8888);
82 canvas.drawBitmap(drawingCache, null, new RectF(rect), null);
/external/opencv/cv/src/
H A Dcvcamshift.cpp73 comp->rect = windowIn;
138 comp->rect = cur_rect;
184 comp.rect = windowIn;
191 windowIn = comp.rect;
267 comp.rect.width = MIN( t0, (mat->width - _xc) * 2 );
273 comp.rect.height = MIN( t0, (mat->height - _yc) * 2 );
275 comp.rect.x = MAX( 0, _xc - comp.rect.width / 2 );
276 comp.rect.y = MAX( 0, _yc - comp.rect
[all...]
/external/webrtc/webrtc/modules/desktop_capture/win/
H A Dscreen_capturer_win_magnifier.cc117 DesktopRect rect = GetScreenRect(current_screen_id_, current_device_key_); local
118 CreateCurrentFrameIfNecessary(rect.size());
121 succeeded = CaptureImage(rect);
196 bool ScreenCapturerWinMagnifier::CaptureImage(const DesktopRect& rect) { argument
199 // Set the magnifier control to cover the captured rect. The content of the
203 rect.left(), rect.top(),
204 rect.width(), rect.height(),
208 << ". Rect = {" << rect
[all...]
/external/opencv3/modules/objdetect/src/
H A Dhaar.cpp81 rect[CV_HAAR_FEATURE_MAX]; member in struct:CvHidHaarFeature
238 if( classifier->haar_feature[l].rect[k].r.width )
240 CvRect r = classifier->haar_feature[l].rect[k].r;
324 if( fabs(feature->rect[2].weight) < DBL_EPSILON ||
325 feature->rect[2].r.width == 0 ||
326 feature->rect[2].r.height == 0 )
327 memset( &(node->feature.rect[2]), 0, sizeof(node->feature.rect[2]) );
365 int rect_count = 2 + (classifier->haar_feature->rect[2].r.width != 0);
374 ipp_features[k] = classifier->haar_feature->rect[
[all...]
H A Dcascadedetect_convert.cpp79 rect[i].r = Rect(0,0,0,0);
80 rect[i].weight = 0.f;
88 } rect[RECT_NUM]; member in struct:cv::haar_cvt::HaarFeature
164 f.rect[k].r.x = (int)rnode[0];
165 f.rect[k].r.y = (int)rnode[1];
166 f.rect[k].r.width = (int)rnode[2];
167 f.rect[k].r.height = (int)rnode[3];
168 f.rect[k].weight = (float)rnode[4];
250 if( j >= 2 && fabs(f.rect[j].weight) < FLT_EPSILON )
252 newfs << "[" << f.rect[
[all...]
/external/skia/tests/
H A DRRectInPathTest.cpp193 const SkRect& rect,
197 rr.setNinePatch(rect, l, t, r, b);
206 rr2.setRectRadii(rect, radii);
218 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
221 rr1.setRect(rect);
226 rr1_2.setRectRadii(rect, rr1_2_radii);
229 rr1_3.setNinePatch(rect, 0, 0, 0, 0);
235 rr2.setOval(rect);
241 rr2_2.setRectRadii(rect, rr2_2_radii);
244 rr2_3.setNinePatch(rect, halfPoin
192 test_9patch_rrect(skiatest::Reporter* reporter, const SkRect& rect, SkScalar l, SkScalar t, SkScalar r, SkScalar b, bool checkRadii) argument
286 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
311 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
321 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
337 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); local
[all...]
/external/pdfium/xfa/src/fwl/src/lightwidget/
H A Dwidget.cpp53 FWL_ERR CFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { argument
56 return m_pIface->GetWidgetRect(rect, bAutoSize);
58 FWL_ERR CFWL_Widget::GetGlobalRect(CFX_RectF& rect) { argument
61 return m_pIface->GetGlobalRect(rect);
63 FWL_ERR CFWL_Widget::SetWidgetRect(const CFX_RectF& rect) { argument
66 return m_pIface->SetWidgetRect(rect);
68 FWL_ERR CFWL_Widget::GetClientRect(CFX_RectF& rect) { argument
71 return m_pIface->GetClientRect(rect);
209 CFX_RectF rect;
211 rect
295 CFX_RectF rect; local
[all...]
/external/pdfium/fpdfsdk/src/fpdfxfa/
H A Dfpdfxfa_page.cpp130 CFX_RectF rect; local
131 m_pXFAPageView->GetPageViewRect(rect);
132 return rect.width;
162 CFX_RectF rect; local
163 m_pXFAPageView->GetPageViewRect(rect);
164 return rect.height;
241 CFX_Rect rect; local
242 rect.Set(xPos, yPos, xSize, ySize);
243 m_pXFAPageView->GetDisplayMatrix(matrix, rect, iRotate);
/external/pdfium/xfa/src/fdp/src/tto/
H A Dfde_textout.h63 CFX_Rect& rect);
66 CFX_RectF& rect);
78 const CFX_Rect& rect);
81 const CFX_RectF& rect);
89 CFX_RectF& rect);
96 const CFX_RectF& rect);
100 void CalcTextSize(const FX_WCHAR* pwsStr, int32_t iLength, CFX_RectF& rect);
105 void SetLineWidth(CFX_RectF& rect);
108 const CFX_RectF& rect,
110 void LoadText(const FX_WCHAR* pwsStr, int32_t iLength, const CFX_RectF& rect);
[all...]
/external/pdfium/xfa/src/fdp/include/
H A Dfde_tto.h63 CFX_Rect& rect) = 0;
66 CFX_RectF& rect) = 0;
77 const CFX_Rect& rect) = 0;
80 const CFX_RectF& rect) = 0;
87 CFX_RectF& rect) = 0;
94 const CFX_RectF& rect) = 0;
/external/skia/experimental/c-api-example/
H A Dskia-c-example.c41 sk_rect_t rect; local
42 rect.left = 100.0f;
43 rect.top = 100.0f;
44 rect.right = 540.0f;
45 rect.bottom = 380.0f;
46 sk_canvas_draw_rect(canvas, &rect, fill);

Completed in 2946 milliseconds

1234567891011>>