/third_party/skia/include/core/ |
D | SkYUVAInfo.h | 22 class SK_API SkYUVAInfo { 139 SkYUVAInfo() = default; 140 SkYUVAInfo(const SkYUVAInfo&) = default; 146 SkYUVAInfo(SkISize dimensions, 154 SkYUVAInfo& operator=(const SkYUVAInfo& that) = default; 218 SkYUVAInfo makeSubsampling(SkYUVAInfo::Subsampling) const; 224 SkYUVAInfo makeDimensions(SkISize) const; 226 bool operator==(const SkYUVAInfo& that) const; 227 bool operator!=(const SkYUVAInfo& that) const { return !(*this == that); } 249 constexpr int SkYUVAInfo::NumPlanes(PlaneConfig planeConfig) { in NumPlanes() [all …]
|
D | SkYUVAPixmaps.h | 28 static constexpr auto kMaxPlanes = SkYUVAInfo::kMaxPlanes; 30 using PlaneConfig = SkYUVAInfo::PlaneConfig; 31 using Subsampling = SkYUVAInfo::Subsampling; 101 SkYUVAPixmapInfo(const SkYUVAInfo&, 108 SkYUVAPixmapInfo(const SkYUVAInfo&, DataType, const size_t rowBytes[kMaxPlanes]); 117 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() 160 SkYUVAInfo fYUVAInfo; 206 static SkYUVAPixmaps FromExternalPixmaps(const SkYUVAInfo&, const SkPixmap[kMaxPlanes]); 220 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() 245 SkYUVAInfo::YUVALocations toYUVALocations() const; [all …]
|
/third_party/skia/src/core/ |
D | SkYUVAInfo.cpp | 14 static bool is_plane_config_compatible_with_subsampling(SkYUVAInfo::PlaneConfig config, in is_plane_config_compatible_with_subsampling() 15 SkYUVAInfo::Subsampling subsampling) { in is_plane_config_compatible_with_subsampling() 16 if (config == SkYUVAInfo::PlaneConfig::kUnknown || in is_plane_config_compatible_with_subsampling() 17 subsampling == SkYUVAInfo::Subsampling::kUnknown) { in is_plane_config_compatible_with_subsampling() 20 return subsampling == SkYUVAInfo::Subsampling::k444 || in is_plane_config_compatible_with_subsampling() 21 (config != SkYUVAInfo::PlaneConfig::kYUV && in is_plane_config_compatible_with_subsampling() 22 config != SkYUVAInfo::PlaneConfig::kYUVA && in is_plane_config_compatible_with_subsampling() 23 config != SkYUVAInfo::PlaneConfig::kUYV && in is_plane_config_compatible_with_subsampling() 24 config != SkYUVAInfo::PlaneConfig::kUYVA); in is_plane_config_compatible_with_subsampling() 27 std::tuple<int, int> SkYUVAInfo::SubsamplingFactors(Subsampling subsampling) { in SubsamplingFactors() [all …]
|
D | SkYUVAInfoLocation.h | 18 struct SkYUVAInfo::YUVALocation { 29 static bool AreValidLocations(const SkYUVAInfo::YUVALocations& locations, 32 bool used[SkYUVAInfo::kMaxPlanes] = {}; 34 for (int i = 0; i < SkYUVAInfo::kYUVAChannelCount; ++i) { 36 if (i != SkYUVAInfo::YUVAChannels::kA) { 39 } else if (locations[i].fPlane >= SkYUVAInfo::kMaxPlanes) {
|
D | SkYUVAPixmaps.cpp | 78 SkYUVAPixmapInfo::SkYUVAPixmapInfo(const SkYUVAInfo& yuvaInfo, in SkYUVAPixmapInfo() 119 SkYUVAPixmapInfo::SkYUVAPixmapInfo(const SkYUVAInfo& yuvaInfo, in SkYUVAPixmapInfo() 240 SkYUVAPixmaps SkYUVAPixmaps::FromExternalPixmaps(const SkYUVAInfo& yuvaInfo, in FromExternalPixmaps() 266 SkYUVAPixmaps::SkYUVAPixmaps(const SkYUVAInfo& yuvaInfo, in SkYUVAPixmaps() 287 SkYUVAInfo::YUVALocations SkYUVAPixmaps::toYUVALocations() const { in toYUVALocations() 294 SkASSERT(SkYUVAInfo::YUVALocation::AreValidLocations(result, &numPlanes)); in toYUVALocations()
|
/third_party/skia/include/gpu/ |
D | GrYUVABackendTextures.h | 21 static constexpr auto kMaxPlanes = SkYUVAInfo::kMaxPlanes; 34 GrYUVABackendTextureInfo(const SkYUVAInfo&, 46 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() 70 SkYUVAInfo::YUVALocations toYUVALocations() const; 73 SkYUVAInfo fYUVAInfo; 91 GrYUVABackendTextures(const SkYUVAInfo&, 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() 104 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() [all …]
|
/third_party/skia/src/gpu/ |
D | GrYUVATextureProxies.h | 23 GrYUVATextureProxies(const SkYUVAInfo&, 24 sk_sp<GrSurfaceProxy>[SkYUVAInfo::kMaxPlanes], 33 GrYUVATextureProxies(const SkYUVAInfo&, 34 GrSurfaceProxyView[SkYUVAInfo::kMaxPlanes], 35 GrColorType[SkYUVAInfo::kMaxPlanes]); 43 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() 54 const std::array<sk_sp<GrSurfaceProxy>, SkYUVAInfo::kMaxPlanes>& proxies() const { in proxies() 66 const SkYUVAInfo::YUVALocations& yuvaLocations() const { return fYUVALocations; } in yuvaLocations() 69 std::array<sk_sp<GrSurfaceProxy>, SkYUVAInfo::kMaxPlanes> fProxies; 70 SkYUVAInfo fYUVAInfo; [all …]
|
D | GrYUVABackendTextures.cpp | 25 GrYUVABackendTextureInfo::GrYUVABackendTextureInfo(const SkYUVAInfo& yuvaInfo, in GrYUVABackendTextureInfo() 64 SkYUVAInfo::YUVALocations GrYUVABackendTextureInfo::toYUVALocations() const { in toYUVALocations() 71 SkASSERT(SkYUVAInfo::YUVALocation::AreValidLocations(result, &numPlanes)); in toYUVALocations() 79 const SkYUVAInfo& yuvaInfo, in GrYUVABackendTextures() 80 const GrBackendTexture textures[SkYUVAInfo::kMaxPlanes], in GrYUVABackendTextures() 86 SkISize planeDimensions[SkYUVAInfo::kMaxPlanes]; in GrYUVABackendTextures() 101 SkYUVAInfo::YUVALocations GrYUVABackendTextures::toYUVALocations() const { in toYUVALocations() 108 SkASSERT(SkYUVAInfo::YUVALocation::AreValidLocations(result, &numPlanes)); in toYUVALocations()
|
D | GrYUVATextureProxies.cpp | 28 GrYUVATextureProxies::GrYUVATextureProxies(const SkYUVAInfo& yuvaInfo, in GrYUVATextureProxies() 29 sk_sp<GrSurfaceProxy> proxies[SkYUVAInfo::kMaxPlanes], in GrYUVATextureProxies() 38 uint32_t textureChannelMasks[SkYUVAInfo::kMaxPlanes]; in GrYUVATextureProxies() 69 GrYUVATextureProxies::GrYUVATextureProxies(const SkYUVAInfo& yuvaInfo, in GrYUVATextureProxies() 70 GrSurfaceProxyView views[SkYUVAInfo::kMaxPlanes], in GrYUVATextureProxies() 71 GrColorType colorTypes[SkYUVAInfo::kMaxPlanes]) in GrYUVATextureProxies() 73 uint32_t pixmapChannelMasks[SkYUVAInfo::kMaxPlanes]; in GrYUVATextureProxies() 103 for (int i = 0; i < SkYUVAInfo::kYUVAChannelCount; ++i) { in GrYUVATextureProxies()
|
/third_party/skia/tests/ |
D | YUVTest.cpp | 18 const SkYUVAInfo* expectedInfo) { in codec_yuv() 50 REPORTER_ASSERT(reporter, numPlanes <= SkYUVAInfo::kMaxPlanes); in codec_yuv() 61 for (int i = numPlanes; i < SkYUVAInfo::kMaxPlanes; ++i) { in codec_yuv() 75 for (int i = numPlanes; i < SkYUVAInfo::kMaxPlanes; ++i) { in codec_yuv() 84 auto setExpectations = [](SkISize dims, SkYUVAInfo::Subsampling subsampling) { in DEF_TEST() 85 return SkYUVAInfo(dims, in DEF_TEST() 86 SkYUVAInfo::PlaneConfig::kY_U_V, in DEF_TEST() 90 SkYUVAInfo::Siting::kCentered, in DEF_TEST() 91 SkYUVAInfo::Siting::kCentered); in DEF_TEST() 94 SkYUVAInfo expectations = setExpectations({128, 128}, SkYUVAInfo::Subsampling::k420); in DEF_TEST() [all …]
|
D | YUVCacheTest.cpp | 36 SkYUVAInfo yuvaInfo({5, 5}, in DEF_TEST() 37 SkYUVAInfo::PlaneConfig::kY_U_V, in DEF_TEST() 38 SkYUVAInfo::Subsampling::k420, in DEF_TEST() 53 SkPixmap pmaps[SkYUVAInfo::kMaxPlanes]; in DEF_TEST()
|
D | ImageGeneratorTest.cpp | 68 SkYUVAInfo yuvaInfo({250, 250}, in DEF_TEST() 69 SkYUVAInfo::PlaneConfig::kY_UV, in DEF_TEST() 70 SkYUVAInfo::Subsampling::k420, in DEF_TEST()
|
/third_party/skia/tools/gpu/ |
D | YUVUtils.cpp | 72 SkYUVAInfo::YUVALocations yuvaLocations = fPixmaps.toYUVALocations(); in onGetPixels() 73 SkASSERT(SkYUVAInfo::YUVALocation::AreValidLocations(yuvaLocations)); in onGetPixels() 93 for (auto c : {SkYUVAInfo::YUVAChannels::kY, in onGetPixels() 94 SkYUVAInfo::YUVAChannels::kU, in onGetPixels() 95 SkYUVAInfo::YUVAChannels::kV}) { in onGetPixels() 99 auto [aPlane, aChan] = yuvaLocations[SkYUVAInfo::YUVAChannels::kA]; in onGetPixels() 140 std::tuple<std::array<sk_sp<SkImage>, SkYUVAInfo::kMaxPlanes>, SkYUVAInfo> 143 SkYUVAInfo::Subsampling ss, in MakeYUVAPlanesAsA8() 148 SkYUVAInfo::PlaneConfig config = src->isOpaque() ? SkYUVAInfo::PlaneConfig::kY_U_V in MakeYUVAPlanesAsA8() 149 : SkYUVAInfo::PlaneConfig::kY_U_V_A; in MakeYUVAPlanesAsA8() [all …]
|
D | YUVUtils.h | 26 std::tuple<std::array<sk_sp<SkImage>, SkYUVAInfo::kMaxPlanes>, SkYUVAInfo> 29 SkYUVAInfo::Subsampling,
|
D | ManagedBackendTexture.cpp | 20 sk_sp<sk_gpu_test::ManagedBackendTexture> fMBETs[SkYUVAInfo::kMaxPlanes]; 48 const sk_sp<ManagedBackendTexture> mbets[SkYUVAInfo::kMaxPlanes]) { in MakeYUVAReleaseContext() 50 for (int i = 0; i < SkYUVAInfo::kMaxPlanes; ++i) { in MakeYUVAReleaseContext()
|
/third_party/skia/gm/ |
D | wacky_yuv_formats.cpp | 121 fPlaneConfig = SkYUVAInfo::PlaneConfig::kY_UV; in YUVAPlanarConfig() 122 fSubsampling = SkYUVAInfo::Subsampling::k420; in YUVAPlanarConfig() 124 fPlaneConfig = SkYUVAInfo::PlaneConfig::kY_UV_A; in YUVAPlanarConfig() 125 fSubsampling = SkYUVAInfo::Subsampling::k420; in YUVAPlanarConfig() 131 fPlaneConfig = SkYUVAInfo::PlaneConfig::kUYV; in YUVAPlanarConfig() 132 fSubsampling = SkYUVAInfo::Subsampling::k444; in YUVAPlanarConfig() 134 fPlaneConfig = SkYUVAInfo::PlaneConfig::kUYVA; in YUVAPlanarConfig() 135 fSubsampling = SkYUVAInfo::Subsampling::k444; in YUVAPlanarConfig() 140 fPlaneConfig = SkYUVAInfo::PlaneConfig::kYUV; in YUVAPlanarConfig() 141 fSubsampling = SkYUVAInfo::Subsampling::k444; in YUVAPlanarConfig() [all …]
|
D | yuvtorgbsubset.cpp | 55 SkYUVAInfo yuvaInfo = SkYUVAInfo({8, 8}, in makePixmaps() 56 SkYUVAInfo::PlaneConfig::kY_U_V, in makePixmaps() 57 SkYUVAInfo::Subsampling::k420, in makePixmaps() 92 GrSurfaceProxyView views[SkYUVAInfo::kMaxPlanes]; in onGpuSetup() 93 GrColorType colorTypes[SkYUVAInfo::kMaxPlanes]; in onGpuSetup()
|
D | imagefromyuvtextures.cpp | 61 SkYUVAInfo::PlaneConfig::kY_U_V_A, in CreatePlanes() 62 SkYUVAInfo::Subsampling::k420, in CreatePlanes()
|
/third_party/skia/tools/ |
D | DDLPromiseImageHelper.h | 149 const SkYUVAInfo& yuvaInfo() const { return fYUVAPixmaps.yuvaInfo(); } in yuvaInfo() 166 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];
|
D | DDLPromiseImageHelper.cpp | 38 for (int i = 0; i < SkYUVAInfo::kMaxPlanes; ++i) { in PromiseImageInfo() 327 GrBackendFormat backendFormats[SkYUVAInfo::kMaxPlanes]; in CreatePromiseImages() 328 const SkYUVAInfo& yuvaInfo = curImage.yuvaInfo(); in CreatePromiseImages() 329 void* contexts[SkYUVAInfo::kMaxPlanes] = {nullptr, nullptr, nullptr, nullptr}; in CreatePromiseImages()
|
/third_party/skia/src/gpu/effects/ |
D | GrYUVtoRGBEffect.cpp | 23 for (int i = 0; i < SkYUVAInfo::kYUVAChannelCount; ++i) { in border_colors() 54 std::unique_ptr<GrFragmentProcessor> planeFPs[SkYUVAInfo::kMaxPlanes]; in Make() 73 SkASSERT(yuvaProxies.yuvaInfo().sitingX() == SkYUVAInfo::Siting::kCentered); in Make() 74 SkASSERT(yuvaProxies.yuvaInfo().sitingY() == SkYUVAInfo::Siting::kCentered); in Make() 198 static SkAlphaType alpha_type(const SkYUVAInfo::YUVALocations locations) { in alpha_type() 199 return locations[SkYUVAInfo::YUVAChannels::kA].fPlane >= 0 ? kPremul_SkAlphaType in alpha_type() 205 const SkYUVAInfo::YUVALocations& locations, in GrYUVtoRGBEffect() 230 for (int i = 0; i < SkYUVAInfo::kYUVAChannelCount; ++i) { in onDumpInfo() 262 const bool hasAlpha = yuvEffect.fLocations[SkYUVAInfo::YUVAChannels::kA].fPlane >= 0; in onMakeProgramImpl()
|
D | GrYUVtoRGBEffect.h | 32 const SkYUVAInfo::YUVALocations&, 50 SkYUVAInfo::YUVALocations fLocations;
|
/third_party/skia/src/codec/ |
D | SkJpegCodec.cpp | 798 SkYUVAInfo::Subsampling tempSubsampling; in is_yuv_supported() 800 tempSubsampling = SkYUVAInfo::Subsampling::k444; in is_yuv_supported() 802 tempSubsampling = SkYUVAInfo::Subsampling::k422; in is_yuv_supported() 804 tempSubsampling = SkYUVAInfo::Subsampling::k420; in is_yuv_supported() 806 tempSubsampling = SkYUVAInfo::Subsampling::k440; in is_yuv_supported() 808 tempSubsampling = SkYUVAInfo::Subsampling::k411; in is_yuv_supported() 810 tempSubsampling = SkYUVAInfo::Subsampling::k410; in is_yuv_supported() 815 !supportedDataTypes->supported(SkYUVAInfo::PlaneConfig::kY_U_V, in is_yuv_supported() 826 SkYUVAInfo yuvaInfo(codec.dimensions(), in is_yuv_supported() 827 SkYUVAInfo::PlaneConfig::kY_U_V, in is_yuv_supported() [all …]
|
/third_party/skia/src/image/ |
D | SkImage_GpuYUVA.cpp | 111 GrSurfaceProxy* proxies[SkYUVAInfo::kMaxPlanes] = {}; in onFlush() 233 sk_sp<GrSurfaceProxy> proxies[SkYUVAInfo::kMaxPlanes]; in MakeFromYUVATextures() 292 SkYUVAInfo newInfo = pixmaps.yuvaInfo().makeDimensions(newDimensions); in MakeFromYUVAPixmaps() 308 GrSurfaceProxyView views[SkYUVAInfo::kMaxPlanes]; in MakeFromYUVAPixmaps() 309 GrColorType pixmapColorTypes[SkYUVAInfo::kMaxPlanes]; in MakeFromYUVAPixmaps() 341 SkISize planeDimensions[SkYUVAInfo::kMaxPlanes]; in MakePromiseYUVATexture()
|
/third_party/skia/experimental/ffmpeg/ |
D | SkVideoDecoder.cpp | 168 SkYUVAInfo yuvaInfo({w, h}, in make_yuv_420() 169 SkYUVAInfo::PlaneConfig::kY_U_V, in make_yuv_420() 170 SkYUVAInfo::Subsampling::k420, in make_yuv_420()
|