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

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

Issue 2354783002: ImageCapture: Implement takePhoto() for Windows (Closed)
Patch Set: xianglu@ comments Created 4 years, 3 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/BUILD.gn ('k') | media/capture/video/blob_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/blob_utils.h
diff --git a/media/capture/video/blob_utils.h b/media/capture/video/blob_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..edf534727d849a66cd0d8a6079e75ea51240b8ae
--- /dev/null
+++ b/media/capture/video/blob_utils.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// 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_
+
+#include "media/mojo/interfaces/image_capture.mojom.h"
+
+namespace media {
+
+struct VideoCaptureFormat;
+
+// Helper method to create a mojom::Blob out of |buffer|, whose pixel format and
+// resolution are taken from |capture_format|. Returns a null BlobPtr in case of
+// error.
+mojom::BlobPtr Blobify(const uint8_t* buffer,
+ const uint32_t bytesused,
+ const VideoCaptureFormat& capture_format);
+
+} // namespace media
+
+#endif // MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
« no previous file with comments | « media/capture/BUILD.gn ('k') | media/capture/video/blob_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698