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

Unified Diff: media/capture/video/win/video_capture_device_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_win.cc
diff --git a/media/capture/video/win/video_capture_device_win.cc b/media/capture/video/win/video_capture_device_win.cc
index af34f863ea766440382e732b96af0fcbd4acf2e2..9014876c1d956f5dbb3b39284b34255a953e2e59 100644
--- a/media/capture/video/win/video_capture_device_win.cc
+++ b/media/capture/video/win/video_capture_device_win.cc
@@ -16,7 +16,7 @@
#include "base/win/scoped_co_mem.h"
#include "base/win/scoped_variant.h"
#include "media/base/timestamp_constants.h"
-#include "media/capture/video/blob_utils.h"
+#include "media/capture/video/video_capture_utils.h"
using base::win::ScopedCoMem;
using base::win::ScopedComPtr;
@@ -175,6 +175,9 @@ VideoCaptureDeviceWin::TranslateMediaSubtypeToPixelFormat(
if (sub_type == pixel_format.sub_type)
return pixel_format.format;
}
+ if (IsY16FormatFourCc(sub_type.Data1)) {
+ return PIXEL_FORMAT_Y16;
+ }
#ifndef NDEBUG
WCHAR guid_str[128];
StringFromGUID2(sub_type, guid_str, arraysize(guid_str));
« no previous file with comments | « media/capture/video/win/video_capture_device_mf_win.cc ('k') | media/renderers/gpu_video_accelerator_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698