Lines Matching refs:channelNdx
1449 for (int channelNdx = 0; channelNdx < 4; channelNdx++)
1451 if (!isHDREndpoint[colorEndpointNdx] || (channelNdx == 3 && colorEndpointModes[colorEndpointNdx] == 14)) // \note Alpha for mode 14 is treated the same as LDR.
1453 const deUint32 c0 = (e0[channelNdx] << 8) | (isSRGB ? 0x80 : e0[channelNdx]);
1454 const deUint32 c1 = (e1[channelNdx] << 8) | (isSRGB ? 0x80 : e1[channelNdx]);
1455 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0];
1459 ((deUint8*)dst)[texelNdx*4 + channelNdx] = (deUint8)((c & 0xff00) >> 8);
1461 ((float*)dst)[texelNdx*4 + channelNdx] = c == 65535 ? 1.0f : (float)c / 65536.0f;
1466 const deUint32 c0 = e0[channelNdx] << 4;
1467 const deUint32 c1 = e1[channelNdx] << 4;
1468 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0];
1477 ((float*)dst)[texelNdx*4 + channelNdx] = deFloat16To32(isFloat16InfOrNan(cf) ? 0x7bff : cf);