Searched refs:yuvInfo (Results 1 – 4 of 4) sorted by relevance
/external/skqp/src/gpu/ |
D | GrYUVProvider.cpp | 29 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/skia/src/gpu/ |
D | GrYUVProvider.cpp | 29 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/skia/tests/ |
D | YUVCacheTest.cpp | 34 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/skqp/tests/ |
D | YUVCacheTest.cpp | 34 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 …]
|