Home
last modified time | relevance | path

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

/external/skqp/tests/
DImageGeneratorTest.cpp65 SkYUVASizeInfo sizeInfo; in DEF_TEST() local
66 sizeInfo.fSizes[0] = SkISize::Make(200, 200); in DEF_TEST()
67 sizeInfo.fSizes[1] = SkISize::Make(100, 100); in DEF_TEST()
68 sizeInfo.fSizes[2] = SkISize::Make( 50, 50); in DEF_TEST()
69 sizeInfo.fSizes[3] = SkISize::Make( 25, 25); in DEF_TEST()
70 sizeInfo.fWidthBytes[0] = 0; in DEF_TEST()
71 sizeInfo.fWidthBytes[1] = 0; in DEF_TEST()
72 sizeInfo.fWidthBytes[2] = 0; in DEF_TEST()
73 sizeInfo.fWidthBytes[3] = 0; in DEF_TEST()
79 ig.queryYUVA8(&sizeInfo, yuvaIndices, nullptr); in DEF_TEST()
[all …]
/external/skqp/src/core/
DSkImageGenerator.cpp33 bool SkImageGenerator::queryYUVA8(SkYUVASizeInfo* sizeInfo, in queryYUVA8() argument
36 SkASSERT(sizeInfo); in queryYUVA8()
38 return this->onQueryYUVA8(sizeInfo, yuvaIndices, colorSpace); in queryYUVA8()
41 bool SkImageGenerator::getYUVA8Planes(const SkYUVASizeInfo& sizeInfo, in getYUVA8Planes() argument
46 SkASSERT(sizeInfo.fSizes[i].fWidth >= 0); in getYUVA8Planes()
47 SkASSERT(sizeInfo.fSizes[i].fHeight >= 0); in getYUVA8Planes()
48 SkASSERT(sizeInfo.fWidthBytes[i] >= (size_t) sizeInfo.fSizes[i].fWidth); in getYUVA8Planes()
58 return this->onGetYUVA8Planes(sizeInfo, yuvaIndices, planes); in getYUVA8Planes()
/external/skqp/include/codec/
DSkCodec.h360 bool queryYUV8(SkYUVASizeInfo* sizeInfo, SkYUVColorSpace* colorSpace) const { in queryYUV8() argument
361 if (nullptr == sizeInfo) { in queryYUV8()
365 bool result = this->onQueryYUV8(sizeInfo, colorSpace); in queryYUV8()
368 SkASSERT(sizeInfo->fSizes[i].fWidth > 0 && sizeInfo->fSizes[i].fHeight > 0 && in queryYUV8()
369 sizeInfo->fWidthBytes[i] > 0); in queryYUV8()
371 SkASSERT(!sizeInfo->fSizes[3].fWidth && in queryYUV8()
372 !sizeInfo->fSizes[3].fHeight && in queryYUV8()
373 !sizeInfo->fWidthBytes[3]); in queryYUV8()
388 Result getYUV8Planes(const SkYUVASizeInfo& sizeInfo, void* planes[SkYUVASizeInfo::kMaxCount]) { in getYUV8Planes() argument
398 return this->onGetYUV8Planes(sizeInfo, planes); in getYUV8Planes()
/external/skqp/src/codec/
DSkJpegCodec.cpp842 bool SkJpegCodec::onQueryYUV8(SkYUVASizeInfo* sizeInfo, SkYUVColorSpace* colorSpace) const { in onQueryYUV8() argument
850 sizeInfo->fSizes[i].set(comp_info[i].downsampled_width, comp_info[i].downsampled_height); in onQueryYUV8()
851 sizeInfo->fWidthBytes[i] = comp_info[i].width_in_blocks * DCTSIZE; in onQueryYUV8()
855 sizeInfo->fSizes[3].fHeight = sizeInfo->fSizes[3].fWidth = sizeInfo->fWidthBytes[3] = 0; in onQueryYUV8()
857 sizeInfo->fOrigin = this->getOrigin(); in onQueryYUV8()
866 SkCodec::Result SkJpegCodec::onGetYUV8Planes(const SkYUVASizeInfo& sizeInfo, in onGetYUV8Planes() argument
873 sizeInfo.fSizes[0] != defaultInfo.fSizes[0] || in onGetYUV8Planes()
874 sizeInfo.fSizes[1] != defaultInfo.fSizes[1] || in onGetYUV8Planes()
875 sizeInfo.fSizes[2] != defaultInfo.fSizes[2] || in onGetYUV8Planes()
876 sizeInfo.fWidthBytes[0] < defaultInfo.fWidthBytes[0] || in onGetYUV8Planes()
[all …]
DSkCodecImageGenerator.cpp69 bool SkCodecImageGenerator::onQueryYUVA8(SkYUVASizeInfo* sizeInfo, in onQueryYUVA8() argument
82 return fCodec->queryYUV8(sizeInfo, colorSpace); in onQueryYUVA8()
85 bool SkCodecImageGenerator::onGetYUVA8Planes(const SkYUVASizeInfo& sizeInfo, in onGetYUVA8Planes() argument
88 SkCodec::Result result = fCodec->getYUV8Planes(sizeInfo, planes); in onGetYUVA8Planes()
DSkJpegCodec.h47 bool onQueryYUV8(SkYUVASizeInfo* sizeInfo, SkYUVColorSpace* colorSpace) const override;
49 Result onGetYUV8Planes(const SkYUVASizeInfo& sizeInfo,
/external/skqp/src/gpu/
DGrYUVProvider.h67 virtual bool onQueryYUVA8(SkYUVASizeInfo* sizeInfo,
82 virtual bool onGetYUVA8Planes(const SkYUVASizeInfo& sizeInfo,
/external/skqp/include/core/
DSkImageGenerator.h95 bool queryYUVA8(SkYUVASizeInfo* sizeInfo,
111 bool getYUVA8Planes(const SkYUVASizeInfo& sizeInfo,
/external/skqp/src/image/
DSkImage_Lazy.cpp307 bool onQueryYUVA8(SkYUVASizeInfo* sizeInfo, in onQueryYUVA8() argument
310 return fGen->queryYUVA8(sizeInfo, yuvaIndices, colorSpace); in onQueryYUVA8()
312 bool onGetYUVA8Planes(const SkYUVASizeInfo& sizeInfo, in onGetYUVA8Planes() argument
315 return fGen->getYUVA8Planes(sizeInfo, yuvaIndices, planes); in onGetYUVA8Planes()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderFConvertTests.cpp352 BufferSizeInfo sizeInfo = BufferSizeInfo::calculate<T>(values.size(), vectorLength); in packFloats() local
354 std::vector<deUint8> memory(sizeInfo.memorySizeBytes); in packFloats()
355 for (size_t i = 0; i < sizeInfo.totalVectors; ++i) in packFloats()
357 T* vectorPtr = reinterpret_cast<T*>(memory.data() + sizeInfo.vectorStrideBytes * i); in packFloats()
/external/deqp/external/vulkancts/framework/vulkan/
DvkRayTracingUtil.cpp979 VkAccelerationStructureBuildSizesInfoKHR sizeInfo = in create() local
988 …ce, m_buildType, &accelerationStructureBuildGeometryInfoKHR, maxPrimitiveCounts.data(), &sizeInfo); in create()
990 m_structureSize = sizeInfo.accelerationStructureSize; in create()
991 m_updateScratchSize = sizeInfo.updateScratchSize; in create()
992 m_buildScratchSize = sizeInfo.buildScratchSize; in create()
1774 VkAccelerationStructureBuildSizesInfoKHR sizeInfo = in create() local
1783 …ce, m_buildType, &accelerationStructureBuildGeometryInfoKHR, maxPrimitiveCounts.data(), &sizeInfo); in create()
1785 m_structureSize = sizeInfo.accelerationStructureSize; in create()
1786 m_updateScratchSize = sizeInfo.updateScratchSize; in create()
1787 m_buildScratchSize = sizeInfo.buildScratchSize; in create()