Home
last modified time | relevance | path

Searched refs:yuvaInfo (Results 1 - 23 of 23) sorted by relevance

/third_party/skia/src/core/
H A DSkYUVAPixmaps.cpp78 SkYUVAPixmapInfo::SkYUVAPixmapInfo(const SkYUVAInfo& yuvaInfo, in SkYUVAPixmapInfo() argument
81 : fYUVAInfo(yuvaInfo) { in SkYUVAPixmapInfo()
82 if (!yuvaInfo.isValid()) { in SkYUVAPixmapInfo()
88 int n = yuvaInfo.planeDimensions(planeDimensions); in SkYUVAPixmapInfo()
103 int numRequiredChannels = yuvaInfo.numChannelsInPlane(i); in SkYUVAPixmapInfo()
119 SkYUVAPixmapInfo::SkYUVAPixmapInfo(const SkYUVAInfo& yuvaInfo, in SkYUVAPixmapInfo() argument
123 int numPlanes = yuvaInfo.numPlanes(); in SkYUVAPixmapInfo()
125 int numChannels = yuvaInfo.numChannelsInPlane(i); in SkYUVAPixmapInfo()
128 *this = SkYUVAPixmapInfo(yuvaInfo, colorTypes, rowBytes); in SkYUVAPixmapInfo()
237 return SkYUVAPixmaps(yuvaPixmapInfo.yuvaInfo(), yuvaPixmapInf in FromExternalMemory()
240 FromExternalPixmaps(const SkYUVAInfo& yuvaInfo, const SkPixmap pixmaps[kMaxPlanes]) FromExternalPixmaps() argument
266 SkYUVAPixmaps(const SkYUVAInfo& yuvaInfo, DataType dataType, const SkPixmap pixmaps[kMaxPlanes]) SkYUVAPixmaps() argument
[all...]
/third_party/skia/src/gpu/
H A DGrYUVABackendTextures.cpp25 GrYUVABackendTextureInfo::GrYUVABackendTextureInfo(const SkYUVAInfo& yuvaInfo, in GrYUVABackendTextureInfo() argument
29 : fYUVAInfo(yuvaInfo), fMipmapped(mipmapped), fTextureOrigin(origin) { in GrYUVABackendTextureInfo()
30 if (!yuvaInfo.isValid()) { in GrYUVABackendTextureInfo()
35 int n = yuvaInfo.numPlanes(); in GrYUVABackendTextureInfo()
42 int numRequiredChannels = yuvaInfo.numChannelsInPlane(i); in GrYUVABackendTextureInfo()
79 const SkYUVAInfo& yuvaInfo, in GrYUVABackendTextures()
82 : fYUVAInfo(yuvaInfo), fTextureOrigin(textureOrigin) { in GrYUVABackendTextures()
87 int numPlanes = yuvaInfo.planeDimensions(planeDimensions); in GrYUVABackendTextures()
78 GrYUVABackendTextures( const SkYUVAInfo& yuvaInfo, const GrBackendTexture textures[SkYUVAInfo::kMaxPlanes], GrSurfaceOrigin textureOrigin) GrYUVABackendTextures() argument
H A DGrYUVATextureProxies.cpp28 GrYUVATextureProxies::GrYUVATextureProxies(const SkYUVAInfo& yuvaInfo, in GrYUVATextureProxies() argument
31 : fYUVAInfo(yuvaInfo), fTextureOrigin(textureOrigin) { in GrYUVATextureProxies()
32 int n = yuvaInfo.numPlanes(); in GrYUVATextureProxies()
47 fYUVALocations = yuvaInfo.toYUVALocations(textureChannelMasks); in GrYUVATextureProxies()
69 GrYUVATextureProxies::GrYUVATextureProxies(const SkYUVAInfo& yuvaInfo, in GrYUVATextureProxies() argument
72 : fYUVAInfo(yuvaInfo) { in GrYUVATextureProxies()
74 int n = yuvaInfo.numPlanes(); in GrYUVATextureProxies()
95 fYUVALocations = yuvaInfo.toYUVALocations(pixmapChannelMasks); in GrYUVATextureProxies()
H A DGrYUVATextureProxies.h43 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() function in GrYUVATextureProxies
/third_party/skia/src/image/
H A DSkImage_GpuYUVA.cpp39 SkImageInfo::Make(proxies.yuvaInfo().dimensions(), in SkImage_GpuYUVA()
45 proxies.yuvaInfo().hasAlpha() ? kPremul_SkAlphaType in SkImage_GpuYUVA()
75 int n = fYUVAProxies.yuvaInfo().numPlanes(); in setupMipmapsForPlanes()
90 fYUVAProxies = GrYUVATextureProxies(fYUVAProxies.yuvaInfo(), in setupMipmapsForPlanes()
232 int numPlanes = yuvaTextures.yuvaInfo().numPlanes(); in MakeFromYUVATextures()
244 GrYUVATextureProxies yuvaProxies(yuvaTextures.yuvaInfo(), in MakeFromYUVATextures()
278 int maxDim = std::max(pixmaps.yuvaInfo().width(), pixmaps.yuvaInfo().height()); in MakeFromYUVAPixmaps()
289 std::min(static_cast<int>(pixmaps.yuvaInfo().width() *scale), maxTextureSize), in MakeFromYUVAPixmaps()
290 std::min(static_cast<int>(pixmaps.yuvaInfo() in MakeFromYUVAPixmaps()
[all...]
H A DSkImage_Lazy.cpp346 GrYUVATextureProxies yuvaProxies(yuvaPixmaps.yuvaInfo(), views, pixmapColorTypes); in textureProxyViewFromPlanes()
384 SkASSERT(yuvaPixmaps->yuvaInfo().dimensions() == this->dimensions()); in getPlanes()
389 yuvaPixmapInfo.yuvaInfo().dimensions() != this->dimensions()) { in getPlanes()
/third_party/skia/gm/
H A Dyuvtorgbsubset.cpp55 SkYUVAInfo yuvaInfo = SkYUVAInfo({8, 8}, in makePixmaps() local
62 SkYUVAPixmapInfo pmapInfo(yuvaInfo, colorTypes, nullptr); in makePixmaps()
105 fProxies = GrYUVATextureProxies(fPixmaps.yuvaInfo(), views, colorTypes);
129 SkRect rect = SkRect::Make(fProxies.yuvaInfo().dimensions());
130 rect = rect.makeOutset(fProxies.yuvaInfo().width()/2.f, fProxies.yuvaInfo().height()/2.f);
H A Dyuv420_odd_dim.cpp104 auto [planes, yuvaInfo] = sk_gpu_test::MakeYUVAPlanesAsA8(image.get(), in DEF_SIMPLE_GM_CAN_FAIL()
109 for (int i = 0; i < yuvaInfo.numPlanes(); ++i) { in DEF_SIMPLE_GM_CAN_FAIL()
112 auto yuvaPixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, pixmaps); in DEF_SIMPLE_GM_CAN_FAIL()
H A Dasyncrescaleandread.cpp98 SkYUVAInfo yuvaInfo(size, in do_read_and_scale_yuv()
107 auto pixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, yuvPMs); in do_read_and_scale_yuv()
H A Dimagefromyuvtextures.cpp76 SkColorMatrix_RGB2YUV(pixmaps.yuvaInfo().yuvColorSpace(), m); in CreatePlanes()
/third_party/skia/tests/
H A DYUVCacheTest.cpp36 SkYUVAInfo yuvaInfo({5, 5}, in DEF_TEST()
40 SkYUVAPixmapInfo yuvaPixmapInfo(yuvaInfo, in DEF_TEST()
55 yuvaPixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, pmaps); in DEF_TEST()
68 REPORTER_ASSERT(reporter, yuvaPixmapsRead.yuvaInfo() == yuvaPixmaps.yuvaInfo()); in DEF_TEST()
H A DImageGeneratorTest.cpp68 SkYUVAInfo yuvaInfo({250, 250}, in DEF_TEST()
72 yuvaPixmapInfo = SkYUVAPixmapInfo(yuvaInfo, in DEF_TEST()
H A DYUVTest.cpp47 REPORTER_ASSERT(reporter, *expectedInfo == yuvaPixmapInfo.yuvaInfo()); in codec_yuv()
H A DImageTest.cpp1402 SkYUVAInfo yuvaInfo({1, 1}, in make_yuva_image()
1407 auto yuvaPixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, pmaps); in make_yuva_image()
/third_party/skia/src/gpu/effects/
H A DGrYUVtoRGBEffect.cpp22 SkColorMatrix_RGB2YUV(yuvaProxies.yuvaInfo().yuvColorSpace(), m); in border_colors()
39 SkASSERT(!subset || SkRect::Make(yuvaProxies.yuvaInfo().dimensions()).contains(*subset)); in Make()
41 int numPlanes = yuvaProxies.yuvaInfo().numPlanes(); in Make()
58 SkMatrix planeMatrix = yuvaProxies.yuvaInfo().originMatrix(); in Make()
64 auto [ssx, ssy] = yuvaProxies.yuvaInfo().planeSubsamplingFactors(i); in Make()
73 SkASSERT(yuvaProxies.yuvaInfo().sitingX() == SkYUVAInfo::Siting::kCentered); in Make()
74 SkASSERT(yuvaProxies.yuvaInfo().sitingY() == SkYUVAInfo::Siting::kCentered); in Make()
94 int dx = (ssx*view.width() - yuvaProxies.yuvaInfo().width()); in Make()
102 int dy = (ssy*view.height() - yuvaProxies.yuvaInfo().height()); in Make()
194 yuvaProxies.yuvaInfo() in Make()
[all...]
/third_party/skia/tools/
H A DDDLPromiseImageHelper.cpp153 int numPixmaps = info->yuvaInfo().numPlanes(); in CreateBETexturesForPromiseImage()
196 int numPixmaps = info->yuvaInfo().numPlanes(); in DeleteBETexturesForPromiseImage()
224 int numPixmaps = info.yuvaInfo().numPlanes(); in createCallbackContexts()
328 const SkYUVAInfo& yuvaInfo = curImage.yuvaInfo(); in CreatePromiseImages() local
330 int textureCount = yuvaInfo.numPlanes(); in CreatePromiseImages()
335 GrYUVABackendTextureInfo yuvaBackendTextures(yuvaInfo, in CreatePromiseImages()
401 SkYUVAPixmapInfo yuvaInfo; in addImage() local
402 if (codec && codec->queryYUVAInfo(fSupportedYUVADataTypes, &yuvaInfo)) { in addImage()
403 auto yuvaPixmaps = SkYUVAPixmaps::Allocate(yuvaInfo); in addImage()
[all...]
H A DDDLPromiseImageHelper.h149 const SkYUVAInfo& yuvaInfo() const { return fYUVAPixmaps.yuvaInfo(); } in yuvaInfo() function in DDLPromiseImageHelper::PromiseImageInfo
/third_party/skia/tools/gpu/
H A DYUVUtils.cpp55 : SkImageGenerator(SkImageInfo::Make(pixmaps.yuvaInfo().dimensions(), in Generator()
71 SkColorMatrix_YUV2RGB(fPixmaps.yuvaInfo().yuvColorSpace(), mtx);
75 SkMatrix om = fPixmaps.yuvaInfo().originMatrix();
79 if (SkEncodedOriginSwapsWidthHeight(fPixmaps.yuvaInfo().origin())) {
121 SkASSERT(pixmaps.yuvaInfo() == fPixmaps.yuvaInfo());
312 GrYUVABackendTextures yuvaTextures(fPixmaps.yuvaInfo(), in ensureYUVImage()
H A DYUVUtils.h48 SkISize dimensions() const { return fPixmaps.yuvaInfo().dimensions(); } in dimensions()
/third_party/skia/include/gpu/
H A DGrYUVABackendTextures.h46 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() function in GrYUVABackendTextureInfo
104 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() function in GrYUVABackendTextures
/third_party/skia/include/core/
H A DSkYUVAPixmaps.h117 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() function in SkYUVAPixmapInfo::DataType
220 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() function in SkYUVAPixmapInfo::SkYUVAPixmaps
/third_party/skia/src/codec/
H A DSkJpegCodec.cpp853 SkYUVAInfo yuvaInfo(codec.dimensions(), in is_yuv_supported()
860 *yuvaPixmapInfo = SkYUVAPixmapInfo(yuvaInfo, colorTypes, rowBytes); in is_yuv_supported()
898 SkASSERT(info.yuvaInfo() == yuvaPixmaps.yuvaInfo()); in onGetYUVAPlanes()
/third_party/skia/experimental/ffmpeg/
H A DSkVideoDecoder.cpp168 SkYUVAInfo yuvaInfo({w, h}, in make_yuv_420()
178 auto yuvaPixmaps = SkYUVAPixmaps::FromExternalPixmaps(yuvaInfo, pixmaps); in make_yuv_420()

Completed in 16 milliseconds