Home
last modified time | relevance | path

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

123

/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) == NULL) in executeTokens()
213 operand[0].fS32 = SkScalarFloor(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 = SkScalarDiv(operand[0].fScalar, operand[1].fScalar); in executeTokens()
[all …]
DSkDisplayMath.cpp150 SkScalar input = parameters[0].fOperand.fScalar; in executeFunction()
166 scalarResult = SkScalarATan2(input, parameters[1].fOperand.fScalar); in executeFunction()
186 scalarResult = SkMaxScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
193 scalarResult = SkMinScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
200 scalarResult = SkScalarMul(parameters[1].fOperand.fScalar, scalarResult); in executeFunction()
224 scriptValue->fOperand.fScalar = scalarResult; in executeFunction()
234 value->fOperand.fScalar = gConstants[index]; in getProperty()
DSkScript.cpp659 script = SkParse::FindScalar(script, &operand.fScalar); in innerScript()
1160 int index = indexType == kScalar ? SkScalarFloor(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 = SkScalarFloor(operand1.fScalar); in processOp()
1334 const char* result = SkParse::FindScalar(operand2.fString->c_str(), &operand2.fScalar); in processOp()
1342 operand2.fS32 = SkScalarFloor(operand2.fScalar); in processOp()
1355 operand2.fScalar += operand1.fScalar; in processOp()
1387 if (operand2.fScalar == 0) in processOp()
[all …]
DSkOperandIterpolator.cpp79 values[i].fScalar = SkScalarInterp(prevSrc[i].fScalar, nextSrc[i].fScalar, T); in timeToValues()
101 array[0].fScalar = SkIntToScalar(a); in iset()
102 array[1].fScalar = SkIntToScalar(b); in iset()
103 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()
DSkDraw3D.cpp96 fPatch.rotateDegrees(parameters[0].fOperand.fScalar, in executeFunction()
97 parameters[1].fOperand.fScalar, parameters[2].fOperand.fScalar); in executeFunction()
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 = SkScalarMulRound(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()
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()
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()
DSkAnimatorScript.cpp113 boxedValue->value = scriptValue->fOperand.fScalar; in Box()
238 …value->fOperand.fScalar = SkScalarDiv((SkScalar) value->fOperand.fS32, 1000); // dividing two ints… 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()
DSkDrawExtraPathEffect.cpp101 value.fOperand.fScalar = 0; in begin()
103 return value.fOperand.fScalar; in begin()
146 value->fOperand.fScalar = *(SkScalar*) clen; in GetContourLength()
155 value->fOperand.fScalar = *(SkScalar*) dist; in GetDistance()
294 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()
/external/chromium_org/third_party/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) == NULL) in executeTokens()
213 operand[0].fS32 = SkScalarFloor(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 = SkScalarDiv(operand[0].fScalar, operand[1].fScalar); in executeTokens()
[all …]
DSkDisplayMath.cpp150 SkScalar input = parameters[0].fOperand.fScalar; in executeFunction()
166 scalarResult = SkScalarATan2(input, parameters[1].fOperand.fScalar); in executeFunction()
186 scalarResult = SkMaxScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
193 scalarResult = SkMinScalar(scalarResult, array->fOperand.fScalar); in executeFunction()
200 scalarResult = SkScalarMul(parameters[1].fOperand.fScalar, scalarResult); in executeFunction()
224 scriptValue->fOperand.fScalar = scalarResult; in executeFunction()
234 value->fOperand.fScalar = gConstants[index]; in getProperty()
DSkScript.cpp659 script = SkParse::FindScalar(script, &operand.fScalar); in innerScript()
1160 int index = indexType == kScalar ? SkScalarFloor(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 = SkScalarFloor(operand1.fScalar); in processOp()
1334 const char* result = SkParse::FindScalar(operand2.fString->c_str(), &operand2.fScalar); in processOp()
1342 operand2.fS32 = SkScalarFloor(operand2.fScalar); in processOp()
1355 operand2.fScalar += operand1.fScalar; in processOp()
1387 if (operand2.fScalar == 0) in processOp()
[all …]
DSkOperandIterpolator.cpp79 values[i].fScalar = SkScalarInterp(prevSrc[i].fScalar, nextSrc[i].fScalar, T); in timeToValues()
101 array[0].fScalar = SkIntToScalar(a); in iset()
102 array[1].fScalar = SkIntToScalar(b); in iset()
103 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()
DSkDraw3D.cpp96 fPatch.rotateDegrees(parameters[0].fOperand.fScalar, in executeFunction()
97 parameters[1].fOperand.fScalar, parameters[2].fOperand.fScalar); in executeFunction()
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 = SkScalarMulRound(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()
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()
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()
DSkAnimatorScript.cpp113 boxedValue->value = scriptValue->fOperand.fScalar; in Box()
238 …value->fOperand.fScalar = SkScalarDiv((SkScalar) value->fOperand.fS32, 1000); // dividing two ints… 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()
DSkDrawExtraPathEffect.cpp101 value.fOperand.fScalar = 0; in begin()
103 return value.fOperand.fScalar; in begin()
146 value->fOperand.fScalar = *(SkScalar*) clen; in GetContourLength()
155 value->fOperand.fScalar = *(SkScalar*) dist; in GetDistance()
294 value->fOperand.fScalar = (&shape2D->fLoc.fX)[index]; in Get2D()

123