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

Side by Side Diff: media/capture/mojo/video_capture_types.mojom

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: fix trybot errors Created 3 years, 11 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
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 module media.mojom; 5 module media.mojom;
6 6
7 import "media/mojo/interfaces/media_types.mojom"; 7 import "media/mojo/interfaces/media_types.mojom";
8 import "mojo/common/time.mojom"; 8 import "mojo/common/time.mojom";
9 import "mojo/common/values.mojom"; 9 import "mojo/common/values.mojom";
10 import "ui/gfx/geometry/mojo/geometry.mojom"; 10 import "ui/gfx/geometry/mojo/geometry.mojom";
11 11
12 enum ResolutionChangePolicy { 12 enum ResolutionChangePolicy {
13 FIXED_RESOLUTION, 13 FIXED_RESOLUTION,
14 FIXED_ASPECT_RATIO, 14 FIXED_ASPECT_RATIO,
15 ANY_WITHIN_LIMIT, 15 ANY_WITHIN_LIMIT,
16 }; 16 };
17 17
18 enum PowerLineFrequency { 18 enum PowerLineFrequency {
19 DEFAULT, 19 DEFAULT,
20 HZ_50, 20 HZ_50,
21 HZ_60 21 HZ_60
22 }; 22 };
23 23
24 enum VideoPixelStorage { 24 enum VideoPixelStorage {
25 CPU, 25 CPU,
26 GPUMEMORYBUFFER 26 GPUMEMORYBUFFER
27 }; 27 };
28 28
29 // TODO(hta): crbug:680396. Consider to rename it to FacingMode.
hta - Chromium 2017/01/12 19:36:41 The convention for TODO is TODO(name of person who
shenghao 2017/01/13 11:09:34 Deleted
30 enum VideoFacingMode {
31 // The source is facing toward the user (a self-view camera).
32 USER,
33 // The source is facing away from the user (viewing the environment).
34 ENVIRONMENT,
35 // The source is facing to the left of the user.
36 LEFT,
37 // The source is facing to the right of the user.
38 RIGHT,
39 NONE
40 };
hta - Chromium 2017/01/12 19:36:41 I don't understand what value this Mojom definitio
jochen (gone - plz use gerrit) 2017/01/13 08:47:09 we should remove the other enum, and just use the
shenghao 2017/01/13 11:09:34 After looking at hta@'s CL (https://codereview.chr
shenghao 2017/01/13 11:09:34 Deleted
41
29 enum VideoCaptureApi { 42 enum VideoCaptureApi {
30 LINUX_V4L2_SINGLE_PLANE, 43 LINUX_V4L2_SINGLE_PLANE,
31 WIN_MEDIA_FOUNDATION, 44 WIN_MEDIA_FOUNDATION,
32 WIN_DIRECT_SHOW, 45 WIN_DIRECT_SHOW,
33 MACOSX_AVFOUNDATION, 46 MACOSX_AVFOUNDATION,
34 MACOSX_DECKLINK, 47 MACOSX_DECKLINK,
35 ANDROID_API1, 48 ANDROID_API1,
36 ANDROID_API2_LEGACY, 49 ANDROID_API2_LEGACY,
37 ANDROID_API2_FULL, 50 ANDROID_API2_FULL,
38 ANDROID_API2_LIMITED, 51 ANDROID_API2_LIMITED,
(...skipping 21 matching lines...) Expand all
60 }; 73 };
61 74
62 struct VideoFrameInfo{ 75 struct VideoFrameInfo{
63 mojo.common.mojom.TimeDelta timestamp; 76 mojo.common.mojom.TimeDelta timestamp;
64 mojo.common.mojom.DictionaryValue metadata; 77 mojo.common.mojom.DictionaryValue metadata;
65 VideoPixelFormat pixel_format; 78 VideoPixelFormat pixel_format;
66 VideoPixelStorage storage_type; 79 VideoPixelStorage storage_type;
67 gfx.mojom.Size coded_size; 80 gfx.mojom.Size coded_size;
68 gfx.mojom.Rect visible_rect; 81 gfx.mojom.Rect visible_rect;
69 }; 82 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698