Home
last modified time | relevance | path

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

/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrFormatTests.cpp461 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in testFormat() local
463 if (formatInfo.hasChannelNdx(channelNdx)) in testFormat()
465 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testFormat()
472 reference[ndx][channelNdx] = refTexView.sample(refSampler, coord.x(), coord.y(), 0.0f)[0]; in testFormat()
478 reference[ndx][channelNdx] = channelNdx == 3 ? 1.0f : 0.0f; in testFormat()
DvktYCbCrViewTests.cpp639 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in testPlaneView() local
641 if (formatInfo.hasChannelNdx(channelNdx)) in testPlaneView()
643 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testPlaneView()
650 referenceWhole[ndx][channelNdx] = refTexView.sample(refSampler, coord.x(), coord.y(), 0.0f)[0]; in testPlaneView()
656 referenceWhole[ndx][channelNdx] = channelNdx == 3 ? 1.0f : 0.0f; in testPlaneView()
DvktYCbCrUtil.hpp69 tcu::PixelBufferAccess getChannelAccess (deUint32 channelNdx);
70 tcu::ConstPixelBufferAccess getChannelAccess (deUint32 channelNdx) const;
166 int channelNdx);
DvktYCbCrUtil.cpp92 tcu::PixelBufferAccess MultiPlaneImageData::getChannelAccess (deUint32 channelNdx) in getChannelAccess() argument
109 channelNdx); in getChannelAccess()
112 tcu::ConstPixelBufferAccess MultiPlaneImageData::getChannelAccess (deUint32 channelNdx) const in getChannelAccess()
129 channelNdx); in getChannelAccess()
262 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in fillGradient() local
264 if (formatInfo.hasChannelNdx(channelNdx)) in fillGradient()
266 const tcu::PixelBufferAccess channelAccess = imageData->getChannelAccess(channelNdx); in fillGradient()
275 channelAccess.setPixel(tcu::Vec4(tmpAccess.getPixel(x, y)[channelNdx]), x, y); in fillGradient()
939 int channelNdx) in getChannelAccess() argument
941 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx)); in getChannelAccess()
[all …]
/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/external/vulkancts/framework/vulkan/
DvkImageUtil.hpp136 deUint32 channelNdx);
141 deUint32 channelNdx);
DvkImageUtil.cpp2163 deUint32 channelNdx) in getChannelAccess() argument
2165 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx)); in getChannelAccess()
2167 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx; in getChannelAccess()
2168 const deUint32 planeOffsetBytes = formatInfo.channels[channelNdx].offsetBits / 8; in getChannelAccess()
2169 const deUint32 valueOffsetBits = formatInfo.channels[channelNdx].offsetBits % 8; in getChannelAccess()
2170 const deUint32 pixelStrideBytes = formatInfo.channels[channelNdx].strideBytes; in getChannelAccess()
2187 …BufferAccess(getChannelAccessFormat((tcu::TextureChannelClass)formatInfo.channels[channelNdx].type, in getChannelAccess()
2189 formatInfo.channels[channelNdx].sizeBits), in getChannelAccess()
2200 deUint32 channelNdx) in getChannelAccess() argument
2202 …tChannelAccess(formatInfo, size, planeRowPitches, const_cast<void* const*>(planePtrs), channelNdx); in getChannelAccess()
/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.cpp1449 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in setTexelColors() local
1451 …if (!isHDREndpoint[colorEndpointNdx] || (channelNdx == 3 && colorEndpointModes[colorEndpointNdx] =… in setTexelColors()
1453 const deUint32 c0 = (e0[channelNdx] << 8) | (isSRGB ? 0x80 : e0[channelNdx]); in setTexelColors()
1454 const deUint32 c1 = (e1[channelNdx] << 8) | (isSRGB ? 0x80 : e1[channelNdx]); in setTexelColors()
1455 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0]; in setTexelColors()
1459 ((deUint8*)dst)[texelNdx*4 + channelNdx] = (deUint8)((c & 0xff00) >> 8); in setTexelColors()
1461 ((float*)dst)[texelNdx*4 + channelNdx] = c == 65535 ? 1.0f : (float)c / 65536.0f; in setTexelColors()
1466 const deUint32 c0 = e0[channelNdx] << 4; in setTexelColors()
1467 const deUint32 c1 = e1[channelNdx] << 4; in setTexelColors()
1468 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()