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

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

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 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: 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 d37dc46fcdb864ee5e43c1e21d17f4249749c132..6c2c421c8fe0f8e9e9d7186f62ff8baaf6c2ed49 100644
--- a/content/browser/renderer_host/media/video_capture_host.cc
+++ b/content/browser/renderer_host/media/video_capture_host.cc
@@ -95,8 +95,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