Searched refs:srcSRGB (Results 1 – 2 of 2) sorted by relevance
1112 bool srcSRGB = Surface::isSRGBformat(state.sourceFormat); in ApplyScaleAndClamp() local1115 …if(state.convertSRGB && ((srcSRGB && !preScaled) || dstSRGB)) // One of the formats is sRGB enco… in ApplyScaleAndClamp()1119 value = (srcSRGB && !preScaled) ? sRGBtoLinear(value) : LinearToSRGB(value); in ApplyScaleAndClamp()
1356 bool srcSRGB = Surface::isSRGBformat(state.sourceFormat); in ApplyScaleAndClamp() local1359 …if(state.convertSRGB && ((srcSRGB && !preScaled) || dstSRGB)) // One of the formats is sRGB enco… in ApplyScaleAndClamp()1363 value = (srcSRGB && !preScaled) ? sRGBtoLinear(value) : LinearToSRGB(value); in ApplyScaleAndClamp()