Lines Matching refs:gammas
63 void copy_to_table(float* tablePtr, const SkGammas* gammas, int index) { in copy_to_table() argument
64 SkASSERT(gammas->isTable(index)); in copy_to_table()
65 const float* ptr = gammas->table(index); in copy_to_table()
66 const size_t bytes = gammas->tableSize(index) * sizeof(float); in copy_to_table()
85 const SkGammas* gammas = colorSpace->gammas(); in rawTransferFnData() local
86 SkASSERT(gammas); in rawTransferFnData()
87 if (gammas->data(0) == gammas->data(1) && gammas->data(0) == gammas->data(2)) { in rawTransferFnData()
88 SkASSERT(gammas->isTable(0)); in rawTransferFnData()
89 tables->fStorage = SkData::MakeUninitialized(gammas->tableSize(0) * sizeof(float)); in rawTransferFnData()
90 copy_to_table((float*) tables->fStorage->writable_data(), gammas, 0); in rawTransferFnData()
92 tables->fRed.fCount = tables->fGreen.fCount = tables->fBlue.fCount = gammas->tableSize(0); in rawTransferFnData()
99 if (gammas->isTable(i)) { in rawTransferFnData()
100 storageSize += gammas->tableSize(i) * sizeof(float); in rawTransferFnData()
112 if (gammas->isTable(i)) { in rawTransferFnData()
113 copy_to_table(ptr, gammas, i); in rawTransferFnData()
115 rgb[i].fCount = gammas->tableSize(i); in rawTransferFnData()
121 if (gammas->isNamed(i)) { in rawTransferFnData()
122 SkAssertResult(named_to_parametric(&fn, gammas->data(i).fNamed)); in rawTransferFnData()
123 } else if (gammas->isValue(i)) { in rawTransferFnData()
124 value_to_parametric(&fn, gammas->data(i).fValue); in rawTransferFnData()
126 SkASSERT(gammas->isParametric(i)); in rawTransferFnData()
127 fn = gammas->params(i); in rawTransferFnData()