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

Unified Diff: media/base/video_frame.cc

Issue 1637793004: [WIP] Mojo Video Capture thingy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: heave!! Created 4 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
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 0ad4ac0f807607d90b0bc0a24695a79507d2eeb8..9199b2eb539ee0e98693ccc75a3d24498e217bf6 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -920,6 +920,18 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalStorage(
return frame;
}
+void VideoFrame::set_data(size_t plane, uint8_t* ptr) {
+ DCHECK(IsValidPlane(plane, format_));
+ DCHECK(ptr);
+ data_[plane] = ptr;
+}
+
+void VideoFrame::set_stride(size_t plane, int stride) {
+ DCHECK(IsValidPlane(plane, format_));
+ DCHECK_GE(stride, 0);
+ strides_[plane] = stride;
+}
+
VideoFrame::VideoFrame(VideoPixelFormat format,
StorageType storage_type,
const gfx::Size& coded_size,
« components/video_capture/stream_impl_unittest.cc ('K') | « media/base/video_frame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698