Home
last modified time | relevance | path

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

/external/skia/src/animator/
DSkScriptRuntime.cpp133 memcpy(&operand[registerLoad].fScalar, opCode, sizeof(SkScalar)); in executeTokens()
195 strPtr->appendScalar(operand[op - SkScriptEngine2::kScalarToString].fScalar); in executeTokens()
200 …operand[0].fScalar = SkScriptEngine2::IntToScalar(operand[op - SkScriptEngine2::kIntToScalar].fS32… in executeTokens()
209 &operand[op - SkScriptEngine2::kStringToScalar].fScalar) == nullptr) in executeTokens()
213 operand[0].fS32 = SkScalarFloorToInt(operand[0].fScalar); in executeTokens()
220 operand[0].fScalar += operand[1].fScalar; in executeTokens()
248 if (operand[1].fScalar == 0) in executeTokens()
249 operand[0].fScalar = operand[0].fScalar == 0 ? SK_ScalarNaN : in executeTokens()
250 operand[0].fScalar > 0 ? SK_ScalarMax : -SK_ScalarMax; in executeTokens()
252 operand[0].fScalar = operand[0].fScalar / operand[1].fScalar; in executeTokens()
[all …]
DSkScript.cpp659 script = SkParse::FindScalar(script, &operand.fScalar); in innerScript()
1160 int index = indexType == kScalar ? SkScalarFloorToInt(indexOperand.fScalar) : in logicalOp()
1308 operand1.fScalar = IntToScalar(operand1.fS32); in processOp()
1312 operand2.fScalar = IntToScalar(operand2.fS32); in processOp()
1319 … const char* result = SkParse::FindScalar(operand1.fString->c_str(), &operand1.fScalar); in processOp()
1327 operand1.fS32 = SkScalarFloorToInt(operand1.fScalar); in processOp()
1334 const char* result = SkParse::FindScalar(operand2.fString->c_str(), &operand2.fScalar); in processOp()
1342 operand2.fS32 = SkScalarFloorToInt(operand2.fScalar); in processOp()
1355 operand2.fScalar += operand1.fScalar; in processOp()
1387 if (operand2.fScalar == 0) in processOp()
[all …]
DSkDisplayMath.cpp139 SkScalar input = parameters[0].fOperand.fScalar; in executeFunction()
155 scalarResult = SkScalarATan2(input, parameters[1].fOperand.fScalar); in executeFunction()
175 scalarResult = SkMaxScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
182 scalarResult = SkMinScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
189 scalarResult = SkScalarMul(parameters[1].fOperand.fScalar, scalarResult); in executeFunction()
213 scriptValue->fOperand.fScalar = scalarResult; in executeFunction()
223 value->fOperand.fScalar = gConstants[index]; in getProperty()
DSkOperandIterpolator.cpp77 values[i].fScalar = SkScalarInterp(prevSrc[i].fScalar, nextSrc[i].fScalar, T); in timeToValues()
99 array[0].fScalar = SkIntToScalar(a); in iset()
100 array[1].fScalar = SkIntToScalar(b); in iset()
101 array[2].fScalar = SkIntToScalar(c); in iset()
DSkDisplayable.cpp208 SkDebugf("%g", SkScalarToFloat(op->fScalar)); in dumpAttrs()
309 if (op.fScalar != blankOp.fScalar || op2.fScalar != blankOp.fScalar) { in dumpValues()
310 …kDebugf("%s=\"[%g,%g]\" ", info->fName, SkScalarToFloat(op.fScalar), SkScalarToFloat(op2.fScalar)); in dumpValues()
369 if (op.fScalar != blankOp.fScalar) { //or /65536? in dumpValues()
370 SkDebugf("%s=\"%g\" ", info->fName, SkScalarToFloat(op.fScalar)); in dumpValues()
DSkMemberInfo.cpp143 SkASSERT(sizeof(value[0].fScalar) == sizeof(value[0])); // no support for 64 bit pointers, yet in getValue()
155 … SkASSERT(sizeof(values[0].fScalar) == sizeof(values[0])); // no support for 64 bit pointers, yet in setValue()
306 … scriptValue.fOperand.fMSec = SkScalarRoundToInt(scriptValue.fOperand.fScalar * 1000); in setValue()
374 memcpy(&storage->fScalar, &scriptValue.fOperand.fScalar, sizeof(SkScalar)); in writeValue()
377 …memcpy(&storage->fScalar, scriptValue.fOperand.fArray->begin(), scriptValue.fOperand.fArray->count… in writeValue()
439 storage[0].fScalar = SkIntToScalar(SkColorGetA(color)); in writeValue()
440 storage[1].fScalar = SkIntToScalar(SkColorGetR(color)); in writeValue()
441 storage[2].fScalar = SkIntToScalar(SkColorGetG(color)); in writeValue()
442 storage[3].fScalar = SkIntToScalar(SkColorGetB(color)); in writeValue()
DSkDraw3D.cpp96 fPatch.rotateDegrees(parameters[0].fOperand.fScalar, in executeFunction()
97 parameters[1].fOperand.fScalar, parameters[2].fOperand.fScalar); in executeFunction()
DSkOperand2.h29 SkScalar fScalar; member
49 SkScalar getScalar() { SkASSERT(fType == SkOperand2::kScalar); return fOperand.fScalar; } in getScalar()
DSkOperand.h29 SkScalar fScalar; member
42 SkScalar getScalar() { SkASSERT(fType == SkType_Float); return fOperand.fScalar; } in getScalar()
DSkAnimatorScript.cpp113 boxedValue->value = scriptValue->fOperand.fScalar; in Box()
238 value->fOperand.fScalar = value->fOperand.fS32 * 0.001f; in EvalMemberCommon()
334 *result = value.fOperand.fScalar; in EvaluateFloat()
368 value->fOperand.fScalar = SK_ScalarInfinity; in Infinity()
380 SkScalar scalar = scriptValue->fOperand.fScalar; in IsFinite()
395 …erand.fS32 = scriptValue->fType == SkType_Float ? SkScalarIsNaN(scriptValue->fOperand.fScalar) : 0; in IsNaN()
423 value->fOperand.fScalar = SK_ScalarNaN; in NaN()
461 scriptValue->fOperand.fScalar = boxedValue->value; in Unbox()
581 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); in UnitTest()
DSkDrawMatrix.cpp176 value->fOperand.fScalar = result; in getProperty()
215 SkScalar number = scriptValue.fOperand.fScalar; in setProperty()
223 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar); in setProperty()
224 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar); in setProperty()
DSkDrawExtraPathEffect.cpp100 value.fOperand.fScalar = 0; in begin()
102 return value.fOperand.fScalar; in begin()
153 value->fOperand.fScalar = *(SkScalar*) clen; in GetContourLength()
162 value->fOperand.fScalar = *(SkScalar*) dist; in GetDistance()
304 value->fOperand.fScalar = (&shape2D->fLoc.fX)[index]; in Get2D()
DSkDrawRectangle.cpp85 value->fOperand.fScalar = result; in getProperty()
96 SkScalar scalar = value.fOperand.fScalar; in setProperty()
DSkDrawPaint.cpp162 … scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(), in executeFunction()
183 value->fOperand.fScalar = metrics.fAscent; in getProperty()
186 value->fOperand.fScalar = metrics.fDescent; in getProperty()
DSkScriptTokenizer.cpp201 addTokenScalar(value.fOperand.fScalar); in addTokenValue()
557 script = SkParse::FindScalar(script, &operand.fOperand.fScalar); in innerScript()
987 … int index = value.fType == SkOperand2::kScalar ? SkScalarFloorToInt(value.fOperand.fScalar) : in processLogicalOp()
1203 operand.fS32 = SkScalarFloorToInt(operand.fScalar); in ConvertTo()
1211 operand.fScalar = IntToScalar(operand.fS32); in ConvertTo()
1214 … success = SkParse::FindScalar(operand.fString->c_str(), &operand.fScalar) != nullptr; in ConvertTo()
1225 strPtr->appendScalar(operand.fScalar); in ConvertTo()
1261 string->appendScalar(value.fOperand.fScalar); in ValueToString()
1492 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); in UnitTest()
1494 …script '%s' == value %g != expected answer %g\n", script, value.fOperand.fScalar / (1.0f * SK_Scal… in UnitTest()
DSkAnimatorScript2.cpp72 boxedValue->value = operand->fScalar; in convert()
328 operand->fScalar = boxedValue->value; in convert()
415 value->fScalar = value->fS32 * 0.001f; in evalMemberCommon()
609 error = SkScalarAbs(value.fOperand.fScalar - scriptTests[index].fScalarAnswer); in UnitTest()
DSkDisplayNumber.cpp63 value->fOperand.fScalar = constant; in getProperty()
DSkAnimator.cpp255 return result ? operand.fScalar : SK_ScalarNaN; in getArrayScalar()
342 return operand.fScalar; in getScalar()
349 return scriptValue.fOperand.fScalar; in getScalar()
595 operand.fScalar = scalar; in setScalar()
601 scriptValue.fOperand.fScalar = scalar; in setScalar()
DSkDisplayRandom.cpp50 value->fOperand.fScalar = min + SkScalarMul(max - min, relativeT); in getProperty()
DSkAnimateActive.cpp312 SkScalar delta = to[cIndex].fScalar - from[cIndex].fScalar; in pickUp()
314 delta = to[cIndex].fScalar - existingValues[cIndex].fScalar; in pickUp()
DSkDrawColor.cpp205 value->fOperand.fScalar = result; in getProperty()
225 SkScalar scalar = value.fOperand.fScalar; in setProperty()
DSkDump.cpp70 SkDebugf("%g\" />\n", SkScalarToFloat(value.fOperand.fScalar)); in evaluate()
DSkDrawPath.cpp143 value->fOperand.fScalar = fLength; in getProperty()
DSkDisplayApply.cpp138 animator->packARGB(&values->fScalar, count, &converted); in applyValues()
/external/skia/src/core/
DSkPaint.cpp1801 SkScalar fScalar; member
1808 tmp.fScalar = value; in write_scalar()
1817 return tmp.fScalar; in read_scalar()