Lines Matching refs:formatInfo
319 const PlanarFormatDescription& formatInfo = imageData->getDescription();
325 if (formatInfo.hasChannelNdx(channelNdx))
991 const vk::PlanarFormatDescription& formatInfo,
995 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx));
997 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx;
998 const deUint32 valueOffsetBits = formatInfo.channels[channelNdx].offsetBits;
999 const deUint32 pixelStrideBytes = formatInfo.channels[channelNdx].strideBytes;
1001 const deUint8 sizeBits = formatInfo.channels[channelNdx].sizeBits;
1003 DE_ASSERT(size.x() % (formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDivisor) == 0);
1004 DE_ASSERT(size.y() % (formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor) == 0);
1006 deUint32 accessWidth = size.x() / ( formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDivisor );
1007 const deUint32 accessHeight = size.y() / ( formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor );
1008 const deUint32 elementSizeBytes = formatInfo.planes[planeNdx].elementSizeBytes;
1009 const deUint32 rowPitch = formatInfo.planes[planeNdx].elementSizeBytes * accessWidth;
1018 return ChannelAccess((tcu::TextureChannelClass)formatInfo.channels[channelNdx].type, sizeBits, tcu::IVec3(accessWidth, accessHeight, 1u), tcu::IVec3((int)pixelStrideBits, (int)rowPitchBits, 0), data.getPlanePtr(planeNdx), (deUint32)valueOffsetBits);