Searched refs:channelMax (Results 1 – 2 of 2) sorted by relevance
178 const int channelMax = (1 << channelBits[chanNdx]) - 1; in checkColor() local179 const float scaledInput = inputClr[chanNdx] * (float)channelMax; in checkColor()183 channelChoices.push_back(de::min(channelMax, (int)deFloatCeil(scaledInput))); in checkColor()204 …deredClrInFormat = (int)deFloatRound((float)(renderedClr.toIVec()[chanNdx] * channelMax) / 255.0f); in checkColor()226 << "Note: " << inputClr[chanNdx] << " * (" << channelMax + 1 << "-1) = " << scaledInput in checkColor()
178 const int channelMax = (1 << channelBits[chanNdx]) - 1; in checkColor() local179 const float scaledInput = inputClr[chanNdx] * (float)channelMax; in checkColor()183 channelChoices.push_back(de::min(channelMax, (int)deFloatCeil(scaledInput))); in checkColor()198 …deredClrInFormat = (int)deFloatRound((float)(renderedClr.toIVec()[chanNdx] * channelMax) / 255.0f); in checkColor()220 << "Note: " << inputClr[chanNdx] << " * (" << channelMax + 1 << "-1) = " << scaledInput in checkColor()