/third_party/skia/include/core/ |
H A D | SkYUVAInfo.h | 22 class SK_API SkYUVAInfo { class 139 SkYUVAInfo() = default; 140 SkYUVAInfo(const SkYUVAInfo&) = default; 146 SkYUVAInfo(SkISize dimensions, 154 SkYUVAInfo& operator=(const SkYUVAInfo& that) = default; 213 * Makes a SkYUVAInfo that is identical to this one but with the passed Subsampling. If the 216 * SkYUVAInfo. 218 SkYUVAInfo makeSubsamplin [all...] |
H A D | SkYUVAPixmaps.h | 14 #include "include/core/SkYUVAInfo.h" 23 * SkYUVAInfo combined with per-plane SkColorTypes and row bytes. Fully specifies the SkPixmaps 28 static constexpr auto kMaxPlanes = SkYUVAInfo::kMaxPlanes; 30 using PlaneConfig = SkYUVAInfo::PlaneConfig; 31 using Subsampling = SkYUVAInfo::Subsampling; 93 * Initializes the SkYUVAPixmapInfo from a SkYUVAInfo with per-plane color types and row bytes. 94 * This will be invalid if the colorTypes aren't compatible with the SkYUVAInfo or if a 96 * row byte values beyond the number of planes in SkYUVAInfo are ignored. All SkColorTypes 101 SkYUVAPixmapInfo(const SkYUVAInfo&, 108 SkYUVAPixmapInfo(const SkYUVAInfo [all...] |
/third_party/skia/src/core/ |
H A D | SkYUVAInfo.cpp | 8 #include "include/core/SkYUVAInfo.h" 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 in is_plane_config_compatible_with_subsampling() 300 SkYUVAInfo::SkYUVAInfo(SkISize dimensions, SkYUVAInfo() function in SkYUVAInfo [all...] |
H A D | SkYUVAInfoLocation.h | 12 #include "include/core/SkYUVAInfo.h" 15 * The location of Y, U, V, or A values within the planes described by SkYUVAInfo. Computed from a 16 * SkYUVAInfo and the set of channels present in a set of pixmaps/textures. 18 struct SkYUVAInfo::YUVALocation { 29 static bool AreValidLocations(const SkYUVAInfo::YUVALocations& locations, in AreValidLocations() 32 bool used[SkYUVAInfo::kMaxPlanes] = {}; in AreValidLocations() 34 for (int i = 0; i < SkYUVAInfo::kYUVAChannelCount; ++i) { in AreValidLocations() 36 if (i != SkYUVAInfo::YUVAChannels::kA) { in AreValidLocations() 39 } else if (locations[i].fPlane >= SkYUVAInfo::kMaxPlanes) { in AreValidLocations()
|
H A 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/ |
H A D | GrYUVABackendTextures.h | 11 #include "include/core/SkYUVAInfo.h" 17 * A description of a set GrBackendTextures that hold the planar data described by a SkYUVAInfo. 21 static constexpr auto kMaxPlanes = SkYUVAInfo::kMaxPlanes; 28 * planes indicated by the SkYUVAInfo. The texture dimensions are taken from the SkYUVAInfo's 32 * passed formats' channels don't agree with SkYUVAInfo. 34 GrYUVABackendTextureInfo(const SkYUVAInfo&, 46 const SkYUVAInfo& yuvaInfo() const { return fYUVAInfo; } in yuvaInfo() 61 * Returns true if this has been configured with a valid SkYUVAInfo with compatible texture 70 SkYUVAInfo [all...] |
/third_party/skia/tests/ |
H A D | YUVTest.cpp | 18 const SkYUVAInfo* expectedInfo) { in codec_yuv() 35 // SkYUVAInfo param is required to be non-null. 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 in DEF_TEST() [all...] |
H A D | YUVCacheTest.cpp | 8 #include "include/core/SkYUVAInfo.h" 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()
|
H A 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/src/gpu/ |
H A D | GrYUVATextureProxies.h | 11 #include "include/core/SkYUVAInfo.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 [all...] |
H A 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()
|
H A 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/tools/gpu/ |
H A D | YUVUtils.cpp | 72 SkYUVAInfo::YUVALocations yuvaLocations = fPixmaps.toYUVALocations(); 73 SkASSERT(SkYUVAInfo::YUVALocation::AreValidLocations(yuvaLocations)); 93 for (auto c : {SkYUVAInfo::YUVAChannels::kY, 94 SkYUVAInfo::YUVAChannels::kU, 95 SkYUVAInfo::YUVAChannels::kV}) { 99 auto [aPlane, aChan] = yuvaLocations[SkYUVAInfo::YUVAChannels::kA]; 140 std::tuple<std::array<sk_sp<SkImage>, SkYUVAInfo::kMaxPlanes>, SkYUVAInfo> 143 SkYUVAInfo::Subsampling ss, in MakeYUVAPlanesAsA8() 148 SkYUVAInfo in MakeYUVAPlanesAsA8() [all...] |
H A D | YUVUtils.h | 24 // fourth A plane. The planes are returned along with a SkYUVAInfo describing the resulting planar 26 std::tuple<std::array<sk_sp<SkImage>, SkYUVAInfo::kMaxPlanes>, SkYUVAInfo> 29 SkYUVAInfo::Subsampling,
|
H A 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/ |
H A D | yuvtorgbsubset.cpp | 19 #include "include/core/SkYUVAInfo.h" 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]; 93 GrColorType colorTypes[SkYUVAInfo::kMaxPlanes];
|
H A 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 in YUVAPlanarConfig() [all...] |
H A D | asyncrescaleandread.cpp | 14 #include "include/core/SkYUVAInfo.h" 98 SkYUVAInfo yuvaInfo(size, in do_read_and_scale_yuv() 99 SkYUVAInfo::PlaneConfig::kY_U_V, in do_read_and_scale_yuv() 100 SkYUVAInfo::Subsampling::k420, in do_read_and_scale_yuv()
|
/third_party/skia/tools/ |
H A 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];
|
H A 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/ |
H A D | GrYUVtoRGBEffect.cpp | 10 #include "include/core/SkYUVAInfo.h" 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 in onMakeProgramImpl() [all...] |
H A D | GrYUVtoRGBEffect.h | 11 #include "include/core/SkYUVAInfo.h" 34 const SkYUVAInfo::YUVALocations&, 52 SkYUVAInfo::YUVALocations fLocations;
|
/third_party/skia/src/codec/ |
H A D | SkJpegCodec.cpp | 825 SkYUVAInfo::Subsampling tempSubsampling; in is_yuv_supported() 827 tempSubsampling = SkYUVAInfo::Subsampling::k444; in is_yuv_supported() 829 tempSubsampling = SkYUVAInfo::Subsampling::k422; in is_yuv_supported() 831 tempSubsampling = SkYUVAInfo::Subsampling::k420; in is_yuv_supported() 833 tempSubsampling = SkYUVAInfo::Subsampling::k440; in is_yuv_supported() 835 tempSubsampling = SkYUVAInfo::Subsampling::k411; in is_yuv_supported() 837 tempSubsampling = SkYUVAInfo::Subsampling::k410; in is_yuv_supported() 842 !supportedDataTypes->supported(SkYUVAInfo::PlaneConfig::kY_U_V, in is_yuv_supported() 853 SkYUVAInfo yuvaInfo(codec.dimensions(), in is_yuv_supported() 854 SkYUVAInfo in is_yuv_supported() [all...] |
/third_party/skia/src/image/ |
H A 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/ |
H A 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()
|