OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SK_Fixed1
(Results
1 - 12
of
12
) sorted by null
/external/skia/src/core/
SkBitmapProcState_utils.h
36
if (dx <=
SK_Fixed1
/ 256) {
SkAnalyticEdge.h
51
return ((unsigned)y + (
SK_Fixed1
>> (accuracy + 1))) >> (16 - accuracy) << (16 - accuracy);
56
if (y == fY +
SK_Fixed1
) {
61
// (fDX and y - fUpperY may be greater than
SK_Fixed1
)
69
SkASSERT(fDX == 0 || y - fY ==
SK_Fixed1
>> yShift);
112
SkASSERT(SkAbs32(fX - SkFixedMul(fY - fSnappedY, fDX) - fSnappedX) <
SK_Fixed1
);
113
SkASSERT(SkAbs32(fY - fSnappedY) <
SK_Fixed1
); // This may differ due to smooth jump
127
SkASSERT(SkAbs32(fX - SkFixedMul(fDX, fY - SnapY(fCEdge.fCy)) - fCEdge.fCx) <
SK_Fixed1
);
SkScan_Antihair.cpp
52
SkASSERT(n >= 0 && n <=
SK_Fixed1
);
109
fy +=
SK_Fixed1
/2;
126
return fy -
SK_Fixed1
/2;
133
fy +=
SK_Fixed1
/2;
149
return fy -
SK_Fixed1
/2;
156
fy +=
SK_Fixed1
/2;
164
return fy + dy -
SK_Fixed1
/2;
170
fy +=
SK_Fixed1
/2;
179
return fy -
SK_Fixed1
/2;
187
fx +=
SK_Fixed1
/2
[
all
...]
SkScan_AAAPath.cpp
553
SkASSERT(a <=
SK_Fixed1
);
572
// For SkFixed that's close to
SK_Fixed1
, we can't convert it to alpha by just shifting right.
573
// For example, when f =
SK_Fixed1
, right shifting 8 will get 256, but we need 255.
576
SkASSERT(f <=
SK_Fixed1
);
588
// Here we always send in l <
SK_Fixed1
, and the first alpha we want to compute is alphas[0]
599
SkFixed first =
SK_Fixed1
- l; // horizontal edge length of the left-most triangle
612
// Here we always send in l <
SK_Fixed1
, and the first alpha we want to compute is alphas[0]
623
SkFixed first =
SK_Fixed1
- l; // horizontal edge length of the left-most triangle
739
SkFixed first = SkIntToFixed(uL) +
SK_Fixed1
- ul;
760
SkFixed first = SkIntToFixed(uR) +
SK_Fixed1
- ur
[
all
...]
SkBitmapProcState_matrixProcs.cpp
471
fFilterOneX =
SK_Fixed1
;
472
fFilterOneY =
SK_Fixed1
;
477
fFilterOneX =
SK_Fixed1
/ fPixmap.width();
478
fFilterOneY =
SK_Fixed1
/ fPixmap.height();
SkAnalyticEdge.cpp
96
if (SkAbs32(dy >> shift) >=
SK_Fixed1
* 2) { // only snap when dy is large enough
SkLinearBitmapPipeline_sample.h
358
int64_t fx = static_cast<int64_t>(x *
SK_Fixed1
);
361
int64_t fdx = static_cast<int64_t>(dx *
SK_Fixed1
);
[
all
...]
/external/skia/include/private/
SkFixed.h
24
#define
SK_Fixed1
(1 << 16)
34
#define SkFloatToFixed(x) ((SkFixed)((x) *
SK_Fixed1
))
38
int64_t n64 = (int64_t)(x *
SK_Fixed1
);
48
#define SkDoubleToFixed(x) ((SkFixed)((x) *
SK_Fixed1
))
69
#define SkFixedCeilToInt(x) (((x) +
SK_Fixed1
- 1) >> 16)
76
return (x +
SK_Fixed1
- 1) & 0xFFFF0000;
/external/skia/tests/
MathTest.cpp
563
REPORTER_ASSERT(reporter, result ==
SK_Fixed1
);
564
result = SkFixedDiv(1,
SK_Fixed1
);
566
result = SkFixedDiv(10 - 1,
SK_Fixed1
* 3);
571
REPORTER_ASSERT(reporter, (SkFixedRoundToFixed(-
SK_Fixed1
* 10) >> 1) == -
SK_Fixed1
* 5);
572
REPORTER_ASSERT(reporter, (SkFixedFloorToFixed(-
SK_Fixed1
* 10) >> 1) == -
SK_Fixed1
* 5);
573
REPORTER_ASSERT(reporter, (SkFixedCeilToFixed(-
SK_Fixed1
* 10) >> 1) == -
SK_Fixed1
* 5);
/external/skia/src/utils/
SkInterpolator.cpp
154
#define SK_Fixed1Third (
SK_Fixed1
/3)
155
#define SK_Fixed2Third (
SK_Fixed1
*2/3)
/external/skia/src/pdf/
SkPDFUtils.cpp
274
int x = SkFixedRoundToInt((
SK_Fixed1
* 1000 / 255) * value);
/external/skia/src/shaders/gradients/
SkGradientShader.cpp
240
SkFixed dp =
SK_Fixed1
/ (desc.fCount - 1);
249
recs->fPos =
SK_Fixed1
;
303
recsTemp[i].fPos =
SK_Fixed1
- recSrc[offset].fPos;
718
SkASSERT((unsigned)x <=
SK_Fixed1
);
[
all
...]
Completed in 98 milliseconds