Home
last modified time | relevance | path

Searched refs:yuvInfo (Results 1 – 3 of 3) sorted by relevance

/external/skqp/src/gpu/
DGrYUVProvider.cpp29 SkYUVPlanesCache::Info yuvInfo; in getPlanes() local
30 data.reset(SkYUVPlanesCache::FindAndRef(this->onGetID(), &yuvInfo)); in getPlanes()
38 if (!yuvInfo.fSizeInfo.fWidthBytes[i]) { in getPlanes()
39 SkASSERT(!yuvInfo.fSizeInfo.fWidthBytes[i] && in getPlanes()
40 !yuvInfo.fSizeInfo.fSizes[i].fHeight); in getPlanes()
45 planes[i] = (uint8_t*)planes[i-1] + (yuvInfo.fSizeInfo.fWidthBytes[i-1] * in getPlanes()
46 yuvInfo.fSizeInfo.fSizes[i-1].fHeight); in getPlanes()
50 if (!this->onQueryYUVA8(&yuvInfo.fSizeInfo, yuvInfo.fYUVAIndices, &yuvInfo.fColorSpace)) { in getPlanes()
57 SkASSERT((yuvInfo.fSizeInfo.fWidthBytes[i] && yuvInfo.fSizeInfo.fSizes[i].fHeight) || in getPlanes()
58 (!yuvInfo.fSizeInfo.fWidthBytes[i] && !yuvInfo.fSizeInfo.fSizes[i].fHeight)); in getPlanes()
[all …]
/external/skqp/tests/
DYUVCacheTest.cpp34 SkYUVPlanesCache::Info yuvInfo; in DEF_TEST() local
36 yuvInfo.fSizeInfo.fSizes[i].fWidth = 20 * (i + 1); in DEF_TEST()
37 yuvInfo.fSizeInfo.fSizes[i].fHeight = 10 * (i + 1); in DEF_TEST()
38 yuvInfo.fSizeInfo.fWidthBytes[i] = 80 * (i + 1); in DEF_TEST()
42 yuvInfo.fYUVAIndices[i].fIndex = -1; in DEF_TEST()
43 yuvInfo.fYUVAIndices[i].fChannel = SkColorChannel::kR; in DEF_TEST()
45 yuvInfo.fColorSpace = kRec601_SkYUVColorSpace; in DEF_TEST()
49 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfo, &cache); in DEF_TEST()
56 SkYUVPlanesCache::Add(genID, data, &yuvInfo, &cache); in DEF_TEST()
67 REPORTER_ASSERT(reporter, yuvInfo.fSizeInfo == yuvInfoRead.fSizeInfo); in DEF_TEST()
[all …]
/external/angle/src/libANGLE/renderer/vulkan/
Dvk_helpers.cpp5531 gl::YuvFormatInfo yuvInfo(formatInfo.internalFormat, glExtents); in stageSubresourceUpdateImpl() local
5540 for (uint32_t plane = 0; plane < yuvInfo.planeCount; plane++) in stageSubresourceUpdateImpl()
5543 copy.bufferOffset = stagingOffset + yuvInfo.planeOffset[plane]; in stageSubresourceUpdateImpl()
5549 gl_vk::GetExtent(yuvInfo.planeExtent[plane], &copy.imageExtent); in stageSubresourceUpdateImpl()
5654 gl::YuvFormatInfo yuvInfo(formatInfo.internalFormat, glExtents); in CalculateBufferInfo() local
5657 *inputRowPitch = yuvInfo.planePitch[0]; in CalculateBufferInfo()
5659 *inputDepthPitch = yuvInfo.planeSize[0] + yuvInfo.planeSize[1] + yuvInfo.planeSize[2]; in CalculateBufferInfo()