Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 731) sorted by relevance

12345678910>>...30

/external/fonttools/Lib/fontTools/pens/
DboundsPen.py25 self.bounds = None
28 bounds = self.bounds
29 if bounds:
30 self.bounds = updateBounds(bounds, pt)
33 self.bounds = (x, y, x, y)
36 self.bounds = updateBounds(self.bounds, pt)
39 bounds = self.bounds
40 bounds = updateBounds(bounds, bcp1)
41 bounds = updateBounds(bounds, bcp2)
42 bounds = updateBounds(bounds, pt)
[all …]
/external/ImageMagick/MagickCore/
Dlayer.c100 static void ClearBounds(Image *image,RectangleInfo *bounds, in ClearBounds() argument
106 if (bounds->x < 0) in ClearBounds()
110 for (y=0; y < (ssize_t) bounds->height; y++) in ClearBounds()
118 q=GetAuthenticPixels(image,bounds->x,bounds->y+y,bounds->width,1,exception); in ClearBounds()
121 for (x=0; x < (ssize_t) bounds->width; x++) in ClearBounds()
166 const Image *image2,RectangleInfo *bounds,ExceptionInfo *exception) in IsBoundsCleared() argument
178 if (bounds->x < 0) in IsBoundsCleared()
180 for (y=0; y < (ssize_t) bounds->height; y++) in IsBoundsCleared()
182 p=GetVirtualPixels(image1,bounds->x,bounds->y+y,bounds->width,1,exception); in IsBoundsCleared()
183 q=GetVirtualPixels(image2,bounds->x,bounds->y+y,bounds->width,1,exception); in IsBoundsCleared()
[all …]
/external/skia/src/effects/
DSkMatrixConvolutionImageFilter.cpp125 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument
132 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument
133 x = SkTPin(x, bounds.fLeft, bounds.fRight - 1); in fetch()
134 y = SkTPin(y, bounds.fTop, bounds.fBottom - 1); in fetch()
141 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument
142 x = (x - bounds.left()) % bounds.width() + bounds.left(); in fetch()
143 y = (y - bounds.top()) % bounds.height() + bounds.top(); in fetch()
144 if (x < bounds.left()) { in fetch()
145 x += bounds.width(); in fetch()
147 if (y < bounds.top()) { in fetch()
[all …]
DSkMagnifierImageFilter.cpp55 const SkIRect& bounds, in Make() argument
63 bounds, srcRect, in Make()
72 const SkIRect& bounds() const { return fBounds; } // Bounds of source image. in bounds() function in GrMagnifierEffect
86 const SkIRect& bounds, in GrMagnifierEffect() argument
96 , fBounds(bounds)
174 const char* bounds = uniformHandler->getUniformCStr(fBoundsVar); in emitCode() local
175 fragBuilder->codeAppendf("\t\tvec2 delta = (coord - %s.xy) * %s.zw;\n", bounds, bounds); in emitCode()
213 y = 1.0f - (zoom.srcRect().height() / zoom.bounds().height()) - y; in onSetData()
223 SkScalar y = zoom.bounds().y() * invH; in onSetData()
225 y = 1.0f - zoom.bounds().height() * invH; in onSetData()
[all …]
DSkAlphaThresholdFilter.cpp46 const SkIRect& bounds) const;
104 const SkIRect& bounds) const { in createMaskTexture()
107 SkBackingFit::kApprox, bounds.width(), bounds.height(), kAlpha_8_GrPixelConfig, nullptr)); in createMaskTexture()
117 GrFixedClip clip(SkIRect::MakeWH(bounds.width(), bounds.height())); in createMaskTexture()
147 SkIRect bounds; in onFilterImage() local
148 if (!this->applyCropRect(ctx, inputBounds, &bounds)) { in onFilterImage()
159 offset->fX = bounds.left(); in onFilterImage()
160 offset->fY = bounds.top(); in onFilterImage()
162 bounds.offset(-inputOffset); in onFilterImage()
165 matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); in onFilterImage()
[all …]
/external/Microsoft-GSL/tests/
Dstrided_span_tests.cpp74 CHECK(sav1.bounds().index_bounds() == index<1>{ 9 }); in SUITE()
75 CHECK(sav1.bounds().stride() == 1); in SUITE()
80 CHECK(sav2.bounds().index_bounds() == index<1>{ 4 }); in SUITE()
81 CHECK(sav2.bounds().strides() == index<1>{2}); in SUITE()
85 CHECK((sav3.bounds().index_bounds() == index<2>{ 2, 2 })); in SUITE()
86 CHECK((sav3.bounds().strides() == index<2>{ 6, 2 })); in SUITE()
99 CHECK(sav.bounds().index_bounds() == index<1>{ 2 }); in SUITE()
100 CHECK(sav.bounds().strides() == index<1>{ 1 }); in SUITE()
109 CHECK(sav_c.bounds().index_bounds() == index<1>{ 2 }); in SUITE()
110 CHECK(sav_c.bounds().strides() == index<1>{ 1 }); in SUITE()
[all …]
/external/skia/gm/
Dmixedtextblobs.cpp56 SkRect bounds; in onOnceBeforeDraw() local
57 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
59 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw()
61 SkScalar corruptedAx = bounds.width(); in onOnceBeforeDraw()
64 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onOnceBeforeDraw()
65 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onOnceBeforeDraw()
76 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
77 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw()
78 yOffset - bounds.height() * 0.5f); in onOnceBeforeDraw()
79 yOffset += bounds.height(); in onOnceBeforeDraw()
[all …]
Dtextblobmixedsizes.cpp48 SkRect bounds; in onOnceBeforeDraw() local
49 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
50 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw()
56 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
57 yOffset += bounds.height(); in onOnceBeforeDraw()
63 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
64 yOffset += bounds.height(); in onOnceBeforeDraw()
70 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
71 yOffset += bounds.height(); in onOnceBeforeDraw()
77 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
[all …]
/external/skia/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.cpp84 const char* bounds = uniformHandler->getUniformCStr(fBoundsUni); in emitCode() local
90 component, component, bounds, bounds); in emitCode()
96 component, component, bounds, bounds, bounds, bounds); in emitCode()
101 component, bounds, component, bounds); in emitCode()
140 float bounds[2] = {0}; in onSetData() local
141 bounds[0] = conv.bounds()[0]; in onSetData()
142 bounds[1] = conv.bounds()[1]; in onSetData()
144 bounds[0] += SK_ScalarHalf; in onSetData()
145 bounds[1] -= SK_ScalarHalf; in onSetData()
149 pdman.set2f(fBoundsUni, inv * bounds[0], inv * bounds[1]); in onSetData()
[all …]
/external/skia/tests/
DPathOpsBoundsTest.cpp49 SkPathOpsBounds bounds; in DEF_TEST() local
50 bounds.setEmpty(); in DEF_TEST()
51 bounds.add(1, 2, 3, 4); in DEF_TEST()
54 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
55 bounds.setEmpty(); in DEF_TEST()
58 bounds.add(ordinal); in DEF_TEST()
59 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
60 bounds.setEmpty(); in DEF_TEST()
62 bounds.add(botRight); in DEF_TEST()
63 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
[all …]
DPathOpsConicIntersectionTest.cpp88 SkRect bounds; in writePng() local
89 conic.computeTightBounds(&bounds); in writePng()
90 bounds.outset(10, 10); in writePng()
92 SkScalarRoundToInt(bounds.width()), SkScalarRoundToInt(bounds.height()))); in writePng()
97 canvas.translate(-bounds.fLeft, -bounds.fTop); in writePng()
123 SkDRect bounds; in writeDPng() local
124 bounds.setBounds(dConic); in writeDPng()
125 bounds.fLeft -= 10; in writeDPng()
126 bounds.fTop -= 10; in writeDPng()
127 bounds.fRight += 10; in writeDPng()
[all …]
/external/llvm/test/Transforms/IRCE/
Dwith-parent-loops.ll8 …ner_loop: constrained Loop at depth 1 containing: %loop<header><exiting>,%in.bounds<latch><exiting>
15 loop: ; preds = %in.bounds, %entry
16 %idx = phi i32 [ 0, %entry ], [ %idx.next, %in.bounds ]
19 br i1 %abc, label %in.bounds, label %out.of.bounds, !prof !1
21 in.bounds: ; preds = %loop
27 out.of.bounds: ; preds = %loop
30 exit: ; preds = %in.bounds, %entry
36 …rent: constrained Loop at depth 2 containing: %loop.i<header><exiting>,%in.bounds.i<latch><exiting>
49 loop.i: ; preds = %in.bounds.i, %loop
50 %idx.i = phi i32 [ 0, %loop ], [ %idx.next.i, %in.bounds.i ]
[all …]
Dmultiple-access-no-preloop.ll13 %idx = phi i32 [ 0, %entry ] , [ %idx.next, %in.bounds.b ]
16 br i1 %abc.a, label %in.bounds.a, label %out.of.bounds, !prof !1
18 in.bounds.a:
22 br i1 %abc.b, label %in.bounds.b, label %out.of.bounds, !prof !1
24 in.bounds.b:
30 out.of.bounds:
52 ; CHECK: br i1 true, label %in.bounds.a, label %out.of.bounds
54 ; CHECK-LABEL: in.bounds.a:
55 ; CHECK: br i1 true, label %in.bounds.b, label %out.of.bounds
57 ; CHECK-LABEL: in.bounds.b:
[all …]
Dsingle-access-no-preloop.ll10 %idx = phi i32 [ 0, %entry ] , [ %idx.next, %in.bounds ]
13 br i1 %abc, label %in.bounds, label %out.of.bounds, !prof !1
15 in.bounds:
21 out.of.bounds:
31 ; CHECK: br i1 true, label %in.bounds, label %out.of.bounds
46 ; CHECK-NEXT: %idx.postloop = phi i32 [ %idx.next.postloop, %in.bounds.postloop ], [ %idx.copy, %po…
49 ; CHECK-NEXT: br i1 %abc.postloop, label %in.bounds.postloop, label %out.of.bounds
51 ; CHECK-LABEL: in.bounds.postloop:
65 %idx = phi i32 [ 0, %entry ] , [ %idx.next, %in.bounds ]
69 br i1 %abc, label %in.bounds, label %out.of.bounds, !prof !1
[all …]
/external/python/cpython2/Mac/Demo/quicktime/
DVerySimplePlayer.py32 bounds = (175, 75, 175+160, 75+120)
33 theWindow = Win.NewCWindow(bounds, fss.as_tuple()[2], 0, 0, -1, 1, 0)
41 bounds = theMovie.GetMovieBox()
42 bounds = 0, 0, bounds[2]-bounds[0], bounds[3]-bounds[1]
43 theMovie.SetMovieBox(bounds)
46 theController = theMovie.NewMovieController(bounds, QuickTime.mcTopLeftMovie)
49 rv, bounds = theController.MCGetControllerBoundsRect()
50 theWindow.SizeWindow(bounds[2], bounds[3], 0) # XXXX or [3] [2]?
/external/ImageMagick/coders/
Dpes.c453 bounds; in ReadPESImage() local
529 bounds.x1=65535.0; in ReadPESImage()
530 bounds.y1=65535.0; in ReadPESImage()
531 bounds.x2=(-65535.0); in ReadPESImage()
532 bounds.y2=(-65535.0); in ReadPESImage()
599 if ((double) x < bounds.x1) in ReadPESImage()
600 bounds.x1=(double) x; in ReadPESImage()
601 if ((double) x > bounds.x2) in ReadPESImage()
602 bounds.x2=(double) x; in ReadPESImage()
603 if ((double) y < bounds.y1) in ReadPESImage()
[all …]
Dxps.c143 bounds; in ReadXPSImage() local
202 (void) ResetMagickMemory(&bounds,0,sizeof(bounds)); in ReadXPSImage()
230 &bounds.x1,&bounds.y1,&bounds.x2,&bounds.y2); in ReadXPSImage()
233 &bounds.x1,&bounds.y1,&bounds.x2,&bounds.y2); in ReadXPSImage()
241 &bounds.x1,&bounds.y1,&bounds.x2,&bounds.y2); in ReadXPSImage()
244 &bounds.x1,&bounds.y1,&bounds.x2,&bounds.y2); in ReadXPSImage()
251 width=(size_t) (floor(bounds.x2+0.5)-ceil(bounds.x1-0.5)); in ReadXPSImage()
252 height=(size_t) (floor(bounds.y2+0.5)-ceil(bounds.y1-0.5)); in ReadXPSImage()
/external/skia/src/core/
DSkRecordDraw.cpp78 DRAW(SaveLayer, saveLayer(SkCanvas::SaveLayerRec(r.bounds,
163 FillBounds(const SkRect& cullRect, const SkRecord& record, SkRect bounds[]) in FillBounds() argument
166 , fBounds(bounds) { in FillBounds()
231 Bounds bounds; // Bounds of everything in the block. member
281 if (op.bounds) { in updateClipBounds()
283 fCurrentClipBounds = this->adjustAndMap(*op.bounds, op.paint); in updateClipBounds()
304 fBounds[fCurrentOp] = this->bounds(op); in trackBounds()
314 sb.bounds = in pushSaveBlock()
362 this->popControl(sb.bounds); in popSaveBlock()
366 this->updateSaveBounds(sb.bounds); in popSaveBlock()
[all …]
/external/skia/tools/skiaserve/
DRequest.cpp114 SkIRect bounds = this->getBounds(); in writeOutSkp() local
116 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(bounds.width()), in writeOutSkp()
117 SkIntToScalar(bounds.height())); in writeOutSkp()
150 SkIRect bounds; in getBounds() local
152 bounds = fPicture->cullRect().roundOut(); in getBounds()
156 bounds = SkIRect::MakeWH(SkTMin(bounds.width(), maxRTSize), in getBounds()
157 SkTMin(bounds.height(), maxRTSize)); in getBounds()
161 bounds = SkIRect::MakeWH(kDefaultWidth, kDefaultHeight); in getBounds()
166 bounds = SkIRect::MakeWH(SkTMin(bounds.width(), kMaxWidth), in getBounds()
167 SkTMin(bounds.height(), kMaxHeight)); in getBounds()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowDrawable.java30 private Rect bounds = new Rect(0, 0, 0, 0); field in ShadowDrawable
76 return bounds; in getBounds()
81 this.bounds = rect; in setBounds()
86 bounds = new Rect(left, top, right, bottom); in setBounds()
91 Rect bounds = new Rect(); in copyBounds() local
92 copyBounds(bounds); in copyBounds()
93 return bounds; in copyBounds()
97 public void copyBounds(Rect bounds) { in copyBounds() argument
98 bounds.set(getBounds()); in copyBounds()
162 if (bounds != null ? !bounds.equals(that.bounds) : that.bounds != null) return false; in equals()
[all …]
/external/skia/src/gpu/ops/
DGrShadowRRectOp.cpp194 SkRect bounds = devRect; in ShadowCircularRRectOp() local
225 this->setBounds(bounds, HasAABloat::kNo, IsZeroArea::kNo); in ShadowCircularRRectOp()
228 blurRadius, blurClamp, bounds, type, isCircle}); in ShadowCircularRRectOp()
291 const SkRect& bounds = args.fDevBounds; in fillInCircleVerts() local
296 SkPoint center = SkPoint::Make(bounds.centerX(), bounds.centerY()); in fillInCircleVerts()
297 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts()
434 const SkRect& bounds = args.fDevBounds; in fillInRRectVerts() local
437 SkScalar minDim = 0.5f*SkTMin(bounds.width(), bounds.height()); in fillInRRectVerts()
442 SkScalar xInner[4] = { bounds.fLeft + umbraInset, bounds.fRight - umbraInset, in fillInRRectVerts()
443 bounds.fLeft + umbraInset, bounds.fRight - umbraInset }; in fillInRRectVerts()
[all …]
/external/skia/samplecode/
DSamplePathClip.cpp75 static int clip_line(const SkRect& bounds, SkPoint p0, SkPoint p1, SkPoint edges[]) {
86 if (p1.fY <= bounds.top() || p0.fY >= bounds.bottom()) {
91 if (p0.fY < bounds.top()) {
92 p0.fX = SkDoubleToScalar(p0.fX + dxdy * (bounds.top() - p0.fY));
93 p0.fY = bounds.top();
95 if (p1.fY > bounds.bottom()) {
96 p1.fX = SkDoubleToScalar(p1.fX + dxdy * (bounds.bottom() - p1.fY));
97 p1.fY = bounds.bottom();
107 if (p1.fX <= bounds.left()) { // entirely to the left
108 p0.fX = p1.fX = bounds.left();
[all …]
/external/webrtc/webrtc/examples/objc/AppRTCDemo/ios/
DARDVideoCallView.m91 CGRect bounds = self.bounds;
93 // Aspect fill remote video into bounds.
95 AVMakeRectWithAspectRatioInsideRect(_remoteVideoSize, bounds);
99 scale = bounds.size.height / remoteVideoFrame.size.height;
102 scale = bounds.size.width / remoteVideoFrame.size.width;
108 CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds));
110 _remoteVideoView.frame = bounds;
117 localVideoFrame.origin.x = CGRectGetMaxX(bounds)
119 localVideoFrame.origin.y = CGRectGetMaxY(bounds)
124 CGSize statsSize = [_statsView sizeThatFits:bounds.size];
[all …]
/external/skia/include/core/
DSkTextBlob.h32 const SkRect& bounds() const { return fBounds; } in bounds() function
81 explicit SkTextBlob(const SkRect& bounds);
187 const SkRect* bounds = NULL);
189 const SkRect* bounds = NULL) {
190 return this->allocRunText(font, count, x, y, 0, SkString(), bounds);
212 const SkRect* bounds = NULL);
214 const SkRect* bounds = NULL) {
215 return this->allocRunTextPosH(font, count, y, 0, SkString(), bounds);
237 const SkRect* bounds = NULL);
239 const SkRect* bounds = NULL) {
[all …]
/external/skia/src/gpu/
DGrClip.h41 SkRect* bounds) const = 0;
108 static SkIRect GetPixelIBounds(const SkRect& bounds) { in GetPixelIBounds() argument
109 return SkIRect::MakeLTRB(SkScalarFloorToInt(bounds.fLeft + kBoundsTolerance), in GetPixelIBounds()
110 SkScalarFloorToInt(bounds.fTop + kBoundsTolerance), in GetPixelIBounds()
111 SkScalarCeilToInt(bounds.fRight - kBoundsTolerance), in GetPixelIBounds()
112 SkScalarCeilToInt(bounds.fBottom - kBoundsTolerance)); in GetPixelIBounds()
118 static SkRect GetPixelBounds(const SkRect& bounds) { in GetPixelBounds() argument
119 return SkRect::MakeLTRB(SkScalarFloorToScalar(bounds.fLeft + kBoundsTolerance), in GetPixelBounds()
120 SkScalarFloorToScalar(bounds.fTop + kBoundsTolerance), in GetPixelBounds()
121 SkScalarCeilToScalar(bounds.fRight - kBoundsTolerance), in GetPixelBounds()
[all …]

12345678910>>...30