Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_ | |
| 6 #define MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_ | |
| 7 | |
| 8 #include "media/mojo/interfaces/image_capture.mojom.h" | |
| 9 | |
| 10 namespace media { | |
| 11 | |
| 12 struct VideoCaptureFormat; | |
| 13 | |
| 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 | |
| 16 // error. | |
| 17 mojom::BlobPtr Blobify(const uint8_t* buffer, | |
| 18 const uint32_t bytesused, | |
| 19 VideoCaptureFormat capture_format); | |
|
xianglu
2016/09/20 18:43:03
Consider:
const VideoCaptureFormat& capture_fo
mcasas
2016/09/20 19:51:10
Good one. Done.
| |
| 20 | |
| 21 } // namespace media | |
| 22 | |
| 23 #endif // MEDIA_CAPTURE_VIDEO_BLOB_UTILS_H_ | |
| OLD | NEW |