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

Side by Side Diff: media/capture/video/blob_utils.h

Issue 2539543002: RELAND: ImageCapture: move image_capture.mojom from media/mojo/interfaces/ to media/capture/mojo/ (Closed)
Patch Set: https://codereview.chromium.org/2526953002 Created 4 years 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 unified diff | Download patch
« no previous file with comments | « media/capture/video/android/BUILD.gn ('k') | media/capture/video/video_capture_device.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
6 #define MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_ 6 #define MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
7 7
8 #include "media/mojo/interfaces/image_capture.mojom.h" 8 #include "media/capture/mojo/image_capture.mojom.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 struct VideoCaptureFormat; 12 struct VideoCaptureFormat;
13 13
14 // Helper method to create a mojom::Blob out of |buffer|, whose pixel format and 14 // Helper method to create a mojom::Blob out of |buffer|, whose pixel format and
15 // resolution are taken from |capture_format|. Returns a null BlobPtr in case of 15 // resolution are taken from |capture_format|. Returns a null BlobPtr in case of
16 // error. 16 // error.
17 mojom::BlobPtr Blobify(const uint8_t* buffer, 17 mojom::BlobPtr Blobify(const uint8_t* buffer,
18 const uint32_t bytesused, 18 const uint32_t bytesused,
19 const VideoCaptureFormat& capture_format); 19 const VideoCaptureFormat& capture_format);
20 20
21 } // namespace media 21 } // namespace media
22 22
23 #endif // MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_ 23 #endif // MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_
OLDNEW
« no previous file with comments | « media/capture/video/android/BUILD.gn ('k') | media/capture/video/video_capture_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698