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

Unified Diff: media/base/video_frame.cc

Issue 1699553002: Mojo Video Capture service in media/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: emircan@ 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..09160cef7907ee79857217ed6649d4c92a1356d6 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_GT(stride, 0);
+ strides_[plane] = stride;
+}
+
VideoFrame::VideoFrame(VideoPixelFormat format,
StorageType storage_type,
const gfx::Size& coded_size,

Powered by Google App Engine
This is Rietveld 408576698