Home | History | Annotate | Download | only in skia

Lines Matching refs:pFunc

358 bool AddColors(const CPDF_ExpIntFunc* pFunc, SkTDArray<SkColor>* skColors) {
359 if (pFunc->CountInputs() != 1)
361 if (pFunc->m_Exponent != 1)
363 if (pFunc->m_nOrigOutputs != 3)
366 SkColorSetARGB(0xFF, SkUnitScalarClampToByte(pFunc->m_pBeginValues[0]),
367 SkUnitScalarClampToByte(pFunc->m_pBeginValues[1]),
368 SkUnitScalarClampToByte(pFunc->m_pBeginValues[2])));
370 SkColorSetARGB(0xFF, SkUnitScalarClampToByte(pFunc->m_pEndValues[0]),
371 SkUnitScalarClampToByte(pFunc->m_pEndValues[1]),
372 SkUnitScalarClampToByte(pFunc->m_pEndValues[2])));
381 bool AddSamples(const CPDF_SampledFunc* pFunc,
384 if (pFunc->CountInputs() != 1)
386 if (pFunc->CountOutputs() != 3) // expect rgb
388 if (pFunc->GetEncodeInfo().empty())
391 pFunc->GetEncodeInfo()[0];
396 uint32_t sampleSize = pFunc->GetBitsPerSample();
400 if (pFunc->GetSampleStream()->GetSize() < sampleCount * 3 * sampleSize / 8)
406 colorsMin[i] = pFunc->GetRange(i * 2);
407 colorsMax[i] = pFunc->GetRange(i * 2 + 1);
409 const uint8_t* pSampleData = pFunc->GetSampleStream()->GetData();
426 bool AddStitching(const CPDF_StitchFunc* pFunc,
429 float boundsStart = pFunc->GetDomain(0);
431 const auto& subFunctions = pFunc->GetSubFunctions();
440 i < subFunctionCount - 1 ? pFunc->GetBound(i + 1) : pFunc->GetDomain(1);