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

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: minor 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/gpu.gypi ('k') | include/core/SkImageInfo.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 62a9e9cf426bc132ded0e4fad45aa76306361b0f..32f533e4b2bdf32d9ba0b52a918ef805e9469b58 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -154,6 +154,9 @@ public:
uint32_t uniqueID() const { return fUniqueID; }
virtual bool isOpaque() const { return false; }
+ bool asYUV8Planes(const SkISize[3], void* const planes[3], const size_t rowBytes[3],
reed1 2016/01/26 16:06:45 Is this intended to always succeed, even if the un
bsalomon 2016/01/26 16:32:50 Yes, it is for turning a SkImage into a video fram
+ SkYUVColorSpace);
+
virtual SkShader* newShader(SkShader::TileMode,
SkShader::TileMode,
const SkMatrix* localMatrix = NULL) const;
« no previous file with comments | « gyp/gpu.gypi ('k') | include/core/SkImageInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698