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

Unified Diff: media/capture/video/win/video_capture_device_mf_win.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: media/capture/video/win/video_capture_device_mf_win.cc
diff --git a/media/capture/video/win/video_capture_device_mf_win.cc b/media/capture/video/win/video_capture_device_mf_win.cc
index 9965e7c76a3fbd083c5661478d1015034b8a5cd9..7603d3b57fcede76e8a32caff540cf5fb5c8291f 100644
--- a/media/capture/video/win/video_capture_device_mf_win.cc
+++ b/media/capture/video/win/video_capture_device_mf_win.cc
@@ -17,6 +17,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/win/scoped_co_mem.h"
#include "base/win/windows_version.h"
+#include "media/capture/video/video_capture_utils.h"
#include "media/capture/video/win/capability_list_win.h"
using base::win::ScopedCoMem;
@@ -178,6 +179,10 @@ bool VideoCaptureDeviceMFWin::FormatFromGuid(const GUID& guid,
return true;
}
}
+ if (IsY16FormatFourCc(guid.Data1)) {
+ *format = PIXEL_FORMAT_Y16;
+ return true;
+ }
return false;
}
« no previous file with comments | « media/capture/video/win/video_capture_device_factory_win.cc ('k') | media/capture/video/win/video_capture_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698