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

1 2 3 4 5 6 7 8 91011>>

  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_clip_state.c 41 struct brw_clip_unit_state *clip; local
43 clip = brw_state_batch(brw, AUB_TRACE_CLIP_STATE,
44 sizeof(*clip), 32, &brw->clip.state_offset);
45 memset(clip, 0, sizeof(*clip));
48 clip->thread0.grf_reg_count = (ALIGN(brw->clip.prog_data->total_grf, 16) /
50 clip->thread0.kernel_start_pointer =
52 brw->clip.state_offset
    [all...]
  /external/mesa3d/src/mesa/state_tracker/
st_atom_clip.c 42 /* Second state atom for user clip planes:
46 struct pipe_clip_state clip; local
50 STATIC_ASSERT(sizeof(clip.ucp) <= sizeof(ctx->Transform._ClipUserPlane));
52 /* if we have a vertex shader that writes clip vertex we need to pass
59 memcpy(clip.ucp,
61 : ctx->Transform._ClipUserPlane, sizeof(clip.ucp));
62 st->state.clip = clip;
63 cso_set_clip(st->cso_context, &clip);
  /external/skia/src/core/
SkScan.cpp 18 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip,
21 if (clip) {
22 if (clip->isRect()) {
23 const SkIRect& clipBounds = clip->getBounds();
34 SkRegion::Cliperator cliper(*clip, r);
48 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip,
53 SkScan::FillIRect(r, clip, blitter);
56 void SkScan::FillRect(const SkRect& r, const SkRegion* clip,
61 SkScan::FillIRect(ir, clip, blitter);
66 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip,
    [all...]
SkLineClipper.cpp 77 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip,
82 if (containsNoEmptyCheck(clip, bounds)) {
90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) ||
91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) ||
92 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) ||
93 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) {
111 if (tmp[index0].fY < clip.fTop) {
112 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop);
114 if (tmp[index1].fY > clip.fBottom)
    [all...]
SkLineClipper.h 21 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that
22 lie completely above or below the clip. For portions to the left or
24 edge of the clip.
32 static int ClipLine(const SkPoint pts[2], const SkRect& clip,
43 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, SkPoint dst[2]);
SkEdgeClipper.cpp 13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) {
14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop;
75 // Modify pts[] in place so that it is clipped in Y to the clip rect
76 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) {
81 if (pts[0].fY < clip.fTop) {
82 if (chopMonoQuadAtY(pts, clip.fTop, &t)) {
86 tmp[2].fY = clip.fTop;
87 clamp_ge(tmp[3].fY, clip.fTop);
95 if (pts[i].fY < clip.fTop)
    [all...]
SkScanPriv.h 18 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds,
31 // clipRect == null means path is entirely inside the clip
36 // blit the rects above and below avoid, clipped to clip
37 void sk_blit_above(SkBlitter*, const SkIRect& avoid, const SkRegion& clip);
38 void sk_blit_below(SkBlitter*, const SkIRect& avoid, const SkRegion& clip);
SkEdgeClipper.h 15 /** This is basically an iterator. It is initialized with an edge and a clip,
22 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
23 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
41 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
42 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
SkQuadClipper.h 15 /** This class is initialized with a clip rectangle, and then can be fed quads,
18 In the future, it might return a series of segments, allowing it to clip
25 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);
SkRasterClip.cpp 103 // These ops can only shrink the current clip. So leaving
104 // the clip unchanged conservatively respects the contract.
110 // These ops can grow the current clip up to the extents of
111 // the input clip, which is inverse filled, so we just set
112 // the current clip to the device bounds.
125 // Difference can only shrink the current clip.
126 // Leaving clip unchanged conservatively fullfills the contract.
144 bool SkRasterClip::setPath(const SkPath& path, const SkRegion& clip, bool doAA) {
148 return this->setConservativeRect(path.getBounds(), clip.getBounds(), path.isInverseFillType());
152 (void)fBW.setPath(path, clip);
    [all...]
SkScan_Antihair.cpp 19 our extends. The bug is that when this happens, we will set the clip to
20 nullptr (for speed), and thus draw outside of the clip by a pixel, which might
26 case (i.e. not setting the clip to nullptr) when we might not actually need
306 const SkIRect* clip, SkBlitter* blitter) {
314 // The caller must clip the line to [-32767.0 ... 32767.0] ahead of time
324 values are huge. A better fix might be to clip the original pts
330 do_anti_hairline(x0, y0, hx, hy, clip, blitter);
331 do_anti_hairline(hx, hy, x1, y1, clip, blitter);
375 if (clip){
376 if (istart >= clip->fRight || istop <= clip->fLeft)
    [all...]
SkCubicClipper.h 16 /** This class is initialized with a clip rectangle, and then can be fed cubics,
19 In the future, it might return a series of segments, allowing it to clip
26 void setClip(const SkIRect& clip);
  /external/icu/icu4c/source/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,
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
RoundedRectHelper.java 42 public void setClipToRoundedOutline(View view, boolean clip, int radius) {
43 mImpl.setClipToRoundedOutline(view, clip, radius);
49 public void setClipToRoundedOutline(View view, boolean clip) {
50 mImpl.setClipToRoundedOutline(view, clip, view.getResources().getDimensionPixelSize(
55 public void setClipToRoundedOutline(View view, boolean clip, int radius);
66 public void setClipToRoundedOutline(View view, boolean clip, int radius) {
79 public void setClipToRoundedOutline(View view, boolean clip, int radius) {
80 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius);
  /external/opencv3/3rdparty/libwebp/dec/
quant.c 20 static WEBP_INLINE int clip(int v, int M) { function
95 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)];
96 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)];
98 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2;
102 m->y2_mat_[1] = (kAcTable[clip(q + dqy2_ac, 127)] * 101581) >> 16;
105 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)];
106 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)];
  /external/webp/src/dec/
quant.c 16 static WEBP_INLINE int clip(int v, int M) { function
91 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)];
92 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)];
94 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2;
98 m->y2_mat_[1] = (kAcTable[clip(q + dqy2_ac, 127)] * 101581) >> 16;
101 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)];
102 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)];
  /external/skia/tests/
MatrixClipCollapseTest.cpp 15 // This test exercises the Matrix/Clip State collapsing system. It generates
18 // overall structure, bodies that draw something and model/clip state changes.
23 // be completely removed by the matrix/clip collapse. Note: every save in
32 // The ModelClip methods output matrix and clip ops in various orders and
34 // expected matrix & clip ops. Note that, currently, the entire clip stack
35 // is output for each MC state so the clip operations accumulate down the
39 // check on clip offsets
40 // - not sure if this is possible. The desire is to verify that the clip
43 // offset stored in the SkPicture to the debugger's clip object
    [all...]
FillPathTest.cpp 31 SkIRect clip; local
36 clip.set(0, height - expected_lines, width, height);
42 SkScan::FillPath(path, clip, &blitter);
  /frameworks/native/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/opencv3/3rdparty/libwebp/dsp/
yuv.c 29 static WEBP_INLINE uint8_t clip(int v, int max_value) { function
47 VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255);
48 VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15);
59 VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255);
60 VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15);
  /external/fec/
sim.c 33 unsigned char addnoise(int sym,double amp,double gain,double offset,int clip){
37 /* Clip to 8-bit offset range */
40 else if(sample > clip)
41 sample = clip;
  /external/skia/src/gpu/
GrPathRenderingDrawContext.cpp 18 void GrPathRenderingDrawContext::drawText(const GrClip& clip, const GrPaint& grPaint,
32 fStencilAndCoverTextContext->drawText(this->drawingManager()->getContext(), this, clip, grPaint,
37 void GrPathRenderingDrawContext::drawPosText(const GrClip& clip, const GrPaint& grPaint,
52 fStencilAndCoverTextContext->drawPosText(this->drawingManager()->getContext(), this, clip,
58 void GrPathRenderingDrawContext::drawTextBlob(const GrClip& clip, const SkPaint& skPaint,
71 fStencilAndCoverTextContext->drawTextBlob(this->drawingManager()->getContext(), this, clip,
GrClip.cpp 16 * getConservativeBounds returns the conservative bounding box of the clip
51 static const GrClip clip; local
52 return clip;
  /cts/tests/tests/content/src/android/content/cts/
ClipboardManagerListenerActivity.java 46 public synchronized void setPrimaryClip(ClipData clip) {
47 mClipboardManager.setPrimaryClip(clip);
  /frameworks/base/core/java/android/content/
ClipboardManager.java 80 * Defines a listener callback that is invoked when the primary clip on the clipboard changes.
91 * clip changes.
113 * Sets the current primary clip on the clipboard. This is the clip that
116 * @param clip The clipped data item to set.
118 public void setPrimaryClip(ClipData clip) {
120 if (clip != null) {
121 clip.prepareToLeaveProcess(true);
123 getService().setPrimaryClip(clip, mContext.getOpPackageName());
130 * Returns the current primary clip on the clipboard
196 ClipData clip = getPrimaryClip(); local
    [all...]

Completed in 766 milliseconds

1 2 3 4 5 6 7 8 91011>>