Home
last modified time | relevance | path

Searched refs:yuvaPixmaps (Results 1 – 21 of 21) sorted by relevance

/external/skia/tests/
DYUVCacheTest.cpp43 SkYUVAPixmaps yuvaPixmaps; in DEF_TEST() local
46 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvaPixmaps, &cache); in DEF_TEST()
55 yuvaPixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, pmaps); in DEF_TEST()
57 SkYUVPlanesCache::Add(genID, data, yuvaPixmaps, &cache); in DEF_TEST()
68 REPORTER_ASSERT(reporter, yuvaPixmapsRead.yuvaInfo() == yuvaPixmaps.yuvaInfo()); in DEF_TEST()
70 for (int i = 0; i < yuvaPixmaps.numPlanes(); ++i) { in DEF_TEST()
71 REPORTER_ASSERT(reporter, yuvaPixmaps.plane(i).info() == yuvaPixmapsRead.plane(i).info()); in DEF_TEST()
72 REPORTER_ASSERT(reporter, yuvaPixmaps.plane(i).addr() == yuvaPixmapsRead.plane(i).addr()); in DEF_TEST()
73 REPORTER_ASSERT(reporter, yuvaPixmaps.plane(i).rowBytes() == in DEF_TEST()
DImageGeneratorTest.cpp75 SkYUVAPixmaps yuvaPixmaps = SkYUVAPixmaps::Allocate(yuvaPixmapInfo); in DEF_TEST() local
76 ig.getYUVAPlanes(yuvaPixmaps); in DEF_TEST()
DImageTest.cpp1407 auto yuvaPixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, pmaps); in make_yuva_image() local
1409 return SkImage::MakeFromYUVAPixmaps(dContext, yuvaPixmaps); in make_yuva_image()
/external/skia/src/image/
DSkImage_Lazy.cpp280 SkYUVAPixmaps yuvaPixmaps; in textureProxyViewFromPlanes() local
281 sk_sp<SkCachedData> dataStorage = this->getPlanes(supportedDataTypes, &yuvaPixmaps); in textureProxyViewFromPlanes()
288 for (int i = 0; i < yuvaPixmaps.numPlanes(); ++i) { in textureProxyViewFromPlanes()
292 SkBackingFit fit = yuvaPixmaps.plane(i).dimensions() == this->dimensions() in textureProxyViewFromPlanes()
308 bitmap.installPixels(yuvaPixmaps.plane(i).info(), in textureProxyViewFromPlanes()
309 yuvaPixmaps.plane(i).writable_addr(), in textureProxyViewFromPlanes()
310 yuvaPixmaps.plane(i).rowBytes(), in textureProxyViewFromPlanes()
342 GrYUVATextureProxies yuvaProxies(yuvaPixmaps.yuvaInfo(), views, pixmapColorTypes); in textureProxyViewFromPlanes()
373 SkYUVAPixmaps* yuvaPixmaps) const { in getPlanes()
376 sk_sp<SkCachedData> data(SkYUVPlanesCache::FindAndRef(generator->uniqueID(), yuvaPixmaps)); in getPlanes()
[all …]
/external/skqp/src/image/
DSkImage_GpuYUVA.cpp189 GrContext* context, SkYUVColorSpace yuvColorSpace, const SkPixmap yuvaPixmaps[], in MakeFromYUVAPixmaps() argument
201 const SkPixmap* pixmap = &yuvaPixmaps[i]; in MakeFromYUVAPixmaps()
204 int maxDim = SkTMax(yuvaPixmaps[i].width(), yuvaPixmaps[i].height()); in MakeFromYUVAPixmaps()
207 int newWidth = SkTMin(static_cast<int>(yuvaPixmaps[i].width() * scale), in MakeFromYUVAPixmaps()
209 int newHeight = SkTMin(static_cast<int>(yuvaPixmaps[i].height() * scale), in MakeFromYUVAPixmaps()
211 SkImageInfo info = yuvaPixmaps[i].info().makeWH(newWidth, newHeight); in MakeFromYUVAPixmaps()
213 !yuvaPixmaps[i].scalePixels(resized, kLow_SkFilterQuality)) { in MakeFromYUVAPixmaps()
/external/skia/src/core/
DSkImageGenerator.cpp41 bool SkImageGenerator::getYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps) { in getYUVAPlanes() argument
42 return this->onGetYUVAPlanes(yuvaPixmaps); in getYUVAPlanes()
/external/skia/src/codec/
DSkCodecImageGenerator.cpp78 bool SkCodecImageGenerator::onGetYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps) { in onGetYUVAPlanes() argument
79 switch (fCodec->getYUVAPlanes(yuvaPixmaps)) { in onGetYUVAPlanes()
DSkCodecImageGenerator.h104 bool onGetYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps) override;
DSkJpegCodec.h50 Result onGetYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps) override;
DSkCodec.cpp185 SkCodec::Result SkCodec::getYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps) { in getYUVAPlanes() argument
186 if (!yuvaPixmaps.isValid()) { in getYUVAPlanes()
192 return this->onGetYUVAPlanes(yuvaPixmaps); in getYUVAPlanes()
DSkJpegCodec.cpp845 SkCodec::Result SkJpegCodec::onGetYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps) { in onGetYUVAPlanes() argument
862 const std::array<SkPixmap, SkYUVAPixmaps::kMaxPlanes>& planes = yuvaPixmaps.planes(); in onGetYUVAPlanes()
872 SkASSERT(info.yuvaInfo() == yuvaPixmaps.yuvaInfo()); in onGetYUVAPlanes()
/external/skia/tools/
DDDLPromiseImageHelper.cpp403 auto yuvaPixmaps = SkYUVAPixmaps::Allocate(yuvaInfo); in addImage() local
404 if (!codec->getYUVAPlanes(yuvaPixmaps)) { in addImage()
407 SkASSERT(yuvaPixmaps.isValid()); in addImage()
408 newImageInfo.setYUVPlanes(std::move(yuvaPixmaps)); in addImage()
DDDLPromiseImageHelper.h195 void setYUVPlanes(SkYUVAPixmaps yuvaPixmaps) { fYUVAPixmaps = std::move(yuvaPixmaps); } in setYUVPlanes() argument
/external/skia/include/core/
DSkImageGenerator.h112 bool getYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps);
/external/skia/experimental/ffmpeg/
DSkVideoDecoder.cpp178 auto yuvaPixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, pixmaps); in make_yuv_420() local
181 rContext, yuvaPixmaps, GrMipMapped::kNo, false, std::move(cs)); in make_yuv_420()
/external/skia/gm/
Dwacky_yuv_formats.cpp1046 auto yuvaPixmaps = planarConfig.makeYUVAPixmaps(fOriginalBMs[opaque].dimensions(), in createImages() local
1054 auto lazyYUV = sk_gpu_test::LazyYUVImage::Make(yuvaPixmaps, in createImages()
1242 auto yuvaPixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, fPM); in onDraw() local
1244 yuvaPixmaps, in onDraw()
/external/skia/include/codec/
DSkCodec.h414 Result getYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps);
/external/skqp/include/core/
DSkImage.h459 GrContext* context, SkYUVColorSpace yuvColorSpace, const SkPixmap yuvaPixmaps[],
/external/skqp/gm/
Dwacky_yuv_formats.cpp795 SkPixmap yuvaPixmaps[4]; in createImages() local
803 yuvaPixmaps[i] = resultBMs[i].pixmap(); in createImages()
831 yuvaPixmaps, in createImages()
/external/skqp/site/user/api/
DSkImage_Reference.md80 …lorSpace</a> yuvColorSpace, const <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a> yuvaPixmaps[],
1002 …lorSpace</a> yuvColorSpace, const <a href='SkPixmap_Reference#SkPixmap'>SkPixmap</a> yuvaPixmaps[],
1011 …re</a> created from <a href='#SkImage_MakeFromYUVAPixmaps_yuvaPixmaps'>yuvaPixmaps</a> array is up…
1033 <table> <tr> <td><a name='SkImage_MakeFromYUVAPixmaps_yuvaPixmaps'><code><strong>yuvaPixmaps</s…
1043 …xmap'>pixmap</a> in <a href='#SkImage_MakeFromYUVAPixmaps_yuvaPixmaps'>yuvaPixmaps</a>, and channe…
/external/skqp/docs/
DSkImage_Reference.bmh505 const SkPixmap yuvaPixmaps[],