Home
last modified time | relevance | path

Searched refs:maxX (Results 1 – 25 of 65) sorted by relevance

123

/external/skia/src/core/
DSkBitmapProcState_matrix_template.h22 const unsigned maxX = s.fPixmap.width() - 1; in NoFilterProc_Scale() local
31 if (0 == maxX) { in NoFilterProc_Scale()
39 if (tryDecal && can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { in NoFilterProc_Scale()
46 a = TileProc::X(s, SkFractionalIntToFixed(fx), maxX); fx += dx; in NoFilterProc_Scale()
47 b = TileProc::X(s, SkFractionalIntToFixed(fx), maxX); fx += dx; in NoFilterProc_Scale()
53 a = TileProc::X(s, SkFractionalIntToFixed(fx), maxX); fx += dx; in NoFilterProc_Scale()
54 b = TileProc::X(s, SkFractionalIntToFixed(fx), maxX); fx += dx; in NoFilterProc_Scale()
63 *xx++ = TileProc::X(s, SkFractionalIntToFixed(fx), maxX); fx += dx; in NoFilterProc_Scale()
86 int maxX = s.fPixmap.width() - 1; in NoFilterProc_Affine() local
91 TileProc::X(s, SkFractionalIntToFixed(fx), maxX); in NoFilterProc_Affine()
[all …]
DSkBitmapProcState_matrix.h58 const unsigned maxX = s.fPixmap.width() - 1; in SCALE_FILTER_NAME() local
74 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { in SCALE_FILTER_NAME()
82 *xy++ = PACK_FILTER_X_NAME(fixedFx, maxX, one PREAMBLE_ARG_X); in SCALE_FILTER_NAME()
104 unsigned maxX = s.fPixmap.width() - 1; in AFFINE_FILTER_NAME() local
110 *xy++ = PACK_FILTER_X_NAME(fx, maxX, oneX PREAMBLE_ARG_X); in AFFINE_FILTER_NAME()
121 unsigned maxX = s.fPixmap.width() - 1; in PERSP_FILTER_NAME() local
135 *xy++ = PACK_FILTER_X_NAME(srcXY[0] - (oneX >> 1), maxX, in PERSP_FILTER_NAME()
DSkBitmapProcState_shaderproc.h25 const unsigned maxX = s.fPixmap.width() - 1; in SCALE_FILTER_NAME()
55 unsigned subX = TILEX_LOW_BITS(fx, maxX); in SCALE_FILTER_NAME()
56 unsigned x0 = TILEX_PROCF(fx, maxX); in SCALE_FILTER_NAME()
57 unsigned x1 = TILEX_PROCF((fx + oneX), maxX); in SCALE_FILTER_NAME()
DSkBitmapProcState.cpp386 const int maxX = s.fPixmap.width() - 1; in Clamp_S32_D32_nofilter_trans_shaderproc() local
405 if (ix <= maxX) { in Clamp_S32_D32_nofilter_trans_shaderproc()
406 int n = SkMin32(maxX - ix + 1, count); in Clamp_S32_D32_nofilter_trans_shaderproc()
416 sk_memset32(colors, row[maxX], count); in Clamp_S32_D32_nofilter_trans_shaderproc()
778 const unsigned maxX = s.fPixmap.width() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() local
793 if ((uint64_t)SkFractionalIntToInt(fx) <= maxX && in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
794 (uint64_t)SkFractionalIntToInt(fx + dx * (count - 1)) <= maxX) in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
810 SkASSERT(index <= maxX); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
816 dst[i] = src[SkClampMax(SkFractionalIntToInt(fx), maxX)]; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
/external/opencv3/3rdparty/openexr/IlmImf/
DImfTiledMisc.cpp74 int minX, int maxX, in dataWindowForLevel() argument
81 V2i (levelSize (minX, maxX, lx, tileDesc.roundingMode) - 1, in dataWindowForLevel()
90 int minX, int maxX, in dataWindowForTile() argument
101 (tileDesc, minX, maxX, minY, maxY, lx, ly).max; in dataWindowForTile()
181 int minX, int maxX, in calculateNumXLevels() argument
196 int w = maxX - minX + 1; in calculateNumXLevels()
205 int w = maxX - minX + 1; in calculateNumXLevels()
221 int minX, int maxX, in calculateNumYLevels() argument
236 int w = maxX - minX + 1; in calculateNumYLevels()
277 int minX, int maxX, in precalculateTileInfo() argument
[all …]
DImfTiledMisc.h54 int minX, int maxX,
59 int minX, int maxX,
67 int minX, int maxX,
DImfPizCompressor.cpp333 int maxX = range.max.x; in compress() local
340 if (maxX > _maxX) in compress()
341 maxX = _maxX; in compress()
355 cd.nx = numSamples (c.channel().xSampling, minX, maxX); in compress()
509 int maxX = range.max.x; in uncompress() local
516 if (maxX > _maxX) in uncompress()
517 maxX = _maxX; in uncompress()
531 cd.nx = numSamples (c.channel().xSampling, minX, maxX); in uncompress()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DRectRegion.java44 public RectRegion(Number minX, Number maxX, Number minY, Number maxY, String label) { in RectRegion() argument
45 xLineRegion = new LineRegion(minX, maxX); in RectRegion()
51 public RectRegion(Number minX, Number maxX, Number minY, Number maxY) { in RectRegion() argument
52 this(minX, maxX, minY, maxY, null); in RectRegion()
89 public boolean intersects(Number minX, Number maxX, Number minY, Number maxY) { in intersects() argument
90 return xLineRegion.intersects(minX, maxX) && yLineRegion.intersects(minY, maxY); in intersects()
131 …public static List<RectRegion> regionsWithin(List<RectRegion> regions, Number minX, Number maxX, N… in regionsWithin() argument
134 if(r.intersects(minX, maxX, minY, maxY)) { in regionsWithin()
154 public void setMaxX(Number maxX) { in setMaxX() argument
155 xLineRegion.setMaxVal(maxX); in setMaxX()
/external/skia/src/opts/
DSkBitmapProcState_opts_SSE2.cpp252 const unsigned maxX = s.fPixmap.width() - 1; in ClampX_ClampY_filter_scale_SSE2() local
265 if (dx > 0 && (unsigned)(fx >> 16) <= maxX && in ClampX_ClampY_filter_scale_SSE2()
266 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) { in ClampX_ClampY_filter_scale_SSE2()
307 if ((count >= 4) && (maxX <= 0xFFFF)) { in ClampX_ClampY_filter_scale_SSE2()
309 *xy++ = ClampX_ClampY_pack_filter(fx, maxX, one); in ClampX_ClampY_filter_scale_SSE2()
318 __m128i wide_maxX = _mm_set1_epi32(maxX); in ClampX_ClampY_filter_scale_SSE2()
358 *xy++ = ClampX_ClampY_pack_filter(fx, maxX, one); in ClampX_ClampY_filter_scale_SSE2()
373 const unsigned maxX = s.fPixmap.width() - 1; in ClampX_ClampY_nofilter_scale_SSE2() local
379 if (0 == maxX) { in ClampX_ClampY_nofilter_scale_SSE2()
388 if ((unsigned)(fx >> 16) <= maxX && in ClampX_ClampY_nofilter_scale_SSE2()
[all …]
DSkBitmapProcState_matrix_neon.h38 const unsigned maxX = s.fPixmap.width() - 1; in SCALE_NOFILTER_NAME() local
47 if (0 == maxX) { in SCALE_NOFILTER_NAME()
57 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { in SCALE_NOFILTER_NAME()
89 fx8 = TILEX_PROCF_NEON8(lbase, hbase, maxX); in SCALE_NOFILTER_NAME()
105 *xx++ = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); in SCALE_NOFILTER_NAME()
124 int maxX = s.fPixmap.width() - 1; in AFFINE_NOFILTER_NAME() local
156 hi16.val[0] = TILEX_PROCF_NEON8(xbase, x2base, maxX); in AFFINE_NOFILTER_NAME()
177 TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); in AFFINE_NOFILTER_NAME()
189 int maxX = s.fPixmap.width() - 1; in PERSP_NOFILTER_NAME() local
209 hi16.val[0] = TILEX_PROCF_NEON8(xy1.val[0], xy2.val[0], maxX); in PERSP_NOFILTER_NAME()
[all …]
/external/skia/src/pathops/
DSkReduceOrder.cpp38 int minX, int maxX, int minY, int maxY, SkDQuad& reduction) { in check_linear() argument
55 int index, minX, maxX, minY, maxY; in reduce() local
57 minX = maxX = minY = maxY = 0; in reduce()
66 if (quad[maxX].fX < quad[index].fX) { in reduce()
67 maxX = index; in reduce()
90 int result = check_linear(quad, minX, maxX, minY, maxY, fQuad); in reduce()
149 int minX, int maxX, int minY, int maxY, SkDCubic& reduction) { in check_linear() argument
186 int index, minX, maxX, minY, maxY; in reduce() local
188 minX = maxX = minY = maxY = 0; in reduce()
197 if (cubic[maxX].fX < cubic[index].fX) { in reduce()
[all …]
/external/opencv3/modules/imgproc/src/opencl/
DboxFilter.cl64 #define EXTRAPOLATE(x, y, minX, minY, maxX, maxY) \
66 x = max(min(x, maxX - 1), minX); \
70 #define EXTRAPOLATE(x, y, minX, minY, maxX, maxY) \
73 x -= ((x - maxX + 1) / maxX) * maxX; \
74 if (x >= maxX) \
75 x %= maxX; \
82 #define EXTRAPOLATE_(x, y, minX, minY, maxX, maxY, delta) \
84 if (maxX - minX == 1) \
92 x = maxX - 1 - (x - maxX) - delta; \
94 while (x >= maxX || x < minX); \
[all …]
Dfilter2DSmall.cl86 #define EXTRAPOLATE(x, y, minX, minY, maxX, maxY) \
88 x = max(min(x, maxX - 1), minX); \
92 #define EXTRAPOLATE(x, y, minX, minY, maxX, maxY) \
95 x -= ((x - maxX + 1) / maxX) * maxX; \
96 if (x >= maxX) \
97 x %= maxX; \
104 #define EXTRAPOLATE_(x, y, minX, minY, maxX, maxY, delta) \
106 if (maxX - minX == 1) \
114 x = maxX - 1 - (x - maxX) - delta; \
116 while (x >= maxX || x < minX); \
[all …]
DfilterSmall.cl51 #define EXTRAPOLATE(x, y, minX, minY, maxX, maxY) \
53 x = max(min(x, maxX - 1), minX); \
57 #define EXTRAPOLATE(x, y, minX, minY, maxX, maxY) \
60 x -= ((x - maxX + 1) / maxX) * maxX; \
61 if (x >= maxX) \
62 x %= maxX; \
69 #define EXTRAPOLATE_(x, y, minX, minY, maxX, maxY, delta) \
71 if (maxX - minX == 1) \
79 x = maxX - 1 - (x - maxX) - delta; \
81 while (x >= maxX || x < minX); \
[all …]
/external/skia/src/utils/
DSkDashPath.cpp117 SkScalar maxX = pts[1].fX; in cull_path() local
120 SkTSwap(minX, maxX); in cull_path()
123 SkASSERT(minX <= maxX); in cull_path()
124 if (maxX < bounds.fLeft || minX > bounds.fRight) { in cull_path()
136 if (maxX > bounds.fRight) { in cull_path()
137 maxX = bounds.fRight + SkScalarMod(maxX - bounds.fRight, in cull_path()
141 SkASSERT(maxX >= minX); in cull_path()
143 SkTSwap(minX, maxX); in cull_path()
146 pts[1].fX = maxX; in cull_path()
/external/skia/src/effects/
DSkDashPathEffect.cpp91 SkScalar maxX = pts[1].fX; in cull_line() local
94 SkTSwap(minX, maxX); in cull_line()
97 SkASSERT(minX < maxX); in cull_line()
98 if (maxX <= bounds.fLeft || minX >= bounds.fRight) { in cull_line()
109 if (maxX > bounds.fRight) { in cull_line()
110 maxX = bounds.fRight + SkScalarMod(maxX - bounds.fRight, intervalLength); in cull_line()
113 SkASSERT(maxX > minX); in cull_line()
115 SkTSwap(minX, maxX); in cull_line()
118 pts[1].fX = maxX; in cull_line()
/external/opencv3/modules/cudalegacy/src/cuda/
Dbm.cu72 … const int maxX, const int maxY, const int acceptLevel, const int escapeLevel, in calcOptFlowBM() argument
92 if (0 <= X2 && X2 <= maxX && 0 <= Y2 && Y2 <= maxY) in calcOptFlowBM()
112 if (0 <= X2 && X2 <= maxX && 0 <= Y2 && Y2 <= maxY) in calcOptFlowBM()
152 …int maxX, int maxY, int acceptLevel, int escapeLevel, const short2* ss, int ssCount, cudaStream_t … in calc() argument
161maxX, maxY, acceptLevel, escapeLevel, ss, ssCount); in calc()
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DRectangle.java234 float maxX = Math.max(x + width, rect.x + rect.width); in merge() local
236 width = maxX - minX; in merge()
252 float maxX = Math.max(this.x + width, x); in merge() local
254 this.width = maxX - minX; in merge()
276 float maxX = x + width; in merge() local
282 maxX = Math.max(maxX, v.x); in merge()
287 width = maxX - minX; in merge()
DPolygon.java176 float maxX = vertices[0]; in getBoundingRectangle() local
183 maxX = maxX < vertices[i] ? vertices[i] : maxX; in getBoundingRectangle()
190 bounds.width = maxX - minX; in getBoundingRectangle()
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DScrollPane.java65 float maxX, maxY; field in ScrollPane
252 scrollX(overscrollX ? MathUtils.clamp(amountX, -overscrollDistance, maxX + overscrollDistance) in clamp()
253 : MathUtils.clamp(amountX, 0, maxX)); in clamp()
292 if (amountX >= maxX + overscrollDistance) velocityX = 0; in act()
307 …((!touchScrollH || (scrollX && maxX / (hScrollBounds.width - hKnobBounds.width) > areaWidth * 0.1f… in act()
337 } else if (amountX > maxX) { in act()
340 + (overscrollSpeedMax - overscrollSpeedMin) * -(maxX - amountX) / overscrollDistance) * delta; in act()
341 if (amountX < maxX) scrollX(maxX); in act()
454 maxX = widgetWidth - areaWidth; in layout()
460 maxX -= scrollbarWidth; in layout()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DAABoxCollisionVolume.java104 final float maxX; in growBy() local
111 maxX = Math.max(getMaxX(), other.getMaxX()); in growBy()
116 maxX = other.getMaxX(); in growBy()
121 final float horizontalDelta = maxX - minX; in growBy()
DSphereCollisionVolume.java130 final float maxX; in growBy() local
137 maxX = Math.max(getMaxX(), other.getMaxX()); in growBy()
142 maxX = other.getMaxX(); in growBy()
147 final float horizontalDelta = maxX - minX; in growBy()
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/
DChart.java41 int maxX, maxY; field in Chart
118 float nextX = movingIndex == points.size() - 1 ? maxX : points.get(movingIndex + 1).x - 0.001f; in Chart()
122 point.x = Math.min(nextX, Math.max(prevX, (event.getX() - chartX) / (float)chartWidth * maxX)); in Chart()
137 int x = chartX + (int)(chartWidth * (point.x / (float)maxX)); in Chart()
181 point.x = Math.min(maxX, Math.max(0, x - chartX) / (float)chartWidth * maxX); in pixelToPoint()
188 pixel.x = chartX + (int)(chartWidth * (point.x / (float)maxX)); in pointToPixel()
232 maxX = 1; in paintComponent()
242 String label = axisLabel(maxX * percent); in paintComponent()
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rjsmin/bench/
Dmarkermanager.js287 var horizontal = minX <= point.x && point.x <= this.shownBounds_.maxX;
489 this.maxX = Math.max(bounds[0].x, bounds[1].x);
501 …if (this.maxX === gridBounds.maxX && this.maxY === gridBounds.maxY && this.minX === gridBounds.min…
515 …return (outer.minX <= point.x && outer.maxX >= point.x && outer.minY <= point.y && outer.maxY >= p…
764 for (var x = bounds.minX; x <= bounds.maxX; x++) {
845 var maxX1 = bounds1.maxX;
849 var maxX2 = bounds2.maxX;
/external/skia/tests/
DPathOpsCubicReduceOrderTest.cpp24 int index, minX, maxX, minY, maxY;
25 minX = maxX = minY = maxY = 0;
33 if (cubic[maxX].fX < cubic[index].fX) {
34 maxX = index;
40 return approximately_equal(cubic[maxX].fX, cubic[minX].fX)

123