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_ |