Home
last modified time | relevance | path

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

/third_party/skia/src/core/
H A 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 in FromExternalMemory()
256 SkYUVAPixmaps(const SkYUVAPixmapInfo& yuvaPixmapInfo, sk_sp<SkData> data) SkYUVAPixmaps() argument
[all...]
H A 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()
/third_party/skia/tests/
H A 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 in codec_yuv()
[all...]
H A DImageGeneratorTest.cpp64 SkYUVAPixmapInfo yuvaPixmapInfo; in DEF_TEST() local
67 ig.queryYUVAInfo(SkYUVAPixmapInfo::SupportedDataTypes::All(), &yuvaPixmapInfo); in DEF_TEST() local
72 yuvaPixmapInfo = SkYUVAPixmapInfo(yuvaInfo, in DEF_TEST()
75 SkYUVAPixmaps yuvaPixmaps = SkYUVAPixmaps::Allocate(yuvaPixmapInfo); in DEF_TEST()
H A DYUVCacheTest.cpp40 SkYUVAPixmapInfo yuvaPixmapInfo(yuvaInfo, in DEF_TEST()
49 size_t size = yuvaPixmapInfo.computeTotalBytes(); in DEF_TEST()
54 yuvaPixmapInfo.initPixmapsFromSingleAllocation(data->writable_data(), pmaps); in DEF_TEST()
/third_party/skia/src/image/
H A DSkImage_Lazy.cpp387 SkYUVAPixmapInfo yuvaPixmapInfo; in getPlanes() local
388 if (!generator->queryYUVAInfo(supportedDataTypes, &yuvaPixmapInfo) || in getPlanes()
389 yuvaPixmapInfo.yuvaInfo().dimensions() != this->dimensions()) { in getPlanes()
392 data.reset(SkResourceCache::NewCachedData(yuvaPixmapInfo.computeTotalBytes())); in getPlanes()
393 SkYUVAPixmaps tempPixmaps = SkYUVAPixmaps::FromExternalMemory(yuvaPixmapInfo, in getPlanes()
/third_party/skia/src/codec/
H A DSkCodecImageGenerator.cpp74 SkYUVAPixmapInfo* yuvaPixmapInfo) const { in onQueryYUVAInfo()
75 return fCodec->queryYUVAInfo(supportedDataTypes, yuvaPixmapInfo); in onQueryYUVAInfo()
H A DSkJpegCodec.cpp775 SkYUVAPixmapInfo* yuvaPixmapInfo) { in is_yuv_supported()
846 if (yuvaPixmapInfo) { in is_yuv_supported()
860 *yuvaPixmapInfo = SkYUVAPixmapInfo(yuvaInfo, colorTypes, rowBytes); in is_yuv_supported()
866 SkYUVAPixmapInfo* yuvaPixmapInfo) const { in onQueryYUVAInfo()
868 return is_yuv_supported(dinfo, *this, &supportedDataTypes, yuvaPixmapInfo); in onQueryYUVAInfo()
772 is_yuv_supported(const jpeg_decompress_struct* dinfo, const SkJpegCodec& codec, const SkYUVAPixmapInfo::SupportedDataTypes* supportedDataTypes, SkYUVAPixmapInfo* yuvaPixmapInfo) is_yuv_supported() argument
H A DSkCodec.cpp194 SkYUVAPixmapInfo* yuvaPixmapInfo) const { in queryYUVAInfo()
195 if (!yuvaPixmapInfo) { in queryYUVAInfo()
198 return this->onQueryYUVAInfo(supportedDataTypes, yuvaPixmapInfo) && in queryYUVAInfo()
199 yuvaPixmapInfo->isSupported(supportedDataTypes); in queryYUVAInfo()
/third_party/skia/tools/gpu/
H A DYUVUtils.cpp228 SkYUVAPixmapInfo yuvaPixmapInfo;
229 if (!codec->queryYUVAInfo(SkYUVAPixmapInfo::SupportedDataTypes::All(), &yuvaPixmapInfo)) {
232 fPixmaps = SkYUVAPixmaps::Allocate(yuvaPixmapInfo);
/third_party/skia/include/core/
H A DSkImageGenerator.h92 * returns false and the caller will ignore output parameter yuvaPixmapInfo.
98 * @param yuvaPixmapInfo Output parameter that specifies the planar configuration, subsampling,
102 SkYUVAPixmapInfo* yuvaPixmapInfo) const;
H A DSkYUVAPixmaps.h179 static SkYUVAPixmaps Allocate(const SkYUVAPixmapInfo& yuvaPixmapInfo);
/third_party/skia/include/codec/
H A DSkCodec.h394 * returns false and the caller will ignore output parameter yuvaPixmapInfo.
400 * @param yuvaPixmapInfo Output parameter that specifies the planar configuration, subsampling,
404 SkYUVAPixmapInfo* yuvaPixmapInfo) const;

Completed in 9 milliseconds