Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DGrYUVProvider.cpp35 bool YUVScoper::init(GrYUVProvider* provider, SkYUVPlanesCache::Info* yuvInfo, void* planes[3], in init() argument
38 fCachedData.reset(SkYUVPlanesCache::FindAndRef(provider->onGetID(), yuvInfo)); in init()
43 planes[1] = (uint8_t*)planes[0] + yuvInfo->fSizeInMemory[0]; in init()
44 planes[2] = (uint8_t*)planes[1] + yuvInfo->fSizeInMemory[1]; in init()
48 if (!provider->onGetYUVSizes(yuvInfo->fSize)) { in init()
55 yuvInfo->fRowBytes[i] = yuvInfo->fSize[i].fWidth; // we assume snug fit: rb == width in init()
56 yuvInfo->fSizeInMemory[i] = yuvInfo->fRowBytes[i] * yuvInfo->fSize[i].fHeight; in init()
57 totalSize += yuvInfo->fSizeInMemory[i]; in init()
66 planes[1] = (uint8_t*)planes[0] + yuvInfo->fSizeInMemory[0]; in init()
67 planes[2] = (uint8_t*)planes[1] + yuvInfo->fSizeInMemory[1]; in init()
[all …]
/external/skia/tests/
DYUVCacheTest.cpp34 SkYUVPlanesCache::Info yuvInfo; in DEF_TEST() local
36 yuvInfo.fSize[i].fWidth = 20 * i; in DEF_TEST()
37 yuvInfo.fSize[i].fHeight = 10 * i; in DEF_TEST()
38 yuvInfo.fSizeInMemory[i] = 800 * i; in DEF_TEST()
39 yuvInfo.fRowBytes[i] = 80 * i; in DEF_TEST()
41 yuvInfo.fColorSpace = kRec601_SkYUVColorSpace; in DEF_TEST()
45 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfo, &cache); in DEF_TEST()
52 SkYUVPlanesCache::Add(genID, data, &yuvInfo, &cache); in DEF_TEST()
64 REPORTER_ASSERT(reporter, yuvInfo.fSize[i].fWidth == yuvInfoRead.fSize[i].fWidth); in DEF_TEST()
65 REPORTER_ASSERT(reporter, yuvInfo.fSize[i].fHeight == yuvInfoRead.fSize[i].fHeight); in DEF_TEST()
[all …]