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

Unified Diff: media/base/video_util.h

Issue 12090109: Tab Capture: Backing store readbacks to YV12 VideoFrames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix per wjia Created 7 years, 10 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 | « content/port/browser/render_widget_host_view_port.h ('k') | media/base/video_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_util.h
diff --git a/media/base/video_util.h b/media/base/video_util.h
index 562ad7d86ccae39af852ae8d4ece09dba94a9889..fd71605394b8d7d277d0944b390efe80bdce6e62 100644
--- a/media/base/video_util.h
+++ b/media/base/video_util.h
@@ -28,6 +28,11 @@ MEDIA_EXPORT void CopyUPlane(const uint8* source, int stride, int rows,
VideoFrame* frame);
MEDIA_EXPORT void CopyVPlane(const uint8* source, int stride, int rows,
VideoFrame* frame);
+// |plane| is one of VideoFrame::kYPlane, VideoFrame::kUPlane,
+// or VideoFrame::kVPlane.
+MEDIA_EXPORT void CopyPlane(size_t plane, const uint8* source, int stride,
+ int rows, VideoFrame* frame);
+
// Fills |frame| containing YUV data to the given color values.
MEDIA_EXPORT void FillYUV(VideoFrame* frame, uint8 y, uint8 u, uint8 v);
« no previous file with comments | « content/port/browser/render_widget_host_view_port.h ('k') | media/base/video_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698