Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Unified Diff: include/core/SkImage.h

Issue 1513393002: Add ability to extract YUV planes from SkImage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gm cleanup Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/utils.gypi ('k') | src/core/SkColorMatrixFilterRowMajor255.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImage.h
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index e60902fc07419acc8fc7006c6c67f773a427a758..84f4daf2e80aec1cd60f5ddce8720d1e56966513 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -154,6 +154,13 @@ public:
uint32_t uniqueID() const { return fUniqueID; }
virtual bool isOpaque() const { return false; }
+ /**
+ * Extracts YUV planes from the SkImage and stores them in client-provided memory. The sizes
+ * planes and rowBytes arrays are ordered [y, u, v].
+ */
+ bool readYUV8Planes(const SkISize[3], void* const planes[3], const size_t rowBytes[3],
+ SkYUVColorSpace);
+
virtual SkShader* newShader(SkShader::TileMode,
SkShader::TileMode,
const SkMatrix* localMatrix = NULL) const;
« no previous file with comments | « gyp/utils.gypi ('k') | src/core/SkColorMatrixFilterRowMajor255.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698