Home
last modified time | relevance | path

Searched refs:clip (Results 1 – 25 of 245) sorted by relevance

12345678910

/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_clip_state.c41 struct brw_clip_unit_state *clip; in brw_upload_clip_unit() local
43 clip = brw_state_batch(brw, AUB_TRACE_CLIP_STATE, in brw_upload_clip_unit()
44 sizeof(*clip), 32, &brw->clip.state_offset); in brw_upload_clip_unit()
45 memset(clip, 0, sizeof(*clip)); in brw_upload_clip_unit()
48 clip->thread0.grf_reg_count = (ALIGN(brw->clip.prog_data->total_grf, 16) / in brw_upload_clip_unit()
50 clip->thread0.kernel_start_pointer = in brw_upload_clip_unit()
52 brw->clip.state_offset + in brw_upload_clip_unit()
54 brw->clip.prog_offset + in brw_upload_clip_unit()
55 (clip->thread0.grf_reg_count << 1)) >> 6; in brw_upload_clip_unit()
57 clip->thread1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754; in brw_upload_clip_unit()
[all …]
/external/skia/src/core/
DSkEdgeClipper.cpp13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { in quick_reject() argument
14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject()
76 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { in chop_quad_in_Y() argument
81 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y()
82 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { in chop_quad_in_Y()
86 tmp[2].fY = clip.fTop; in chop_quad_in_Y()
87 clamp_ge(tmp[3].fY, clip.fTop); in chop_quad_in_Y()
95 if (pts[i].fY < clip.fTop) { in chop_quad_in_Y()
96 pts[i].fY = clip.fTop; in chop_quad_in_Y()
103 if (pts[2].fY > clip.fBottom) { in chop_quad_in_Y()
[all …]
DSkScan.cpp18 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, in FillIRect() argument
21 if (clip) { in FillIRect()
22 if (clip->isRect()) { in FillIRect()
23 const SkIRect& clipBounds = clip->getBounds(); in FillIRect()
34 SkRegion::Cliperator cliper(*clip, r); in FillIRect()
48 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, in FillXRect() argument
53 SkScan::FillIRect(r, clip, blitter); in FillXRect()
56 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, in FillRect() argument
61 SkScan::FillIRect(ir, clip, blitter); in FillRect()
66 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, in FillIRect() argument
[all …]
DSkLineClipper.cpp77 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, in IntersectLine() argument
82 if (containsNoEmptyCheck(clip, bounds)) { in IntersectLine()
90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine()
91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine()
92 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine()
93 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine()
111 if (tmp[index0].fY < clip.fTop) { in IntersectLine()
112 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine()
114 if (tmp[index1].fY > clip.fBottom) { in IntersectLine()
115 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine()
[all …]
DSkScan_Hairline.cpp41 void SkScan::HairLineRgn(const SkPoint array[], int arrayCount, const SkRegion* clip, in HairLineRgn() argument
50 if (clip) { in HairLineRgn()
51 clipBounds.set(clip->getBounds()); in HairLineRgn()
67 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) { in HairLineRgn()
81 if (clip) { in HairLineRgn()
85 const SkIRect& bounds = clip->getBounds(); in HairLineRgn()
101 if (!clip->isRect() || !clipR.contains(ptsR)) { in HairLineRgn()
102 blitter = clipper.apply(origBlitter, clip); in HairLineRgn()
146 void SkScan::HairRect(const SkRect& rect, const SkRasterClip& clip, in HairRect() argument
157 if (clip.quickReject(r)) { in HairRect()
[all …]
DSkScan_Antihair.cpp306 const SkIRect* clip, SkBlitter* blitter) { in do_anti_hairline() argument
330 do_anti_hairline(x0, y0, hx, hy, clip, blitter); in do_anti_hairline()
331 do_anti_hairline(hx, hy, x1, y1, clip, blitter); in do_anti_hairline()
375 if (clip){ in do_anti_hairline()
376 if (istart >= clip->fRight || istop <= clip->fLeft) { in do_anti_hairline()
379 if (istart < clip->fLeft) { in do_anti_hairline()
380 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
381 istart = clip->fLeft; in do_anti_hairline()
389 if (istop > clip->fRight) { in do_anti_hairline()
390 istop = clip->fRight; in do_anti_hairline()
[all …]
DSkRasterClip.cpp144 bool SkRasterClip::setPath(const SkPath& path, const SkRegion& clip, bool doAA) { in setPath() argument
148 … return this->setConservativeRect(path.getBounds(), clip.getBounds(), path.isInverseFillType()); in setPath()
152 (void)fBW.setPath(path, clip); in setPath()
159 (void)fAA.setPath(path, &clip, doAA); in setPath()
195 SkRasterClip clip(fForceConservativeRects); in op() local
196 clip.setPath(path, base, doAA); in op()
197 return this->op(clip, op); in op()
205 SkRasterClip clip(fForceConservativeRects); in op() local
206 clip.setPath(path, base, doAA); in op()
207 return this->op(clip, op); in op()
[all …]
DSkBlitter.cpp121 void SkBlitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask() argument
122 SkASSERT(mask.fBounds.contains(clip)); in blitMask()
125 int cx = clip.fLeft; in blitMask()
126 int cy = clip.fTop; in blitMask()
129 int height = clip.height(); in blitMask()
133 if (cx == maskLeft && clip.fRight == mask.fBounds.fRight) { in blitMask()
142 int rite_edge = clip.fRight - maskLeft; in blitMask()
179 int width = clip.width(); in blitMask()
182 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip.fTop); in blitMask()
187 int height = clip.height(); in blitMask()
[all …]
DSkBlitBWMaskTemplate.h26 static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, const SkIRect& clip S… in SK_BLITBWMASK_NAME()
28 SkASSERT(clip.fRight <= srcMask.fBounds.fRight); in SK_BLITBWMASK_NAME()
30 int cx = clip.fLeft; in SK_BLITBWMASK_NAME()
31 int cy = clip.fTop; in SK_BLITBWMASK_NAME()
35 unsigned height = clip.height(); in SK_BLITBWMASK_NAME()
44 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight) in SK_BLITBWMASK_NAME()
61 int rite_edge = clip.fRight - maskLeft; in SK_BLITBWMASK_NAME()
DSkScan_AntiPath.cpp43 const SkRegion& clip, bool isInverse);
75 BaseSuperBlitter::BaseSuperBlitter(SkBlitter* realBlit, const SkIRect& ir, const SkRegion& clip, in BaseSuperBlitter() argument
83 sectBounds = clip.getBounds(); in BaseSuperBlitter()
85 if (!sectBounds.intersect(ir, clip.getBounds())) { in BaseSuperBlitter()
106 SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkRegion& clip, bool isInverse);
151 SuperBlitter::SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkRegion& clip, in SuperBlitter() argument
153 : BaseSuperBlitter(realBlitter, ir, clip, isInverse) in SuperBlitter()
436 MaskSuperBlitter::MaskSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkRegion& clip, in MaskSuperBlitter() argument
438 : BaseSuperBlitter(realBlitter, ir, clip, isInverse) in MaskSuperBlitter()
449 if (!fClipRect.intersect(clip.getBounds())) { in MaskSuperBlitter()
[all …]
DSkBlitter_A8.cpp123 void SkA8_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask() argument
130 SkA8_BlitBW(fDevice, mask, clip); in blitMask()
132 SkA8_BlendBW(fDevice, mask, clip, fSrcA, in blitMask()
138 int x = clip.fLeft; in blitMask()
139 int y = clip.fTop; in blitMask()
140 int width = clip.width(); in blitMask()
141 int height = clip.height(); in blitMask()
322 void SkA8_Shader_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask() argument
324 this->INHERITED::blitMask(mask, clip); in blitMask()
328 int x = clip.fLeft; in blitMask()
[all …]
DSkQuadClipper.h25 void setClip(const SkIRect& clip);
39 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
40 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
55 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
56 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
DSkScan_Path.cpp309 void setBlitter(SkBlitter* blitter, const SkIRect& clip, int shift) { in setBlitter() argument
311 fFirstX = clip.fLeft << shift; in setBlitter()
312 fLastX = clip.fRight << shift; in setBlitter()
344 void blitMask(const SkMask&, const SkIRect& clip) override { in blitMask() argument
486 void sk_blit_above(SkBlitter* blitter, const SkIRect& ir, const SkRegion& clip) { in sk_blit_above() argument
487 const SkIRect& cr = clip.getBounds(); in sk_blit_above()
495 blitter->blitRectRegion(tmp, clip); in sk_blit_above()
499 void sk_blit_below(SkBlitter* blitter, const SkIRect& ir, const SkRegion& clip) { in sk_blit_below() argument
500 const SkIRect& cr = clip.getBounds(); in sk_blit_below()
508 blitter->blitRectRegion(tmp, clip); in sk_blit_below()
[all …]
DSkEdgeBuilder.cpp106 SkRect clip; in buildPoly() local
107 setShiftedClip(&clip, *iclip, shiftUp); in buildPoly()
118 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, canCullToTheRight); in buildPoly()
182 SkRect clip; in build() local
183 setShiftedClip(&clip, *iclip, shiftUp); in build()
195 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, canCullToTheRight); in build()
202 if (clipper.clipQuad(pts, clip)) { in build()
210 if (clipper.clipQuad(quadPts, clip)) { in build()
217 if (clipper.clipCubic(pts, clip)) { in build()
DSkBlitter_ARGB32.cpp18 const SkIRect& clip, SkPMColor srcColor) { in SkARGB32_Blit32() argument
26 int x = clip.fLeft; in SkARGB32_Blit32()
27 int y = clip.fTop; in SkARGB32_Blit32()
28 int width = clip.width(); in SkARGB32_Blit32()
29 int height = clip.height(); in SkARGB32_Blit32()
165 void SkARGB32_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask() argument
166 SkASSERT(mask.fBounds.contains(clip)); in blitMask()
173 if (SkBlitMask::BlitColor(fDevice, mask, clip, fColor)) { in blitMask()
178 SkARGB32_BlendBW(fDevice, mask, clip, fPMColor, SkAlpha255To256(255 - fSrcA)); in blitMask()
180 SkARGB32_Blit32(fDevice, mask, clip, fPMColor); in blitMask()
[all …]
/external/skia/tests/
DMatrixClipCollapseTest.cpp141 typedef void (*PFEmitMC)(SkCanvas* canvas, MatType mat, ClipType clip,
145 ClipType clip, DrawOpType draw,
148 ClipType clip, PFEmitBody emitBody, DrawOpType draw,
154 static void emit_clip(SkCanvas* canvas, ClipType clip) { in emit_clip() argument
155 switch (clip) { in emit_clip()
194 static void add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) { in add_clip() argument
200 switch (clip) { in add_clip()
325 static void emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, in emit_clip_and_mat() argument
328 emit_clip(canvas, clip); in emit_clip_and_mat()
336 add_clip(clip, mat, expected); in emit_clip_and_mat()
[all …]
DAAClipTest.cpp181 SkAAClip clip; in test_path_bounds() local
187 clip.setPath(path, NULL, true); in test_path_bounds()
188 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); in test_path_bounds()
201 clip.setPath(path, NULL, true); in test_path_bounds()
202 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height()); in test_path_bounds()
309 SkAAClip clip; in test_path_with_hole() local
310 clip.setPath(path, NULL, 1 == i); in test_path_with_hole()
313 clip.copyToMask(&mask); in test_path_with_hole()
327 SkAAClip clip; in test_really_a_rect() local
328 clip.setPath(path); in test_really_a_rect()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_clip.c46 struct pipe_clip_state clip; in update_clip() local
50 STATIC_ASSERT(sizeof(clip.ucp) <= sizeof(ctx->Transform._ClipUserPlane)); in update_clip()
59 memcpy(clip.ucp, in update_clip()
61 : ctx->Transform._ClipUserPlane, sizeof(clip.ucp)); in update_clip()
62 st->state.clip = clip; in update_clip()
63 cso_set_clip(st->cso_context, &clip); in update_clip()
/external/libvncserver/x11vnc/misc/
Dpanner.pl48 my $clip = '';
50 $clip = "${W}x${H}+0+0" unless $v{pointer_same};
54 my $cmd = "$x11vnc -clip $clip -bg " . join(" ", @ARGV);
70 my $clip_old = $clip;
76 if ($clip ne $clip_old) {
77 system("$x11vnc $query_args -R clip:$clip");
78 $clip_old = $clip
100 $clip = "${W}x${H}+$x+$y";
/external/icu/icu4c/source/samples/layout/
DSurface.cpp18 RECT clip; in drawGlyphs() local
20 clip.top = 0; in drawGlyphs()
21 clip.left = 0; in drawGlyphs()
22 clip.bottom = height; in drawGlyphs()
23 clip.right = width; in drawGlyphs()
27 ExtTextOut(fHdc, x, y - fAscent, ETO_CLIPPED | ETO_GLYPH_INDEX, &clip, in drawGlyphs()
/external/webp/src/dec/
Dquant.c16 static WEBP_INLINE int clip(int v, int M) { in clip() function
91 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)]; in VP8ParseQuant()
92 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)]; in VP8ParseQuant()
94 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2; in VP8ParseQuant()
98 m->y2_mat_[1] = (kAcTable[clip(q + dqy2_ac, 127)] * 101581) >> 16; in VP8ParseQuant()
101 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)]; in VP8ParseQuant()
102 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)]; in VP8ParseQuant()
/external/skia/src/effects/
DSkGpuBlurUtils.cpp48 const GrClip& clip, in convolve_gaussian_1d() argument
61 context->drawNonAARectToRect(rt, clip, paint, SkMatrix::I(), dstRect, srcRect); in convolve_gaussian_1d()
66 const GrClip& clip, in convolve_gaussian_2d() argument
84 context->drawNonAARectToRect(rt, clip, paint, SkMatrix::I(), dstRect, srcRect); in convolve_gaussian_2d()
89 const GrClip& clip, in convolve_gaussian() argument
99 convolve_gaussian_1d(context, rt, clip, srcRect, dstRect, texture, in convolve_gaussian()
131 convolve_gaussian_1d(context, rt, clip, srcRect, dstRect, texture, in convolve_gaussian()
135 convolve_gaussian_1d(context, rt, clip, lowerSrcRect, lowerDstRect, texture, in convolve_gaussian()
137 convolve_gaussian_1d(context, rt, clip, upperSrcRect, upperDstRect, texture, in convolve_gaussian()
139 convolve_gaussian_1d(context, rt, clip, middleSrcRect, middleDstRect, texture, in convolve_gaussian()
[all …]
/external/skia/src/gpu/
DGrTextContext.cpp35 void GrTextContext::init(GrRenderTarget* rt, const GrClip& clip, const GrPaint& grPaint, in init() argument
37 fClip = clip; in init()
50 void GrTextContext::drawText(GrRenderTarget* rt, const GrClip& clip, const GrPaint& paint, in drawText() argument
60 if (textContext->canDraw(rt, clip, paint, skPaint, viewMatrix)) { in drawText()
61 textContext->onDrawText(rt, clip, paint, skPaint, viewMatrix, text, byteLength, x, y, in drawText()
73 void GrTextContext::drawPosText(GrRenderTarget* rt, const GrClip& clip, const GrPaint& paint, in drawPosText() argument
84 if (textContext->canDraw(rt, clip, paint, skPaint, viewMatrix)) { in drawPosText()
85 textContext->onDrawPosText(rt, clip, paint, skPaint, viewMatrix, text, byteLength, pos, in drawPosText()
98 void GrTextContext::drawTextBlob(GrRenderTarget* rt, const GrClip& clip, const SkPaint& skPaint, in drawTextBlob() argument
127 this->drawText(rt, clip, grPaint, runPaint, viewMatrix, (const char *)it.glyphs(), in drawTextBlob()
[all …]
/external/skia/gm/
Dsimpleaaclip.cpp15 static void paint_rgn(SkCanvas* canvas, const SkAAClip& clip, in paint_rgn() argument
20 clip.copyToMask(&mask); in paint_rgn()
70 void buildRgn(SkAAClip* clip, SkRegion::Op op) { in buildRgn() argument
71 clip->setPath(fBasePath, NULL, true); in buildRgn()
75 clip->op(clip2, op); in buildRgn()
90 SkAAClip clip; in drawRgnOped() local
92 this->buildRgn(&clip, op); in drawRgnOped()
97 paint_rgn(canvas, clip, paint); in drawRgnOped()
/external/mesa3d/src/mesa/tnl/
Dt_vb_vertex.c44 GLvector4f clip; member
62 GLvector4f *clip, \
76 GLfloat *coord = (GLfloat *)clip->data; \
77 GLuint stride = clip->stride; \
78 GLuint count = clip->count; \
161 VB->ClipPtr = TransformRaw( &store->clip, in run_vertex_stage()
245 _mesa_vector4f_alloc( &store->clip, 0, size, 32 ); in init_vertex_stage()
252 !store->clip.data || in init_vertex_stage()
265 _mesa_vector4f_free( &store->clip ); in dtr()

12345678910