Index: include/core/SkImageGenerator.h |
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h |
index 157bfdb0010646cc7e82d70466a2d4bbf9fd2d62..5eec802f6c668de49e4582a5177f421ed1f035f9 100644 |
--- a/include/core/SkImageGenerator.h |
+++ b/include/core/SkImageGenerator.h |
@@ -116,12 +116,23 @@ public: |
bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes); |
#endif |
+ /** |
+ * If planes[0] is NULL, this imagegenerator should output the sizes and return true |
+ * if it can efficiently return YUV planar data. If it cannot, it should return false. |
+ * |
+ * If planes[0] is not NULL, then it should copy the associated Y,U,V data into those planes |
reed1
2014/07/10 17:15:15
I presume we mean, "If planes and rowBytes are not
sugoi1
2014/07/10 17:54:24
Done.
|
+ * of memory supplied by the caller. It should validate that the sizes match what it expected. |
+ * If the sizes do not match, it should return false. |
+ */ |
+ bool getYUV8Planes(SkISize sizes[3], void* planes[3], int rowBytes[3]); |
reed1
2014/07/10 17:15:14
use size_t for rowBytes
sugoi1
2014/07/10 17:54:24
Done.
|
+ |
protected: |
virtual SkData* onRefEncodedData(); |
virtual bool onGetInfo(SkImageInfo* info); |
virtual bool onGetPixels(const SkImageInfo& info, |
void* pixels, size_t rowBytes, |
SkPMColor ctable[], int* ctableCount); |
+ virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], int rowBytes[3]); |
}; |
#endif // SkImageGenerator_DEFINED |