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

Unified Diff: media/capture/video/win/video_capture_device_mf_win.cc

Issue 2428263004: 16 bpp video stream capture, render and createImageBitmap(video) using (CPU) shared memory buffers (Closed)
Patch Set: Review #33 and #34 fixes. Removed WebGL part of code. Thanks danakj@ and mcasas@. 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..88fd33d2c83c82bd56e92c738a7d802fb6cde53f 100644
--- a/media/capture/video/win/video_capture_device_mf_win.cc
+++ b/media/capture/video/win/video_capture_device_mf_win.cc
@@ -18,6 +18,7 @@
#include "base/win/scoped_co_mem.h"
#include "base/win/windows_version.h"
#include "media/capture/video/win/capability_list_win.h"
+#include "media/capture/video/win/sink_filter_win.h"
using base::win::ScopedCoMem;
using base::win::ScopedComPtr;
@@ -170,6 +171,9 @@ bool VideoCaptureDeviceMFWin::FormatFromGuid(const GUID& guid,
{MFVideoFormat_ARGB32, PIXEL_FORMAT_ARGB},
{MFVideoFormat_MJPG, PIXEL_FORMAT_MJPEG},
{MFVideoFormat_YV12, PIXEL_FORMAT_YV12},
+ {kMediaSubTypeY16, PIXEL_FORMAT_Y16},
+ {kMediaSubTypeZ16, PIXEL_FORMAT_Y16},
+ {kMediaSubTypeINVZ, PIXEL_FORMAT_Y16},
};
for (const auto& kFormat : kFormatMap) {

Powered by Google App Engine
This is Rietveld 408576698