Home
last modified time | relevance | path

Searched refs:kMaxPlanes (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/include/core/
DSkYUVAPixmaps.h28 static constexpr auto kMaxPlanes = SkYUVAInfo::kMaxPlanes;
102 const SkColorType[kMaxPlanes],
103 const size_t rowBytes[kMaxPlanes]);
108 SkYUVAPixmapInfo(const SkYUVAInfo&, DataType, const size_t rowBytes[kMaxPlanes]);
141 size_t computeTotalBytes(size_t planeSizes[kMaxPlanes] = nullptr) const;
148 bool initPixmapsFromSingleAllocation(void* memory, SkPixmap pixmaps[kMaxPlanes]) const;
161 std::array<SkImageInfo, kMaxPlanes> fPlaneInfos = {};
162 std::array<size_t, kMaxPlanes> fRowBytes = {};
174 static constexpr auto kMaxPlanes = SkYUVAPixmapInfo::kMaxPlanes; variable
206 static SkYUVAPixmaps FromExternalPixmaps(const SkYUVAInfo&, const SkPixmap[kMaxPlanes]);
[all …]
DSkYUVAInfo.h94 static constexpr int kMaxPlanes = 4; variable
118 SkISize planeDimensions[kMaxPlanes]);
188 int planeDimensions(SkISize planeDimensions[kMaxPlanes]) const { in planeDimensions() argument
197 size_t computeTotalBytes(const size_t rowBytes[kMaxPlanes],
198 size_t planeSizes[kMaxPlanes] = nullptr) const;
/third_party/skia/include/gpu/
DGrYUVABackendTextures.h21 static constexpr auto kMaxPlanes = SkYUVAInfo::kMaxPlanes;
35 const GrBackendFormat[kMaxPlanes],
74 GrBackendFormat fPlaneFormats[kMaxPlanes];
92 const GrBackendTexture[SkYUVAInfo::kMaxPlanes],
95 const std::array<GrBackendTexture, SkYUVAInfo::kMaxPlanes>& textures() const { in textures()
100 SkASSERT(i >= 0 && i < SkYUVAInfo::kMaxPlanes); in texture()
120 std::array<GrBackendTexture, SkYUVAInfo::kMaxPlanes> fTextures;
/third_party/skia/src/core/
DSkYUVAPixmaps.cpp79 const SkColorType colorTypes[kMaxPlanes], in SkYUVAPixmapInfo() argument
80 const size_t rowBytes[kMaxPlanes]) in SkYUVAPixmapInfo() argument
89 size_t tempRowBytes[kMaxPlanes]; in SkYUVAPixmapInfo()
121 const size_t rowBytes[kMaxPlanes]) { in SkYUVAPixmapInfo() argument
122 SkColorType colorTypes[kMaxPlanes] = {}; in SkYUVAPixmapInfo()
139 size_t SkYUVAPixmapInfo::computeTotalBytes(size_t planeSizes[kMaxPlanes]) const { in computeTotalBytes()
142 std::fill_n(planeSizes, kMaxPlanes, 0); in computeTotalBytes()
150 SkPixmap pixmaps[kMaxPlanes]) const { in initPixmapsFromSingleAllocation()
164 for (int i = n; i < kMaxPlanes; ++i) { in initPixmapsFromSingleAllocation()
235 SkPixmap pixmaps[kMaxPlanes]; in FromExternalMemory()
[all …]
DSkYUVAInfo.cpp79 SkISize planeDimensions[SkYUVAInfo::kMaxPlanes]) { in PlaneDimensions() argument
80 std::fill_n(planeDimensions, SkYUVAInfo::kMaxPlanes, SkISize{0, 0}); in PlaneDimensions()
323 size_t SkYUVAInfo::computeTotalBytes(const size_t rowBytes[kMaxPlanes], in computeTotalBytes() argument
324 size_t planeSizes[kMaxPlanes]) const { in computeTotalBytes()
330 SkISize planeDimensions[kMaxPlanes]; in computeTotalBytes()
343 for (int i = n; i < kMaxPlanes; ++i) { in computeTotalBytes()
347 for (int i = 0; n < kMaxPlanes; ++i) { in computeTotalBytes()
DSkYUVAInfoLocation.h32 bool used[SkYUVAInfo::kMaxPlanes] = {};
39 } else if (locations[i].fPlane >= SkYUVAInfo::kMaxPlanes) {
/third_party/skia/src/gpu/
DGrYUVATextureProxies.h24 sk_sp<GrSurfaceProxy>[SkYUVAInfo::kMaxPlanes],
34 GrSurfaceProxyView[SkYUVAInfo::kMaxPlanes],
35 GrColorType[SkYUVAInfo::kMaxPlanes]);
54 const std::array<sk_sp<GrSurfaceProxy>, SkYUVAInfo::kMaxPlanes>& proxies() const { in proxies()
69 std::array<sk_sp<GrSurfaceProxy>, SkYUVAInfo::kMaxPlanes> fProxies;
DGrYUVATextureProxies.cpp29 sk_sp<GrSurfaceProxy> proxies[SkYUVAInfo::kMaxPlanes], in GrYUVATextureProxies() argument
38 uint32_t textureChannelMasks[SkYUVAInfo::kMaxPlanes]; in GrYUVATextureProxies()
70 GrSurfaceProxyView views[SkYUVAInfo::kMaxPlanes], in GrYUVATextureProxies() argument
71 GrColorType colorTypes[SkYUVAInfo::kMaxPlanes]) in GrYUVATextureProxies() argument
73 uint32_t pixmapChannelMasks[SkYUVAInfo::kMaxPlanes]; in GrYUVATextureProxies()
DGrYUVABackendTextures.cpp26 const GrBackendFormat formats[kMaxPlanes], in GrYUVABackendTextureInfo() argument
80 const GrBackendTexture textures[SkYUVAInfo::kMaxPlanes], in GrYUVABackendTextures() argument
86 SkISize planeDimensions[SkYUVAInfo::kMaxPlanes]; in GrYUVABackendTextures()
/third_party/skia/tools/
DDDLPromiseImageHelper.h166 SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVAInfo::kMaxPlanes : 1)); in setCallbackContext()
170 SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVAInfo::kMaxPlanes : 1)); in callbackContext()
174 SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVAInfo::kMaxPlanes : 1)); in refCallbackContext()
185 SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVAInfo::kMaxPlanes : 1)); in backendFormat()
189 SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVAInfo::kMaxPlanes : 1)); in promiseTexture()
212 sk_sp<PromiseImageCallbackContext> fCallbackContexts[SkYUVAInfo::kMaxPlanes];
DDDLPromiseImageHelper.cpp38 for (int i = 0; i < SkYUVAInfo::kMaxPlanes; ++i) { in PromiseImageInfo()
327 GrBackendFormat backendFormats[SkYUVAInfo::kMaxPlanes]; in CreatePromiseImages()
329 void* contexts[SkYUVAInfo::kMaxPlanes] = {nullptr, nullptr, nullptr, nullptr}; in CreatePromiseImages()
/third_party/skia/tests/
DYUVTest.cpp50 REPORTER_ASSERT(reporter, numPlanes <= SkYUVAInfo::kMaxPlanes); in codec_yuv()
61 for (int i = numPlanes; i < SkYUVAInfo::kMaxPlanes; ++i) { in codec_yuv()
72 for (int i = 0; i < SkYUVAPixmaps::kMaxPlanes; ++i) { in codec_yuv()
75 for (int i = numPlanes; i < SkYUVAInfo::kMaxPlanes; ++i) { in codec_yuv()
DYUVCacheTest.cpp53 SkPixmap pmaps[SkYUVAInfo::kMaxPlanes]; in DEF_TEST()
/third_party/skia/tools/gpu/
DManagedBackendTexture.cpp20 sk_sp<sk_gpu_test::ManagedBackendTexture> fMBETs[SkYUVAInfo::kMaxPlanes];
48 const sk_sp<ManagedBackendTexture> mbets[SkYUVAInfo::kMaxPlanes]) { in MakeYUVAReleaseContext() argument
50 for (int i = 0; i < SkYUVAInfo::kMaxPlanes; ++i) { in MakeYUVAReleaseContext()
DYUVUtils.cpp140 std::tuple<std::array<sk_sp<SkImage>, SkYUVAInfo::kMaxPlanes>, SkYUVAInfo>
150 SkISize dims[SkYUVAInfo::kMaxPlanes]; in MakeYUVAPlanesAsA8()
297 sk_sp<sk_gpu_test::ManagedBackendTexture> mbets[SkYUVAInfo::kMaxPlanes]; in ensureYUVImage()
298 GrBackendTexture textures[SkYUVAInfo::kMaxPlanes]; in ensureYUVImage()
DYUVUtils.h26 std::tuple<std::array<sk_sp<SkImage>, SkYUVAInfo::kMaxPlanes>, SkYUVAInfo>
DManagedBackendTexture.h86 static void* MakeYUVAReleaseContext(const sk_sp<ManagedBackendTexture>[SkYUVAInfo::kMaxPlanes]);
/third_party/skia/src/image/
DSkImage_GpuYUVA.cpp111 GrSurfaceProxy* proxies[SkYUVAInfo::kMaxPlanes] = {}; in onFlush()
233 sk_sp<GrSurfaceProxy> proxies[SkYUVAInfo::kMaxPlanes]; in MakeFromYUVATextures()
308 GrSurfaceProxyView views[SkYUVAInfo::kMaxPlanes]; in MakeFromYUVAPixmaps()
309 GrColorType pixmapColorTypes[SkYUVAInfo::kMaxPlanes]; in MakeFromYUVAPixmaps()
341 SkISize planeDimensions[SkYUVAInfo::kMaxPlanes]; in MakePromiseYUVATexture()
DSkImage_Lazy.cpp290 GrSurfaceProxyView views[SkYUVAInfo::kMaxPlanes]; in textureProxyViewFromPlanes()
291 GrColorType pixmapColorTypes[SkYUVAInfo::kMaxPlanes]; in textureProxyViewFromPlanes()
/third_party/skia/gm/
Dyuvtorgbsubset.cpp92 GrSurfaceProxyView views[SkYUVAInfo::kMaxPlanes]; in onGpuSetup()
93 GrColorType colorTypes[SkYUVAInfo::kMaxPlanes]; in onGpuSetup()
Dwacky_yuv_formats.cpp195 SkPixmap pmaps[SkYUVAInfo::kMaxPlanes]; in makeYUVAPixmaps()
1200 std::array<sk_sp<SkImage>, SkYUVAInfo::kMaxPlanes> planes; in onDraw()
/third_party/skia/src/codec/
DSkJpegCodec.cpp820 SkColorType colorTypes[SkYUVAPixmapInfo::kMaxPlanes]; in is_yuv_supported()
821 size_t rowBytes[SkYUVAPixmapInfo::kMaxPlanes]; in is_yuv_supported()
861 const std::array<SkPixmap, SkYUVAPixmaps::kMaxPlanes>& planes = yuvaPixmaps.planes(); in onGetYUVAPlanes()
/third_party/skia/src/gpu/effects/
DGrYUVtoRGBEffect.cpp54 std::unique_ptr<GrFragmentProcessor> planeFPs[SkYUVAInfo::kMaxPlanes]; in Make()