Searched refs:clip (Results 1 - 25 of 180) sorted by relevance

12345678

/external/skia/src/core/
H A DSkLineClipper.cpp39 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, argument
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
109 ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[]) argument
[all...]
H A DSkScan.cpp26 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, argument
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, argument
61 SkScan::FillIRect(r, clip, blitter);
66 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, argument
71 SkScan::FillIRect(ir, clip, blitter);
H A DSkEdgeClipper.cpp20 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { argument
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) { argument
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
128 clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) argument
196 clipQuad(const SkPoint srcPts[3], const SkRect& clip) argument
[all...]
H A DSkScan_Hairline.cpp44 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, SkBlitte
[all...]
H A DSkScan_Antihair.cpp27 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
[all...]
H A DSkQuadClipper.h22 /** 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);
H A DSkMaskFilter.cpp31 const SkRegion& clip, SkBounder* bounder,
36 if (!SkDraw::DrawToMask(devPath, &clip.getBounds(), this, &matrix, &srcM,
48 SkRegion::Cliperator clipper(clip, dstM.fBounds);
30 filterPath(const SkPath& devPath, const SkMatrix& matrix, const SkRegion& clip, SkBounder* bounder, SkBlitter* blitter) argument
H A DSkEdge.h42 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);
H A DSkScanPriv.h26 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds);
38 // clipRect == null means path is entirely inside the clip
45 const SkRegion& clip);
H A DSkScan_AntiPath.cpp34 const SkRegion& clip);
57 const SkRegion& clip) {
60 // take the union of the ir bounds and clip, since we may be called with an
62 const int left = SkMin32(ir.fLeft, clip.getBounds().fLeft);
63 const int right = SkMax32(ir.fRight, clip.getBounds().fRight);
75 const SkRegion& clip);
91 const SkRegion& clip)
92 : BaseSuperBlitter(realBlitter, ir, clip) {
197 const SkRegion& clip);
227 const SkRegion& clip)
56 BaseSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkRegion& clip) argument
90 SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkRegion& clip) argument
226 MaskSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkRegion& clip) argument
[all...]
H A DSkBlitBWMaskTemplate.h27 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;
/external/icu4c/samples/layout/
H A DSurface.cpp18 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/webkit/WebCore/page/mac/
H A DWebDashboardRegion.h42 NSRect clip; variable
45 - initWithRect:(NSRect)rect clip:(NSRect)clip type:(WebDashboardRegionType)type;
H A DWebDashboardRegion.m35 - 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/include/core/
H A DSkLineClipper.h13 /* 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,
H A DSkScan.h34 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, argument
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, SkBlitte
49 FillTriangle(const SkPoint& a, const SkPoint& b, const SkPoint& c, const SkRegion* clip, SkBlitter* blitter) argument
67 AntiFillRect(const SkRect& rect, const SkRegion* clip, SkBlitter* blitter) argument
[all...]
H A DSkEdgeClipper.h22 /** 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);
/external/opencore/codecs_v2/utilities/colorconvert/src/
H A Dcczoomrotation32.cpp212 int32 ColorConvert32::get_frame32(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip) argument
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) argument
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[tmp
377 cc32Reverse(uint8 **src, uint8 *dst, int32 *disp, uint8 *clip) argument
520 cc32Rotate(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip) argument
696 cc32ZoomIn(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip) argument
721 cc32scaledown(uint8 **src, uint8 *dst, int *disp, uint8 *clip, uint8 *_mRowPix, uint8 *_mColPix) argument
955 cc32scaleup(uint8 **src, uint8 *dst, int *disp, uint8 *clip, uint8 *_mRowPix, uint8 *_mColPix) argument
1165 cc32ZoomRotate(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip) argument
1181 cc32sc_rotate(uint8 **src, uint8 *dst, int *disp, uint8 *clip, uint8 *_mRowPix, uint8 *_mColPix, bool _mIsRotateClkwise) argument
[all...]
H A Dcczoomrotation24.cpp214 int32 ColorConvert24::get_frame24(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip) argument
233 return cc24(src, dst, disp_prop, clip);
239 int32 cc24(uint8 **src, uint8 *dst, int32 *disp, uint8 *clip) argument
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[tmp
509 cc24Rotate(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip) argument
690 cc24ZoomIn(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip) argument
706 cc24scaling(uint8 **src, uint8 *dst, int *disp, uint8 *clip, uint8 *_mRowPix, uint8 *_mColPix) argument
1009 cc24ZoomRotate(uint8 **src, uint8 *dst, DisplayProperties *disp, uint8 *clip) argument
1025 cc24sc_rotate(uint8 **src, uint8 *dst, int *disp, uint8 *clip, uint8 *_mRowPix, uint8 *_mColPix, bool _mIsRotateClkwise) argument
[all...]
H A Dcczoomrotation16.cpp101 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[23
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...]
/external/webkit/WebCore/platform/graphics/cg/
H A DGraphicsContextPlatformPrivateCG.h58 void clip(const FloatRect&) {} function in class:WebCore::GraphicsContextPlatformPrivate
59 void clip(const Path&) {} function in class:WebCore::GraphicsContextPlatformPrivate
73 void clip(const FloatRect&);
74 void clip(const Path&);
/external/webkit/WebCore/rendering/style/
H A DStyleVisualData.cpp44 , clip(o.clip)
H A DStyleVisualData.h42 return ( clip == o.clip &&
51 LengthBox clip; member in class:WebCore::StyleVisualData
/external/webkit/WebCore/plugins/symbian/
H A DPluginContainerSymbian.cpp47 void PluginContainerSymbian::requestGeometry(const QRect& rect, const QRegion& clip) argument
49 if (m_windowRect != rect || m_clipRegion != clip) {
51 m_clipRegion = clip;
/external/webkit/WebCore/platform/graphics/cairo/
H A DGraphicsContextPlatformPrivateCairo.h69 void clip(const FloatRect&);
70 void clip(const Path&);
84 void clip(const FloatRect&) {} function in class:WebCore::GraphicsContextPlatformPrivate
85 void clip(const Path&) {} function in class:WebCore::GraphicsContextPlatformPrivate

Completed in 174 milliseconds

12345678