Home
last modified time | relevance | path

Searched refs:channelNdx (Results 1 – 12 of 12) sorted by relevance

/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrFormatTests.cpp417 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in testFormat() local
419 if (formatInfo.hasChannelNdx(channelNdx)) in testFormat()
421 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testFormat()
428 reference[ndx][channelNdx] = refTexView.sample(refSampler, coord.x(), coord.y(), 0.0f)[0]; in testFormat()
434 reference[ndx][channelNdx] = channelNdx == 3 ? 1.0f : 0.0f; in testFormat()
DvktYCbCrUtil.cpp80 tcu::PixelBufferAccess MultiPlaneImageData::getChannelAccess (deUint32 channelNdx) in getChannelAccess() argument
97 channelNdx); in getChannelAccess()
100 tcu::ConstPixelBufferAccess MultiPlaneImageData::getChannelAccess (deUint32 channelNdx) const in getChannelAccess()
117 channelNdx); in getChannelAccess()
245 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in fillGradient() local
247 if (formatInfo.hasChannelNdx(channelNdx)) in fillGradient()
249 const tcu::PixelBufferAccess channelAccess = imageData->getChannelAccess(channelNdx); in fillGradient()
258 channelAccess.setPixel(tcu::Vec4(tmpAccess.getPixel(x, y)[channelNdx]), x, y); in fillGradient()
DvktYCbCrViewTests.cpp643 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in testPlaneView() local
645 if (formatInfo.hasChannelNdx(channelNdx)) in testPlaneView()
647 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testPlaneView()
654 referenceWhole[ndx][channelNdx] = refTexView.sample(refSampler, coord.x(), coord.y(), 0.0f)[0]; in testPlaneView()
660 referenceWhole[ndx][channelNdx] = channelNdx == 3 ? 1.0f : 0.0f; in testPlaneView()
DvktYCbCrUtil.hpp60 tcu::PixelBufferAccess getChannelAccess (deUint32 channelNdx);
61 tcu::ConstPixelBufferAccess getChannelAccess (deUint32 channelNdx) const;
DvktYCbCrConversionTests.cpp567 int channelNdx) in getChannelAccess() argument
569 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx)); in getChannelAccess()
571 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx; in getChannelAccess()
572 const deUint32 valueOffsetBits = formatInfo.channels[channelNdx].offsetBits; in getChannelAccess()
573 const deUint32 pixelStrideBytes = formatInfo.channels[channelNdx].strideBytes; in getChannelAccess()
575 const deUint8 sizeBits = formatInfo.channels[channelNdx].sizeBits; in getChannelAccess()
593 …return ChannelAccess((tcu::TextureChannelClass)formatInfo.channels[channelNdx].type, sizeBits, IVe… in getChannelAccess()
/external/deqp/external/vulkancts/framework/vulkan/
DvkImageUtil.hpp123 deUint32 channelNdx);
128 deUint32 channelNdx);
DvkImageUtil.cpp2021 deUint32 channelNdx) in getChannelAccess() argument
2023 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx)); in getChannelAccess()
2025 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx; in getChannelAccess()
2026 const deUint32 planeOffsetBytes = formatInfo.channels[channelNdx].offsetBits / 8; in getChannelAccess()
2027 const deUint32 valueOffsetBits = formatInfo.channels[channelNdx].offsetBits % 8; in getChannelAccess()
2028 const deUint32 pixelStrideBytes = formatInfo.channels[channelNdx].strideBytes; in getChannelAccess()
2045 …BufferAccess(getChannelAccessFormat((tcu::TextureChannelClass)formatInfo.channels[channelNdx].type, in getChannelAccess()
2047 formatInfo.channels[channelNdx].sizeBits), in getChannelAccess()
2058 deUint32 channelNdx) in getChannelAccess() argument
2060 …tChannelAccess(formatInfo, size, planeRowPitches, const_cast<void* const*>(planePtrs), channelNdx); in getChannelAccess()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageViewTests.cpp562 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in getComponentMappingPermutations() local
563 currentChannel[channelNdx] = channelSwizzles[(firstChannelNdx + channelNdx) % 4]; in getComponentMappingPermutations()
/external/deqp/modules/gles3/functional/
Des3fFragmentOutputTests.cpp514 for (int channelNdx = 0; channelNdx < numValidChannels; channelNdx++) in clearUndefined() local
515 dstPixel[channelNdx] = srcPixel[channelNdx]; in clearUndefined()
530 for (int channelNdx = 0; channelNdx < numValidChannels; channelNdx++) in clearUndefined() local
531 dstPixel[channelNdx] = srcPixel[channelNdx]; in clearUndefined()
/external/deqp/framework/common/
DtcuAstcUtil.cpp1437 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in setTexelColors() local
1439 …if (!isHDREndpoint[colorEndpointNdx] || (channelNdx == 3 && colorEndpointModes[colorEndpointNdx] =… in setTexelColors()
1441 const deUint32 c0 = (e0[channelNdx] << 8) | (isSRGB ? 0x80 : e0[channelNdx]); in setTexelColors()
1442 const deUint32 c1 = (e1[channelNdx] << 8) | (isSRGB ? 0x80 : e1[channelNdx]); in setTexelColors()
1443 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0]; in setTexelColors()
1447 ((deUint8*)dst)[texelNdx*4 + channelNdx] = (deUint8)((c & 0xff00) >> 8); in setTexelColors()
1449 ((float*)dst)[texelNdx*4 + channelNdx] = c == 65535 ? 1.0f : (float)c / 65536.0f; in setTexelColors()
1454 const deUint32 c0 = e0[channelNdx] << 4; in setTexelColors()
1455 const deUint32 c1 = e1[channelNdx] << 4; in setTexelColors()
1456 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0]; in setTexelColors()
[all …]
DtcuRasterizationVerifier.cpp259 for (int channelNdx = 0; channelNdx < 3; ++channelNdx) in convertRGB8ToNativeFormat() local
261 …const int channelBitCount = (channelNdx == 0) ? (args.redBits) : (channelNdx == 1) ? (args.greenBi… in convertRGB8ToNativeFormat()
262 …const int channelPixelValue = (channelNdx == 0) ? (color.getRed()) : (channelNdx == 1) ? (color.ge… in convertRGB8ToNativeFormat()
265 pixelNativeColor[channelNdx] = channelPixelValue >> (8 - channelBitCount); in convertRGB8ToNativeFormat()
267 pixelNativeColor[channelNdx] = channelPixelValue; in convertRGB8ToNativeFormat()
272 pixelNativeColor[channelNdx] = channelPixelValue << (channelBitCount - 8); in convertRGB8ToNativeFormat()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderOperatorTests.cpp487 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in evaluate() local
488 if (s_outSwizzleChannelMasks[m_resultScalarSize - 1][channelNdx]) in evaluate()
489 ctx.color[channelNdx] = ctx.color[channelNdx] * m_evaluatedScale + m_evaluatedBias; in evaluate()