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

1234567891011>>

/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_clip.c42 /* 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
62 memcpy(clip.ucp,
64 : ctx->Transform._ClipUserPlane, sizeof(clip.ucp));
66 if (memcmp(&st->state.clip, &clip, sizeof(clip)) != 0) {
67 st->state.clip
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_clip_state.c44 sizeof(*vp), 32, &brw->clip.vp_offset);
60 struct brw_clip_unit_state *clip; local
69 clip = brw_state_batch(brw, AUB_TRACE_CLIP_STATE,
70 sizeof(*clip), 32, &brw->clip.state_offset);
71 memset(clip, 0, sizeof(*clip));
74 clip->thread0.grf_reg_count = (ALIGN(brw->clip.prog_data->total_grf, 16) /
76 clip
[all...]
/external/skia/src/core/
H A DSkScan.cpp28 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, argument
31 if (clip) {
32 if (clip->isRect()) {
33 const SkIRect& clipBounds = clip->getBounds();
44 SkRegion::Cliperator cliper(*clip, r);
58 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, argument
63 SkScan::FillIRect(r, clip, blitter);
66 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, argument
71 SkScan::FillIRect(ir, clip, blitter);
76 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, argument
91 FillXRect(const SkXRect& xr, const SkRasterClip& clip, SkBlitter* blitter) argument
106 FillRect(const SkRect& r, const SkRasterClip& clip, SkBlitter* blitter) argument
[all...]
H A DSkLineClipper.cpp77 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, argument
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
160 ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[], bool canCullToTheRight) argument
[all...]
H A DSkLineClipper.h20 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that
21 lie completely above or below the clip. For portions to the left or
23 edge of the clip.
31 static int ClipLine(const SkPoint pts[2], const SkRect& clip,
42 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, SkPoint dst[2]);
H A DSkEdgeClipper.cpp13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { argument
14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop;
46 bool SkEdgeClipper::clipLine(SkPoint p0, SkPoint p1, const SkRect& clip) { argument
52 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, fCanCullToTheRight);
92 // Modify pts[] in place so that it is clipped in Y to the clip rect
93 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { argument
98 if (pts[0].fY < clip.fTop) {
99 if (chopMonoQuadAtY(pts, clip.fTop, &t)) {
103 tmp[2].fY = clip
142 clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) argument
216 clipQuad(const SkPoint srcPts[3], const SkRect& clip) argument
278 chop_cubic_in_Y(SkPoint pts[4], const SkRect& clip) argument
332 clipMonoCubic(const SkPoint src[4], const SkRect& clip) argument
411 clipCubic(const SkPoint srcPts[4], const SkRect& clip) argument
[all...]
H A DSkEdgeClipper.h14 /** This is basically an iterator. It is initialized with an edge and a clip,
21 bool clipLine(SkPoint p0, SkPoint p1, const SkRect& 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);
H A DSkQuadClipper.h14 /** This class is initialized with a clip rectangle, and then can be fed quads,
17 In the future, it might return a series of segments, allowing it to clip
24 void setClip(const SkIRect& clip);
38 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
39 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
54 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
55 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
/external/skqp/src/core/
H A DSkScan.cpp28 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, argument
31 if (clip) {
32 if (clip->isRect()) {
33 const SkIRect& clipBounds = clip->getBounds();
44 SkRegion::Cliperator cliper(*clip, r);
58 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, argument
63 SkScan::FillIRect(r, clip, blitter);
66 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, argument
71 SkScan::FillIRect(ir, clip, blitter);
76 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, argument
91 FillXRect(const SkXRect& xr, const SkRasterClip& clip, SkBlitter* blitter) argument
106 FillRect(const SkRect& r, const SkRasterClip& clip, SkBlitter* blitter) argument
[all...]
H A DSkLineClipper.cpp77 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, argument
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
160 ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[], bool canCullToTheRight) argument
[all...]
H A DSkLineClipper.h20 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that
21 lie completely above or below the clip. For portions to the left or
23 edge of the clip.
31 static int ClipLine(const SkPoint pts[2], const SkRect& clip,
42 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, SkPoint dst[2]);
H A DSkEdgeClipper.cpp13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { argument
14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop;
46 bool SkEdgeClipper::clipLine(SkPoint p0, SkPoint p1, const SkRect& clip) { argument
52 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, fCanCullToTheRight);
92 // Modify pts[] in place so that it is clipped in Y to the clip rect
93 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { argument
98 if (pts[0].fY < clip.fTop) {
99 if (chopMonoQuadAtY(pts, clip.fTop, &t)) {
103 tmp[2].fY = clip
142 clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) argument
216 clipQuad(const SkPoint srcPts[3], const SkRect& clip) argument
278 chop_cubic_in_Y(SkPoint pts[4], const SkRect& clip) argument
332 clipMonoCubic(const SkPoint src[4], const SkRect& clip) argument
411 clipCubic(const SkPoint srcPts[4], const SkRect& clip) argument
[all...]
H A DSkEdgeClipper.h14 /** This is basically an iterator. It is initialized with an edge and a clip,
21 bool clipLine(SkPoint p0, SkPoint p1, const SkRect& 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);
H A DSkQuadClipper.h14 /** This class is initialized with a clip rectangle, and then can be fed quads,
17 In the future, it might return a series of segments, allowing it to clip
24 void setClip(const SkIRect& clip);
38 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
39 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
54 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
55 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
/external/icu/icu4c/source/samples/layout/
H A DSurface.cpp21 RECT clip; local
23 clip.top = 0;
24 clip.left = 0;
25 clip.bottom = height;
26 clip.right = width;
30 ExtTextOut(fHdc, x, y - fAscent, ETO_CLIPPED | ETO_GLYPH_INDEX, &clip,
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
H A DShadowClipboardManager.java24 private ClipData clip; field in class:ShadowClipboardManager
27 public void setPrimaryClip(ClipData clip) { argument
29 if (clip != null) {
30 clip.prepareToLeaveProcess(true);
33 if (clip != null) {
34 ReflectionHelpers.callInstanceMethod(ClipData.class, clip, "prepareToLeaveProcess");
38 this.clip = clip;
47 return clip;
52 return clip
[all...]
/external/skia/src/gpu/
H A DGrGpuCommandBuffer.cpp19 void GrGpuRTCommandBuffer::clear(const GrFixedClip& clip, GrColor color) { argument
23 SkASSERT(!clip.scissorEnabled() ||
24 (SkIRect::MakeWH(rt->width(), rt->height()).contains(clip.scissorRect()) &&
25 SkIRect::MakeWH(rt->width(), rt->height()) != clip.scissorRect()));
27 this->onClear(clip, color);
30 void GrGpuRTCommandBuffer::clearStencilClip(const GrFixedClip& clip, bool insideStencilMask) { argument
31 this->onClearStencilClip(clip, insideStencilMask);
/external/skqp/src/gpu/
H A DGrGpuCommandBuffer.cpp19 void GrGpuRTCommandBuffer::clear(const GrFixedClip& clip, GrColor color) { argument
23 SkASSERT(!clip.scissorEnabled() ||
24 (SkIRect::MakeWH(rt->width(), rt->height()).contains(clip.scissorRect()) &&
25 SkIRect::MakeWH(rt->width(), rt->height()) != clip.scissorRect()));
27 this->onClear(clip, color);
30 void GrGpuRTCommandBuffer::clearStencilClip(const GrFixedClip& clip, bool insideStencilMask) { argument
31 this->onClearStencilClip(clip, insideStencilMask);
/external/webp/src/dec/
H A Dquant_dec.c16 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/tensorflow/tensorflow/contrib/nn/python/ops/
H A Dscaled_softplus.py39 def scaled_softplus(x, alpha, clip=None, name=None):
40 """Returns `y = alpha * ln(1 + exp(x / alpha))` or `min(y, clip)`.
45 tends to relu(x), and scaled_softplus(x, alpha, clip=6) tends to relu6(x).
54 clip: (optional) A `Tensor`, the upper bound to clip the values.
61 clipping = clip is not None
63 [x, alpha] + ([clip] if clipping else [])):
70 clip = ops.convert_to_tensor(clip, dtype=dtype, name='clip')
[all...]
/external/skia/tests/
H A DMatrixClipCollapseTest.cpp18 // 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 objects
47 // rendering before and after images. Additionally the matrix/clip collaps
154 emit_clip(SkCanvas* canvas, ClipType clip) argument
194 add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) argument
325 emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
346 emit_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
369 emit_double_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
394 emit_mat_clip_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
417 emit_body0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
438 emit_body1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
466 emit_body2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
504 emit_body3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
552 emit_struct0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
568 emit_struct1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
591 emit_struct2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
620 emit_struct3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
[all...]
/external/skqp/tests/
H A DMatrixClipCollapseTest.cpp18 // 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 objects
47 // rendering before and after images. Additionally the matrix/clip collaps
154 emit_clip(SkCanvas* canvas, ClipType clip) argument
194 add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) argument
325 emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
346 emit_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
369 emit_double_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
394 emit_mat_clip_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
417 emit_body0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
438 emit_body1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
466 emit_body2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
504 emit_body3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument
552 emit_struct0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
568 emit_struct1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
591 emit_struct2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
620 emit_struct3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument
[all...]
/external/pdfium/core/fxge/dib/
H A Dfx_dib_main.cpp53 FX_RECT FXDIB_SwapClipBox(FX_RECT& clip, argument
60 rect.left = height - clip.top;
61 rect.right = height - clip.bottom;
63 rect.left = clip.top;
64 rect.right = clip.bottom;
67 rect.top = width - clip.left;
68 rect.bottom = width - clip.right;
70 rect.top = clip.left;
71 rect.bottom = clip.right;
/external/fec/
H A Dsim.c33 unsigned char addnoise(int sym,double amp,double gain,double offset,int clip){ argument
40 else if(sample > clip)
41 sample = clip;
/external/skia/experimental/sksg/effects/
H A DSkSGClipEffect.cpp16 ClipEffect::ClipEffect(sk_sp<RenderNode> child, sk_sp<GeometryNode> clip, bool aa) argument
18 , fClipNode(std::move(clip))
33 fClipNode->clip(canvas, fAntiAlias);

Completed in 1574 milliseconds

1234567891011>>