Home
last modified time | relevance | path

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

12345

/third_party/flutter/skia/src/pathops/
DSkReduceOrder.cpp39 int minX, int maxX, int minY, int maxY, SkDQuad& reduction) { in check_linear() argument
56 int index, minX, maxX, minY, maxY; in reduce() local
58 minX = maxX = minY = maxY = 0; in reduce()
67 if (quad[maxX].fX < quad[index].fX) { in reduce()
68 maxX = index; in reduce()
93 int result = check_linear(quad, minX, maxX, minY, maxY, fQuad); in reduce()
152 int minX, int maxX, int minY, int maxY, SkDCubic& reduction) { in check_linear() argument
189 int index, minX, maxX, minY, maxY; in reduce() local
191 minX = maxX = minY = maxY = 0; in reduce()
200 if (cubic[maxX].fX < cubic[index].fX) { in reduce()
[all …]
DSkPathOpsCurve.cpp16 double maxX = minX; in nearPoint() local
19 maxX = SkTMax(maxX, fCubic.fPts[index].fX); in nearPoint()
21 if (!AlmostBetweenUlps(minX, xy.fX, maxX)) { in nearPoint()
48 double largest = SkTMax(SkTMax(maxX, maxY), -SkTMin(minX, minY)); in nearPoint()
DSkOpAngle.cpp577 double minX, minY, maxX, maxY; in endsIntersect() local
579 maxX = maxY = -SK_ScalarInfinity; in endsIntersect()
585 maxX = SkTMax(maxX, curve[idx2].fX); in endsIntersect()
588 double maxWidth = SkTMax(maxX - minX, maxY - minY); in endsIntersect()
662 double minX, minY, maxX, maxY; in endToSide() local
664 maxX = maxY = -SK_ScalarInfinity; in endToSide()
670 maxX = SkTMax(maxX, curve[idx2].fX); in endToSide()
673 double maxWidth = SkTMax(maxX - minX, maxY - minY); in endToSide()
/third_party/skia/src/pathops/
DSkReduceOrder.cpp39 int minX, int maxX, int minY, int maxY, SkDQuad& reduction) { in check_linear() argument
56 int index, minX, maxX, minY, maxY; in reduce() local
58 minX = maxX = minY = maxY = 0; in reduce()
67 if (quad[maxX].fX < quad[index].fX) { in reduce()
68 maxX = index; in reduce()
93 int result = check_linear(quad, minX, maxX, minY, maxY, fQuad); in reduce()
152 int minX, int maxX, int minY, int maxY, SkDCubic& reduction) { in check_linear() argument
189 int index, minX, maxX, minY, maxY; in reduce() local
191 minX = maxX = minY = maxY = 0; in reduce()
200 if (cubic[maxX].fX < cubic[index].fX) { in reduce()
[all …]
DSkPathOpsCurve.cpp16 double maxX = minX; in nearPoint() local
19 maxX = std::max(maxX, fCubic.fPts[index].fX); in nearPoint()
21 if (!AlmostBetweenUlps(minX, xy.fX, maxX)) { in nearPoint()
48 double largest = std::max(std::max(maxX, maxY), -std::min(minX, minY)); in nearPoint()
DSkOpAngle.cpp577 double minX, minY, maxX, maxY; in endsIntersect() local
579 maxX = maxY = -SK_ScalarInfinity; in endsIntersect()
585 maxX = std::max(maxX, curve[idx2].fX); in endsIntersect()
588 double maxWidth = std::max(maxX - minX, maxY - minY); in endsIntersect()
662 double minX, minY, maxX, maxY; in endToSide() local
664 maxX = maxY = -SK_ScalarInfinity; in endToSide()
670 maxX = std::max(maxX, curve[idx2].fX); in endToSide()
673 double maxWidth = std::max(maxX - minX, maxY - minY); in endToSide()
/third_party/skia/src/core/
DSkBitmapProcState_matrixProcs.cpp87 const unsigned maxX = s.fPixmap.width() - 1; in nofilter_scale() local
88 if (0 == maxX) { in nofilter_scale()
100 if (can_truncate_to_fixed_for_decal(fixedFx, fixedDx, count, maxX)) { in nofilter_scale()
108 *xy++ = pack_two_shorts(tilex(SkFractionalIntToFixed(fx ), maxX), in nofilter_scale()
109 tilex(SkFractionalIntToFixed(fx + dx), maxX)); in nofilter_scale()
115 *xx++ = tilex(SkFractionalIntToFixed(fx), maxX); in nofilter_scale()
131 int maxX = s.fPixmap.width () - 1, in nofilter_affine() local
136 | (tilex(SkFractionalIntToFixed(fx), maxX) ); in nofilter_affine()
170 const unsigned maxX = s.fPixmap.width() - 1; in filter_scale() local
185 (unsigned)SkFractionalIntToInt(fx ) < maxX && in filter_scale()
[all …]
DSkBitmapProcState.cpp33 const unsigned maxX = s.fPixmap.width() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() local
48 if ((uint64_t)SkFractionalIntToInt(fx) <= maxX && in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
49 (uint64_t)SkFractionalIntToInt(fx + dx * (count - 1)) <= maxX) in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
65 SkASSERT(index <= maxX); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
71 dst[i] = src[SkTPin<int>(SkFractionalIntToInt(fx), 0, maxX)]; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
304 const int maxX = s.fPixmap.width() - 1; in Clamp_S32_D32_nofilter_trans_shaderproc() local
323 if (ix <= maxX) { in Clamp_S32_D32_nofilter_trans_shaderproc()
324 int n = std::min(maxX - ix + 1, count); in Clamp_S32_D32_nofilter_trans_shaderproc()
334 sk_memset32(colors, row[maxX], count); in Clamp_S32_D32_nofilter_trans_shaderproc()
/third_party/flutter/skia/src/core/
DSkBitmapProcState_matrixProcs.cpp95 const unsigned maxX = s.fPixmap.width() - 1; in nofilter_scale() local
96 if (0 == maxX) { in nofilter_scale()
108 if (can_truncate_to_fixed_for_decal(fixedFx, fixedDx, count, maxX)) { in nofilter_scale()
116 *xy++ = pack_two_shorts(tile(SkFractionalIntToFixed(fx ), maxX), in nofilter_scale()
117 tile(SkFractionalIntToFixed(fx + dx), maxX)); in nofilter_scale()
123 *xx++ = tile(SkFractionalIntToFixed(fx), maxX); in nofilter_scale()
153 const unsigned maxX = s.fPixmap.width() - 1; in filter_scale() local
169 (unsigned)SkFractionalIntToInt(fx ) < maxX && in filter_scale()
170 (unsigned)SkFractionalIntToInt(fx + dx*(count-1)) < maxX) { in filter_scale()
182 *xy++ = pack(fixedFx, maxX, s.fFilterOneX); in filter_scale()
[all …]
DSkBitmapProcState.cpp34 const unsigned maxX = s.fPixmap.width() - 1; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() local
49 if ((uint64_t)SkFractionalIntToInt(fx) <= maxX && in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
50 (uint64_t)SkFractionalIntToInt(fx + dx * (count - 1)) <= maxX) in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
66 SkASSERT(index <= maxX); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
72 dst[i] = src[SkClampMax(SkFractionalIntToInt(fx), maxX)]; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
292 const int maxX = s.fPixmap.width() - 1; in Clamp_S32_D32_nofilter_trans_shaderproc() local
311 if (ix <= maxX) { in Clamp_S32_D32_nofilter_trans_shaderproc()
312 int n = SkMin32(maxX - ix + 1, count); in Clamp_S32_D32_nofilter_trans_shaderproc()
322 sk_memset32(colors, row[maxX], count); in Clamp_S32_D32_nofilter_trans_shaderproc()
/third_party/skia/src/effects/
DSkDashPathEffect.cpp94 SkScalar maxX = pts[1].fX; in cull_line() local
98 swap(minX, maxX); in cull_line()
101 SkASSERT(minX < maxX); in cull_line()
102 if (maxX <= bounds.fLeft || minX >= bounds.fRight) { in cull_line()
113 if (maxX > bounds.fRight) { in cull_line()
114 maxX = bounds.fRight + SkScalarMod(maxX - bounds.fRight, intervalLength); in cull_line()
117 SkASSERT(maxX > minX); in cull_line()
120 swap(minX, maxX); in cull_line()
123 pts[1].fX = maxX; in cull_line()
/third_party/flutter/skia/src/effects/
DSkDashPathEffect.cpp94 SkScalar maxX = pts[1].fX; in cull_line() local
98 swap(minX, maxX); in cull_line()
101 SkASSERT(minX < maxX); in cull_line()
102 if (maxX <= bounds.fLeft || minX >= bounds.fRight) { in cull_line()
113 if (maxX > bounds.fRight) { in cull_line()
114 maxX = bounds.fRight + SkScalarMod(maxX - bounds.fRight, intervalLength); in cull_line()
117 SkASSERT(maxX > minX); in cull_line()
120 swap(minX, maxX); in cull_line()
123 pts[1].fX = maxX; in cull_line()
/third_party/mesa3d/src/mesa/main/
Dbbox.c37 GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW) in _mesa_PrimitiveBoundingBox() argument
45 ctx->PrimitiveBoundingBox[4] = maxX; in _mesa_PrimitiveBoundingBox()
Dbbox.h37 GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Drandom_crop_and_resize_with_bbox_op.cc44 int maxX = x + crop_width; // max dims of selected CropBox on image in Compute() local
47 …RETURN_IF_NOT_OK(BoundingBox::UpdateBBoxesForCrop(&(*output)[1], &bboxCount, x, y, maxX, maxY)); … in Compute()
Drandom_crop_with_bbox_op.cc59 int maxX = x + RandomCropOp::crop_width_; // max dims of selected CropBox on image in Compute() local
61 RETURN_IF_NOT_OK(BoundingBox::UpdateBBoxesForCrop(&(*output)[1], &boxCount, x, y, maxX, maxY)); in Compute()
/third_party/skia/tests/
DPathOpsCubicReduceOrderTest.cpp26 int index, minX, maxX, minY, maxY;
27 minX = maxX = minY = maxY = 0;
35 if (cubic[maxX].fX < cubic[index].fX) {
36 maxX = index;
42 return approximately_equal(cubic[maxX].fX, cubic[minX].fX)
/third_party/flutter/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)
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DConstants.cpp321 …const dword maxX[16] = {0x00000000, 0x00000001, 0x00000100, 0x00000101, 0x00010000, 0x00010001, 0x… in Constants() local
329 memcpy(&this->maxX, &maxX, sizeof(maxX)); in Constants()
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DConstants.cpp328 …const dword maxX[16] = { 0x00000000, 0x00000001, 0x00000100, 0x00000101, 0x00010000, 0x00010001, 0… in Constants() local
336 memcpy(&this->maxX, &maxX, sizeof(maxX)); in Constants()
/third_party/flutter/skia/gm/
Dovals.cpp155 int maxX = fMatrices.count(); in onDraw() local
169 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw()
171 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw()
Droundrects.cpp158 int maxX = fMatrices.count(); in onDraw() local
172 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw()
174 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw()
/third_party/skia/gm/
Dovals.cpp155 int maxX = fMatrices.count(); in onDraw() local
169 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw()
171 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw()
Dbleed.cpp249 SkScalar maxX = 0; in onDraw() local
252 canvas->translate(maxX, 0); in onDraw()
288 maxX = std::max(maxX, x); in onDraw()
Droundrects.cpp158 int maxX = fMatrices.count(); in onDraw() local
172 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + in onDraw()
174 kYStart + SK_Scalar1 * kYStep * (testCount / maxX) + in onDraw()

12345