Lines Matching refs:yuvInfo
35 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()
70 if (!provider->onGetYUVPlanes(yuvInfo->fSize, planes, yuvInfo->fRowBytes, in init()
71 &yuvInfo->fColorSpace)) { in init()
77 SkYUVPlanesCache::Add(provider->onGetID(), fCachedData, yuvInfo); in init()
84 SkYUVPlanesCache::Info yuvInfo; in refAsTexture() local
87 if (!scoper.init(this, &yuvInfo, planes, useCache)) { in refAsTexture()
95 yuvDesc.fWidth = yuvInfo.fSize[i].fWidth; in refAsTexture()
96 yuvDesc.fHeight = yuvInfo.fSize[i].fHeight; in refAsTexture()
98 bool needsExactTexture = (yuvDesc.fWidth != yuvInfo.fSize[0].fWidth) || in refAsTexture()
99 (yuvDesc.fHeight != yuvInfo.fSize[0].fHeight); in refAsTexture()
107 yuvDesc.fConfig, planes[i], yuvInfo.fRowBytes[i])) { in refAsTexture()
129 yuvInfo.fSize, in refAsTexture()
130 yuvInfo.fColorSpace)); in refAsTexture()
133 const SkRect r = SkRect::MakeIWH(yuvInfo.fSize[0].fWidth, yuvInfo.fSize[0].fHeight); in refAsTexture()