OLD | NEW |
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 // https://w3c.github.io/mediacapture-main/#idl-def-mediatracksupportedconstrain
ts | 5 // https://w3c.github.io/mediacapture-main/#idl-def-mediatracksupportedconstrain
ts |
6 | 6 |
7 // NOTE: The names of this dictionary MUST be kept aligned with those in | 7 // NOTE: The names of this dictionary MUST be kept aligned with those in |
8 // MediaTrackConstraintSet.idl. | 8 // MediaTrackConstraintSet.idl. |
9 | 9 |
10 dictionary MediaTrackSupportedConstraints { | 10 dictionary MediaTrackSupportedConstraints { |
11 boolean width = true; | 11 boolean width = true; |
12 boolean height = true; | 12 boolean height = true; |
13 boolean aspectRatio = true; | 13 boolean aspectRatio = true; |
14 boolean frameRate = true; | 14 boolean frameRate = true; |
15 boolean facingMode = true; | 15 boolean facingMode = true; |
16 boolean volume = true; | 16 boolean volume = true; |
17 boolean sampleRate = true; | 17 boolean sampleRate = true; |
18 boolean sampleSize = true; | 18 boolean sampleSize = true; |
19 boolean echoCancellation = true; | 19 boolean echoCancellation = true; |
20 boolean latency = true; | 20 boolean latency = true; |
21 boolean channelCount = true; | 21 boolean channelCount = true; |
22 boolean deviceId = true; | 22 boolean deviceId = true; |
23 boolean groupId = true; | 23 boolean groupId = true; |
| 24 |
24 // Media Capture Depth Stream Extensions | 25 // Media Capture Depth Stream Extensions |
25 // https://w3c.github.io/mediacapture-depth | 26 // https://w3c.github.io/mediacapture-depth |
26 // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar, | 27 // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar, |
27 // focalLengthX and focalLengthY attributes should be declared as partial | 28 // focalLengthX and focalLengthY attributes should be declared as partial |
28 // dictionary but IDL parser can't support it yet. http://crbug.com/579896. | 29 // dictionary but IDL parser can't support it yet. http://crbug.com/579896. |
29 [RuntimeEnabled=MediaCaptureDepth] boolean videoKind = true; | 30 [RuntimeEnabled=MediaCaptureDepth] boolean videoKind = true; |
30 [RuntimeEnabled=MediaCaptureDepth] boolean depthNear = true; | 31 [RuntimeEnabled=MediaCaptureDepth] boolean depthNear = true; |
31 [RuntimeEnabled=MediaCaptureDepth] boolean depthFar = true; | 32 [RuntimeEnabled=MediaCaptureDepth] boolean depthFar = true; |
32 [RuntimeEnabled=MediaCaptureDepth] boolean focalLengthX = true; | 33 [RuntimeEnabled=MediaCaptureDepth] boolean focalLengthX = true; |
33 [RuntimeEnabled=MediaCaptureDepth] boolean focalLengthY = true; | 34 [RuntimeEnabled=MediaCaptureDepth] boolean focalLengthY = true; |
| 35 |
| 36 // W3C Image Capture API |
| 37 // https://w3c.github.io/mediacapture-image/#mediatracksupportedconstraints-
section |
| 38 // TODO(mcasas) move out when partial dictionaries are supported |
| 39 // http://crbug.com/579896. |
| 40 [OriginTrialEnabled=ImageCapture] boolean whiteBalanceMode = true; |
| 41 [OriginTrialEnabled=ImageCapture] boolean exposureMode = true; |
| 42 [OriginTrialEnabled=ImageCapture] boolean focusMode = true; |
| 43 [OriginTrialEnabled=ImageCapture] boolean pointsOfInterest = true; |
| 44 [OriginTrialEnabled=ImageCapture] boolean exposureCompensation = true; |
| 45 [OriginTrialEnabled=ImageCapture] boolean colorTemperature = true; |
| 46 [OriginTrialEnabled=ImageCapture] boolean iso = true; |
| 47 [OriginTrialEnabled=ImageCapture] boolean brightness = true; |
| 48 [OriginTrialEnabled=ImageCapture] boolean contrast = true; |
| 49 [OriginTrialEnabled=ImageCapture] boolean saturation = true; |
| 50 [OriginTrialEnabled=ImageCapture] boolean sharpness = true; |
| 51 [OriginTrialEnabled=ImageCapture] boolean zoom = true; |
| 52 [OriginTrialEnabled=ImageCapture] boolean torch = true; |
34 }; | 53 }; |
OLD | NEW |