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

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: rockot@ comments 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 4dedd82d10b20633d091bd24aebd31b203c32719..4b5ca096243a5203e7c818a25682c8cbcea90e30 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -938,6 +938,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);
emircan 2016/02/16 17:45:48 DCHECK_GT?
mcasas 2016/02/16 23:17:21 Done.
+ strides_[plane] = stride;
+}
+
VideoFrame::VideoFrame(VideoPixelFormat format,
StorageType storage_type,
const gfx::Size& coded_size,
« components/video_capture/video_capture_device_client_impl.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