Home
last modified time | relevance | path

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

/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 …]
/external/skia/src/gpu/
DSkGr.cpp315 SkYUVPlanesCache::Info yuvInfo; in load_yuv_texture() local
319 cachedData.reset(SkYUVPlanesCache::FindAndRef(pixelRef->getGenerationID(), &yuvInfo)); in load_yuv_texture()
325 planes[1] = (uint8_t*)planes[0] + yuvInfo.fSizeInMemory[0]; in load_yuv_texture()
326 planes[2] = (uint8_t*)planes[1] + yuvInfo.fSizeInMemory[1]; in load_yuv_texture()
330 if (!pixelRef->getYUV8Planes(yuvInfo.fSize, NULL, NULL, NULL)) { in load_yuv_texture()
337 yuvInfo.fRowBytes[i] = yuvInfo.fSize[i].fWidth; in load_yuv_texture()
338 yuvInfo.fSizeInMemory[i] = yuvInfo.fRowBytes[i] * yuvInfo.fSize[i].fHeight; in load_yuv_texture()
339 totalSize += yuvInfo.fSizeInMemory[i]; in load_yuv_texture()
348 planes[1] = (uint8_t*)planes[0] + yuvInfo.fSizeInMemory[0]; in load_yuv_texture()
349 planes[2] = (uint8_t*)planes[1] + yuvInfo.fSizeInMemory[1]; in load_yuv_texture()
[all …]