Lines Matching refs:isSRGB
456 inline void setASTCErrorColorBlock (void* dst, int blockWidth, int blockHeight, bool isSRGB)
458 if (isSRGB)
484 DecompressResult decodeVoidExtentBlock (void* dst, const Block128& blockData, int blockWidth, int blockHeight, bool isSRGB, bool isLDRMode)
495 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
507 if (isSRGB)
1409 int numPartitions, int blockWidth, int blockHeight, bool isSRGB, bool isLDRMode, const deUint32* colorEndpointModes)
1430 if (isSRGB)
1453 const deUint32 c0 = (e0[channelNdx] << 8) | (isSRGB ? 0x80 : e0[channelNdx]);
1454 const deUint32 c1 = (e1[channelNdx] << 8) | (isSRGB ? 0x80 : e1[channelNdx]);
1458 if (isSRGB)
1486 DecompressResult decompressBlock (void* dst, const Block128& blockData, int blockWidth, int blockHeight, bool isSRGB, bool isLDR)
1488 DE_ASSERT(isLDR || !isSRGB);
1498 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1505 return decodeVoidExtentBlock(dst, blockData, blockWidth, blockHeight, isSRGB, isLDR);
1522 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1548 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1568 return setTexelColors(dst, &colorEndpoints[0], &texelWeights[0], ccs, partitionIndexSeed, numPartitions, blockWidth, blockHeight, isSRGB, isLDR, &colorEndpointModes[0]);
1571 void decompress (const PixelBufferAccess& dst, const deUint8* data, bool isSRGB, bool isLDR)
1573 DE_ASSERT(isLDR || !isSRGB);
1585 decompressBlock(isSRGB ? (void*)&decompressedBuffer.sRGB[0] : (void*)&decompressedBuffer.linear[0],
1586 blockData, dst.getWidth(), dst.getHeight(), isSRGB, isLDR);
1588 if (isSRGB)
2936 const bool isSRGB = isAstcSRGBFormat(format);
2937 const bool isLDR = isSRGB || mode == TexDecompressionParams::ASTCMODE_LDR;
2940 DE_ASSERT(!(mode == TexDecompressionParams::ASTCMODE_HDR && isSRGB));
2948 const DecompressResult result = decompressBlock((isSRGB ? (void*)&tmpBuffer.sRGB[0] : (void*)&tmpBuffer.linear[0]),
2949 blockData, blockPixelSize.x(), blockPixelSize.y(), isSRGB, isLDR);