Lines Matching refs:imageData
132 const MultiPlaneImageData& imageData,
136 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx)
143 (VkDeviceSize)imageData.getPlaneSize(planeNdx),
163 const MultiPlaneImageData& imageData,
167 allocateStagingBuffers(vkd, device, allocator, imageData, buffers, allocations);
169 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx)
171 deMemcpy((*allocations)[planeNdx]->getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPlaneSize(planeNdx));
176 void readStagingBuffers (MultiPlaneImageData* imageData,
181 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx)
184 deMemcpy(imageData->getPlanePtr(planeNdx), allocations[planeNdx]->getHostPtr(), imageData->getPlaneSize(planeNdx));
297 void fillRandom (de::Random* randomGen, MultiPlaneImageData* imageData, const vk::VkFormat format, const bool noNan)
299 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx)
301 const size_t planeSize = imageData->getPlaneSize(planeNdx);
302 deUint8* const planePtr = (deUint8*)imageData->getPlanePtr(planeNdx);
317 void fillGradient (MultiPlaneImageData* imageData, const tcu::Vec4& minVal, const tcu::Vec4& maxVal)
319 const PlanarFormatDescription& formatInfo = imageData->getDescription();
327 const tcu::PixelBufferAccess channelAccess = imageData->getChannelAccess(channelNdx);
342 void fillZero (MultiPlaneImageData* imageData)
344 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx)
345 deMemset(imageData->getPlanePtr(planeNdx), 0, imageData->getPlaneSize(planeNdx));
381 const MultiPlaneImageData& imageData,
392 const PlanarFormatDescription& formatDesc = imageData.getDescription();
394 allocateAndWriteStagingBuffers(vkd, device, allocator, imageData, &stagingBuffers, &stagingMemory);
398 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx)
403 const VkExtent3D imageExtent = makeExtent3D(imageData.getSize().x(), imageData.getSize().y(), 1u);
483 const MultiPlaneImageData& imageData,
491 const PlanarFormatDescription& formatDesc = imageData.getDescription();
501 const size_t planeSize = imageData.getPlaneSize(planeNdx);
502 const deUint32 planeH = imageData.getSize().y() / formatDesc.planes[planeNdx].heightDivisor;
517 const void* const srcPtr = ((const deUint8*)imageData.getPlanePtr(planeNdx)) + row * rowSize;
563 MultiPlaneImageData* imageData,
574 const PlanarFormatDescription& formatDesc = imageData->getDescription();
576 allocateStagingBuffers(vkd, device, allocator, *imageData, &stagingBuffers, &stagingMemory);
580 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx)
618 const VkExtent3D imageExtent = makeExtent3D(imageData->getSize().x(), imageData->getSize().y(), 1u);
663 readStagingBuffers(imageData, vkd, device, stagingMemory);
671 MultiPlaneImageData* imageData,
678 const PlanarFormatDescription& formatDesc = imageData->getDescription();
721 const size_t planeSize = imageData->getPlaneSize(planeNdx);
722 const deUint32 planeH = imageData->getSize().y() / formatDesc.planes[planeNdx].heightDivisor;
739 void* const dstPtr = ((deUint8*)imageData->getPlanePtr(planeNdx)) + row * rowSize;