• Home
  • Raw
  • Download

Lines Matching refs:yuvaPixmapInfo

191 SkYUVAPixmaps SkYUVAPixmaps::Allocate(const SkYUVAPixmapInfo& yuvaPixmapInfo) {  in Allocate()  argument
192 if (!yuvaPixmapInfo.isValid()) { in Allocate()
195 return SkYUVAPixmaps(yuvaPixmapInfo, in Allocate()
196 SkData::MakeUninitialized(yuvaPixmapInfo.computeTotalBytes())); in Allocate()
199 SkYUVAPixmaps SkYUVAPixmaps::FromData(const SkYUVAPixmapInfo& yuvaPixmapInfo, sk_sp<SkData> data) { in FromData() argument
200 if (!yuvaPixmapInfo.isValid()) { in FromData()
203 if (yuvaPixmapInfo.computeTotalBytes() > data->size()) { in FromData()
206 return SkYUVAPixmaps(yuvaPixmapInfo, std::move(data)); in FromData()
230 SkYUVAPixmaps SkYUVAPixmaps::FromExternalMemory(const SkYUVAPixmapInfo& yuvaPixmapInfo, in FromExternalMemory() argument
232 if (!yuvaPixmapInfo.isValid()) { in FromExternalMemory()
236 yuvaPixmapInfo.initPixmapsFromSingleAllocation(memory, pixmaps); in FromExternalMemory()
237 return SkYUVAPixmaps(yuvaPixmapInfo.yuvaInfo(), yuvaPixmapInfo.dataType(), pixmaps); in FromExternalMemory()
249 SkYUVAPixmapInfo yuvaPixmapInfo(yuvaInfo, colorTypes, rowBytes); in FromExternalPixmaps() local
250 if (!yuvaPixmapInfo.isValid()) { in FromExternalPixmaps()
253 return SkYUVAPixmaps(yuvaInfo, yuvaPixmapInfo.dataType(), pixmaps); in FromExternalPixmaps()
256 SkYUVAPixmaps::SkYUVAPixmaps(const SkYUVAPixmapInfo& yuvaPixmapInfo, sk_sp<SkData> data) in SkYUVAPixmaps() argument
258 , fYUVAInfo(yuvaPixmapInfo.yuvaInfo()) in SkYUVAPixmaps()
259 , fDataType(yuvaPixmapInfo.dataType()) { in SkYUVAPixmaps()
260 SkASSERT(yuvaPixmapInfo.isValid()); in SkYUVAPixmaps()
261 SkASSERT(yuvaPixmapInfo.computeTotalBytes() <= fData->size()); in SkYUVAPixmaps()
262 SkAssertResult(yuvaPixmapInfo.initPixmapsFromSingleAllocation(fData->writable_data(), in SkYUVAPixmaps()