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

Side by Side Diff: services/video_capture/mojo_media_conversions.h

Issue 2376013002: [Mojo Video Capture] Move conversions between mojom and media types to a separate file (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « services/video_capture/BUILD.gn ('k') | services/video_capture/mojo_media_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 SERVICES_VIDEO_CAPTURE_MOJO_MEDIA_CONVERSIONS_H_
6 #define SERVICES_VIDEO_CAPTURE_MOJO_MEDIA_CONVERSIONS_H_
7
8 #include "media/capture/video/video_capture_device.h"
9 #include "services/video_capture/public/interfaces/video_capture_device_factory. mojom.h"
10 #include "services/video_capture/public/interfaces/video_capture_device_proxy.mo jom.h"
11 #include "services/video_capture/public/interfaces/video_capture_format.mojom.h"
12
13 namespace video_capture {
14
15 // TODO(chfremer): Consider using Mojo type mapping instead of conversion
16 // methods.
17 // https://crbug.com/642387
mcasas 2016/09/28 23:09:10 nit: reflow to previous line.
chfremer 2016/09/28 23:19:12 Done.
18
19 media::VideoCaptureFormat ConvertFromMojoToMedia(
20 mojom::VideoCaptureFormatPtr format);
21 media::VideoPixelFormat ConvertFromMojoToMedia(
22 media::mojom::VideoFormat format);
23 media::VideoPixelStorage ConvertFromMojoToMedia(
24 mojom::VideoPixelStorage storage);
25 media::ResolutionChangePolicy ConvertFromMojoToMedia(
26 mojom::ResolutionChangePolicy policy);
27 media::PowerLineFrequency ConvertFromMojoToMedia(
28 mojom::PowerLineFrequency frequency);
29
30 } // namespace video_capture
31
32 #endif // SERVICES_VIDEO_CAPTURE_MOJO_MEDIA_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « services/video_capture/BUILD.gn ('k') | services/video_capture/mojo_media_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698