Home
last modified time | relevance | path

Searched refs:yuvaPixmapInfo (Results 1 – 13 of 13) sorted by relevance

/external/skia/src/core/
DSkYUVAPixmaps.cpp191 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()
[all …]
DSkImageGenerator.cpp34 SkYUVAPixmapInfo* yuvaPixmapInfo) const { in queryYUVAInfo()
35 SkASSERT(yuvaPixmapInfo); in queryYUVAInfo()
37 return this->onQueryYUVAInfo(supportedDataTypes, yuvaPixmapInfo) && in queryYUVAInfo()
38 yuvaPixmapInfo->isSupported(supportedDataTypes); in queryYUVAInfo()
/external/skia/tests/
DYUVTest.cpp30 SkYUVAPixmapInfo yuvaPixmapInfo; in codec_yuv() local
39 success = codec->queryYUVAInfo(kNoTypes, &yuvaPixmapInfo); in codec_yuv()
42 success = codec->queryYUVAInfo(kAllTypes, &yuvaPixmapInfo); in codec_yuv()
47 REPORTER_ASSERT(reporter, *expectedInfo == yuvaPixmapInfo.yuvaInfo()); in codec_yuv()
49 int numPlanes = yuvaPixmapInfo.numPlanes(); in codec_yuv()
52 const SkImageInfo& planeInfo = yuvaPixmapInfo.planeInfo(i); in codec_yuv()
56 REPORTER_ASSERT(reporter, planeInfo.validRowBytes(yuvaPixmapInfo.rowBytes(i))); in codec_yuv()
59 REPORTER_ASSERT(reporter, planeDataType == yuvaPixmapInfo.dataType()); in codec_yuv()
62 const SkImageInfo& planeInfo = yuvaPixmapInfo.planeInfo(i); in codec_yuv()
65 REPORTER_ASSERT(reporter, yuvaPixmapInfo.rowBytes(i) == 0); in codec_yuv()
[all …]
DImageGeneratorTest.cpp64 SkYUVAPixmapInfo yuvaPixmapInfo; in DEF_TEST() local
67 ig.queryYUVAInfo(SkYUVAPixmapInfo::SupportedDataTypes::All(), &yuvaPixmapInfo); in DEF_TEST()
72 yuvaPixmapInfo = SkYUVAPixmapInfo(yuvaInfo, in DEF_TEST()
75 SkYUVAPixmaps yuvaPixmaps = SkYUVAPixmaps::Allocate(yuvaPixmapInfo); in DEF_TEST()
DYUVCacheTest.cpp40 SkYUVAPixmapInfo yuvaPixmapInfo(yuvaInfo, in DEF_TEST() local
49 size_t size = yuvaPixmapInfo.computeTotalBytes(); in DEF_TEST()
54 yuvaPixmapInfo.initPixmapsFromSingleAllocation(data->writable_data(), pmaps); in DEF_TEST()
/external/skia/src/codec/
DSkCodecImageGenerator.cpp74 SkYUVAPixmapInfo* yuvaPixmapInfo) const { in onQueryYUVAInfo()
75 return fCodec->queryYUVAInfo(supportedDataTypes, yuvaPixmapInfo); in onQueryYUVAInfo()
DSkJpegCodec.cpp749 SkYUVAPixmapInfo* yuvaPixmapInfo) { in is_yuv_supported() argument
820 if (yuvaPixmapInfo) { in is_yuv_supported()
834 *yuvaPixmapInfo = SkYUVAPixmapInfo(yuvaInfo, colorTypes, rowBytes); in is_yuv_supported()
840 SkYUVAPixmapInfo* yuvaPixmapInfo) const { in onQueryYUVAInfo()
842 return is_yuv_supported(dinfo, *this, &supportedDataTypes, yuvaPixmapInfo); in onQueryYUVAInfo()
DSkCodec.cpp177 SkYUVAPixmapInfo* yuvaPixmapInfo) const { in queryYUVAInfo()
178 if (!yuvaPixmapInfo) { in queryYUVAInfo()
181 return this->onQueryYUVAInfo(supportedDataTypes, yuvaPixmapInfo) && in queryYUVAInfo()
182 yuvaPixmapInfo->isSupported(supportedDataTypes); in queryYUVAInfo()
/external/skia/src/image/
DSkImage_Lazy.cpp383 SkYUVAPixmapInfo yuvaPixmapInfo; in getPlanes() local
384 if (!generator->queryYUVAInfo(supportedDataTypes, &yuvaPixmapInfo) || in getPlanes()
385 yuvaPixmapInfo.yuvaInfo().dimensions() != this->dimensions()) { in getPlanes()
388 data.reset(SkResourceCache::NewCachedData(yuvaPixmapInfo.computeTotalBytes())); in getPlanes()
389 SkYUVAPixmaps tempPixmaps = SkYUVAPixmaps::FromExternalMemory(yuvaPixmapInfo, in getPlanes()
/external/skia/tools/gpu/
DYUVUtils.cpp176 SkYUVAPixmapInfo yuvaPixmapInfo; in reset() local
177 if (!codec->queryYUVAInfo(SkYUVAPixmapInfo::SupportedDataTypes::All(), &yuvaPixmapInfo)) { in reset()
180 fPixmaps = SkYUVAPixmaps::Allocate(yuvaPixmapInfo); in reset()
/external/skia/include/core/
DSkImageGenerator.h102 SkYUVAPixmapInfo* yuvaPixmapInfo) const;
DSkYUVAPixmaps.h179 static SkYUVAPixmaps Allocate(const SkYUVAPixmapInfo& yuvaPixmapInfo);
/external/skia/include/codec/
DSkCodec.h404 SkYUVAPixmapInfo* yuvaPixmapInfo) const;