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

Unified Diff: media/capture/video/video_capture_utils.h

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
« no previous file with comments | « media/capture/video/video_capture_device_unittest.cc ('k') | media/capture/video/video_capture_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/video_capture_utils.h
diff --git a/media/capture/video/blob_utils.h b/media/capture/video/video_capture_utils.h
similarity index 62%
rename from media/capture/video/blob_utils.h
rename to media/capture/video/video_capture_utils.h
index edf534727d849a66cd0d8a6079e75ea51240b8ae..8c1a0a9d52f3de66ff9b9e3e71d6d87986453be3 100644
--- a/media/capture/video/blob_utils.h
+++ b/media/capture/video/video_capture_utils.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
-#define MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
+#ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_UTILS_H_
+#define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_UTILS_H_
#include "media/mojo/interfaces/image_capture.mojom.h"
@@ -18,6 +18,12 @@ mojom::BlobPtr Blobify(const uint8_t* buffer,
const uint32_t bytesused,
const VideoCaptureFormat& capture_format);
+// Helper method to check is stream format layout is 16 bit grayscale based on
+// format's fourcc. fourcc is reinterpretation of four character literal to
+// unsigned int.
+//
+bool IsY16FormatFourCc(unsigned fourcc);
+
} // namespace media
-#endif // MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
+#endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_UTILS_H_
« no previous file with comments | « media/capture/video/video_capture_device_unittest.cc ('k') | media/capture/video/video_capture_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698