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

Unified Diff: content/browser/renderer_host/media/video_capture_host.cc

Issue 2428263004: 16 bpp video stream capture, render and createImageBitmap(video) using (CPU) shared memory buffers (Closed)
Patch Set: Split webrtc_depth_capture_browsertest. Thanks phoglund@, Created 4 years, 1 month 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: content/browser/renderer_host/media/video_capture_host.cc
diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc
index 71c61c03561315f73e81195f730fec7575e28246..7603448bffedc325f6bac9580bea26894636456b 100644
--- a/content/browser/renderer_host/media/video_capture_host.cc
+++ b/content/browser/renderer_host/media/video_capture_host.cc
@@ -97,8 +97,9 @@ void VideoCaptureHost::OnBufferReady(
info->timestamp = video_frame->timestamp();
video_frame->metadata()->MergeInternalValuesInto(&info->metadata);
- DCHECK_EQ(media::PIXEL_FORMAT_I420, video_frame->format());
- info->pixel_format = media::PIXEL_FORMAT_I420;
+ DCHECK(media::PIXEL_FORMAT_I420 == video_frame->format() ||
+ media::PIXEL_FORMAT_Y16 == video_frame->format());
+ info->pixel_format = video_frame->format();
info->storage_type = media::PIXEL_STORAGE_CPU;
info->coded_size = video_frame->coded_size();
info->visible_rect = video_frame->visible_rect();

Powered by Google App Engine
This is Rietveld 408576698