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

Unified Diff: Source/platform/image-decoders/ImageDecoder.cpp

Issue 418653002: Allowing YUV data to be retrieved from the JPEG Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing PLATFORM_EXPORT Created 6 years, 5 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
Index: Source/platform/image-decoders/ImageDecoder.cpp
diff --git a/Source/platform/image-decoders/ImageDecoder.cpp b/Source/platform/image-decoders/ImageDecoder.cpp
index 16940d10e1a02755c60140e30f8ea17ba2b7139c..1af47737f9a61a25fd829e4e69c9f880b0f148c0 100644
--- a/Source/platform/image-decoders/ImageDecoder.cpp
+++ b/Source/platform/image-decoders/ImageDecoder.cpp
@@ -204,4 +204,32 @@ size_t ImageDecoder::findRequiredPreviousFrame(size_t frameIndex, bool frameRect
}
}
+ImagePlanes::ImagePlanes()
+{
+ for (int i = 0; i < 3; ++i) {
+ m_planes[i] = 0;
+ m_rowBytes[i] = 0;
+ }
+}
+
+void ImagePlanes::set(void* planes[3], size_t rowBytes[3])
Noel Gordon 2014/07/28 07:29:07 setPlanes
sugoi1 2014/08/19 20:28:47 Done.
+{
+ for (int i = 0; i < 3; ++i) {
+ m_planes[i] = planes[i];
+ m_rowBytes[i] = rowBytes[i];
+ }
+}
+
+void* ImagePlanes::plane(int i)
+{
+ ASSERT((i >= 0) && i < 3);
+ return m_planes[i];
+}
+
+size_t ImagePlanes::rowBytes(int i) const
+{
+ ASSERT((i >= 0) && i < 3);
+ return m_rowBytes[i];
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698