HomeSort by relevance Sort by last modified time
    Searched full:clip (Results 1 - 25 of 617) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/icu4c/samples/layout/
Surface.cpp 18 RECT clip; local
20 clip.top = 0;
21 clip.left = 0;
22 clip.bottom = height;
23 clip.right = width;
27 ExtTextOut(fHdc, x, y - fAscent, ETO_CLIPPED | ETO_GLYPH_INDEX, &clip,
  /external/skia/src/core/
SkLineClipper.cpp 39 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip,
44 if (containsNoEmptyCheck(clip, bounds)) {
52 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) ||
53 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) ||
54 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) ||
55 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) {
73 if (tmp[index0].fY < clip.fTop) {
74 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop);
76 if (tmp[index1].fY > clip.fBottom)
    [all...]
SkEdgeClipper.cpp 20 static bool quick_reject(const SkRect& bounds, const SkRect& clip) {
21 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop;
82 // Modify pts[] in place so that it is clipped in Y to the clip rect
83 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) {
88 if (pts[0].fY < clip.fTop) {
89 if (chopMonoQuadAtY(pts, clip.fTop, &t)) {
92 clamp_ge(tmp[2].fY, clip.fTop);
93 clamp_ge(tmp[3].fY, clip.fTop);
100 if (pts[i].fY < clip.fTop)
    [all...]
SkScan.cpp 26 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip,
29 if (clip) {
30 if (clip->isRect()) {
31 const SkIRect& clipBounds = clip->getBounds();
42 SkRegion::Cliperator cliper(*clip, r);
56 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip,
61 SkScan::FillIRect(r, clip, blitter);
66 void SkScan::FillRect(const SkRect& r, const SkRegion* clip,
71 SkScan::FillIRect(ir, clip, blitter);
SkScan_Hairline.cpp 44 void SkScan::HairLine(const SkPoint& pt0, const SkPoint& pt1, const SkRegion* clip, SkBlitter* blitter)
51 if (clip) {
52 // Perform a clip in scalar space, so we catch huge values which might
54 r.set(clip->getBounds());
65 if (clip) {
69 const SkIRect& bounds = clip->getBounds();
85 if (clip->isRect() && clipR.contains(ptsR)) {
86 clip = NULL;
88 blitter = clipper.apply(blitter, clip);
134 void SkScan::HairRect(const SkRect& rect, const SkRegion* clip, SkBlitter* blitter
    [all...]
SkScan_Antihair.cpp 27 our extends. The bug is that when this happens, we will set the clip to
28 NULL (for speed), and thus draw outside of the clip by a pixel, which might
34 case (i.e. not setting the clip to NULL) when we might not actually need
224 const SkIRect* clip, SkBlitter* blitter)
233 values are huge. A better fix might be to clip the original pts
239 do_anti_hairline(x0, y0, hx, hy, clip, blitter);
240 do_anti_hairline(hx, hy, x1, y1, clip, blitter);
279 if (clip)
281 if (istart >= clip->fRight || istop <= clip->fLeft
    [all...]
SkQuadClipper.h 22 /** This class is initialized with a clip rectangle, and then can be fed quads,
25 In the future, it might return a series of segments, allowing it to clip
32 void setClip(const SkIRect& clip);
46 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
47 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
62 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
63 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
SkEdge.h 42 int setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip,
45 void chopLineWithClip(const SkIRect& clip);
47 inline bool intersectsClip(const SkIRect& clip) const {
48 SkASSERT(fFirstY < clip.fBottom);
49 return fLastY >= clip.fTop;
89 int setCubic(const SkPoint pts[4], const SkIRect* clip, int shiftUp);
SkBlitBWMaskTemplate.h 27 SK_BLITBWMASK_NAME name of function(const SkBitmap& bitmap, const SkMask& mask, const SkIRect& clip, SK_BLITBWMASK_ARGS)
34 static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, const SkIRect& clip SK_BLITBWMASK_ARGS)
36 SkASSERT(clip.fRight <= srcMask.fBounds.fRight);
38 int cx = clip.fLeft;
39 int cy = clip.fTop;
43 unsigned height = clip.height();
52 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight)
69 int rite_edge = clip.fRight - maskLeft;
  /frameworks/base/awt/org/apache/harmony/awt/
ClipRegion.java 30 private final MultiRectArea clip; field in class:ClipRegion
32 public ClipRegion(final MultiRectArea clip) {
33 this.clip = new MultiRectArea(clip);
34 setBounds(clip.getBounds());
38 return clip;
43 String str = clip.toString();
46 if (clip.getRectCount() == 1) {
54 convertRegion(child, clip, parent);
58 clip.intersect(rect)
    [all...]
  /external/skia/include/core/
SkLineClipper.h 13 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that
14 lie completely above or below the clip. For portions to the left or
16 edge of the clip.
24 static int ClipLine(const SkPoint pts[2], const SkRect& clip,
35 static bool IntersectLine(const SkPoint src[2], const SkRect& clip,
SkScan.h 34 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*);
35 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*);
38 static void FillRect(const SkRect& rect, const SkRegion* clip,
40 SkScan::FillXRect(*(const SkXRect*)&rect, clip, blitter);
43 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*);
47 static void FillPath(const SkPath&, const SkRegion& clip, SkBlitter*);
50 const SkPoint& c, const SkRegion* clip,
56 FillTriangle(pts, clip, blitter);
59 static void HairLine(const SkPoint&, const SkPoint&, const SkRegion* clip, SkBlitter*);
60 static void HairRect(const SkRect&, const SkRegion* clip, SkBlitter*)
    [all...]
SkEdgeClipper.h 22 /** This is basically an iterator. It is initialized with an edge and a clip,
27 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
28 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
43 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
44 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
  /dalvik/libcore-disabled/sound/src/test/java/android/core/
SoundTest.java 35 import javax.sound.sampled.Clip;
110 Clip clip = AudioSystem.getClip(); local
111 Assert.assertTrue("AndroidClip must exist", clip instanceof AndroidClip);
113 Line.Info info = clip.getLineInfo();
119 Assert.assertFalse("Clip must not be open", clip.isOpen());
120 clip.open(stream);
121 Assert.assertTrue("Clip must be open", clip.isOpen())
    [all...]
  /sdk/draw9patch/src/com/android/draw9patch/ui/
GradientPanel.java 38 Rectangle clip = g2.getClipBounds(); local
43 g2.fillRect(clip.x, clip.y, clip.width, clip.height);
  /external/webkit/WebKit/mac/WebView/
WebClipView.m 36 // WebClipView's entire reason for existing is to set the clip used by focus ring redrawing.
37 // There's no easy way to prevent the focus ring from drawing outside the passed-in clip rectangle
39 // But it looks for the enclosing clip view, which gives us a hook we can use to control it.
40 // The "additional clip" is a clip for focus ring redrawing.
42 // FIXME: Change terminology from "additional clip" to "focus ring clip".
56 // In WebHTMLView, we set a clip. This is not typical to do in an
58 // it causes some bad problems if that clip is cached between calls.
59 // The cached graphics state, which clip views keep around, doe
    [all...]
  /external/opencore/codecs_v2/utilities/colorconvert/src/
cczoomrotation32.cpp 212 int32 ColorConvert32::get_frame32(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip)
227 return cc32Reverse(src, dst, disp_prop, clip);
231 return cc32(src, dst, disp_prop, clip);
239 int32 cc32(uint8 **src, uint8 *dst, int32 *disp, uint8 *clip)
294 Cg = Cr * (*((int32*)(clip - 400)));
295 Cg += Cb * (*((int32*)(clip - 392)));
297 Cr *= (*((int32*)(clip - 396)));
298 Cb *= (*((int32*)(clip - 388)));
308 tmp0 = clip[tmp0>>16];
309 tmp1 = clip[tmp1>>16]
    [all...]
cczoomrotation16.cpp 101 uint8 *clip; local
116 clip = mCoefTbl + 400;
119 oscl_memset(&clip[-384], 0, 401*sizeof(*clip));
120 oscl_memset(&clip[ 640], 0, 401*sizeof(*clip));
124 tmp = (int32)(1.164 * (i - 16)); // clip[1.164*((x>>3) - (16>>3))]
125 clip[i] = (uint8)(tmp >> 3);
126 clip[i+1024] = (uint8)(tmp >> 2);
129 oscl_memset(&clip[236], 31, 404*sizeof(*clip))
302 uint8 *clip = coff_tbl + 400; local
448 uint8 *clip = coff_tbl + 400; local
664 uint8 *clip = coeff_tbl + 400; local
800 uint8 *clip = coeff_tbl + 400; local
1031 uint8 *clip = coff_tbl + 400; local
2109 uint8 *clip = coff_tbl + 400; local
2411 uint8 *clip = coff_tbl + 400; local
2573 uint8 *clip = coff_tbl + 400; local
2962 uint8 *clip = coff_tbl + 400; local
3886 uint8 *clip = coff_tbl + 400; local
4459 uint8 *clip = coff_tbl + 400; local
5311 uint8 *clip = coff_tbl + 400; local
    [all...]
cczoomrotation24.cpp 214 int32 ColorConvert24::get_frame24(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip)
233 return cc24(src, dst, disp_prop, clip);
239 int32 cc24(uint8 **src, uint8 *dst, int32 *disp, uint8 *clip)
295 Cg = Cr * (*((int32*)(clip - 400)));
296 Cg += Cb * (*((int32*)(clip - 392)));
298 Cr *= (*((int32*)(clip - 396)));
299 Cb *= (*((int32*)(clip - 388)));
306 tmp0 = clip[tmp0>>16];
307 tmp1 = clip[tmp1>>16];
308 tmp2 = clip[tmp2>>16]
    [all...]
  /external/proguard/src/proguard/gui/splash/
ClipSprite.java 26 * This Sprite encapsulates another Sprite, which is clipped by a clip Sprite.
40 * @param insideClipColor the background color inside the clip sprite.
41 * @param outsideClipColor the background color outside the clip sprite.
42 * @param clipSprite the clip Sprite.
63 Rectangle clip = graphics.getClipBounds(); local
66 graphics.fillRect(0, 0, clip.width, clip.height);
75 // Clear the clip area.
  /frameworks/base/awt/org/apache/harmony/awt/gl/render/
NativeImageBlitter.java 55 MultiRectArea clip) {
59 sysxform, xform, comp, bgcolor, clip);
63 sysxform, comp, bgcolor, clip);
74 sysxform, comp, bgcolor, clip);
81 Composite comp, Color bgcolor, MultiRectArea clip) {
85 sysxform, comp, bgcolor, clip);
94 width, height, comp, bgcolor, clip);
101 sysxform, comp, bgcolor, clip);
112 sysxform, comp, bgcolor, clip);
120 Color bgcolor, MultiRectArea clip) {
    [all...]
  /frameworks/base/opengl/libagl/
vertex.cpp 52 // Divides a vertex clip coordinates by W
56 // [x,y,z]window = vpt * ([x,y,z]clip / clip.w)
69 const int32_t rw = gglRecip28(v->clip.w);
72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28);
73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28);
77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28);
85 // ndc = clip / W
88 // clip to the view-volume
89 uint32_t clip = v->flags & vertex_t::CLIP_ALL local
118 uint32_t clip = 0; local
    [all...]
  /external/webkit/WebCore/page/mac/
WebDashboardRegion.m 35 - initWithRect:(NSRect)r clip:(NSRect)c type:(WebDashboardRegionType)t
39 clip = c;
53 return clip;
83 return [NSString stringWithFormat:@"rect:%@ clip:%@ type:%s", NSStringFromRect(rect), NSStringFromRect(clip), typeName(type)];
89 return NSEqualRects(rect, [other dashboardRegionRect]) && NSEqualRects(clip, [other dashboardRegionClip]) && type == [other dashboardRegionType];
  /external/skia/tests/
ClipCubicTest.cpp 61 // Test no clip, with plenty of room.
69 // Test no clip, touching first point.
77 // Test no clip, touching last point.
85 // Test all clip.
91 // Test clip at 1.
103 // Test clip at 2.
115 // Test clip at 11.
127 // Test clip at 10.
  /external/webkit/WebCore/css/
SVGCSSPropertyNames.in 6 clip-path
7 clip-rule

Completed in 980 milliseconds

1 2 3 4 5 6 7 8 91011>>