OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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-mediatrackconstraintset | 5 // https://w3c.github.io/mediacapture-main/#idl-def-mediatrackconstraintset |
6 | 6 |
7 typedef (long or ConstrainLongRange) ConstrainLong; | 7 typedef (long or ConstrainLongRange) ConstrainLong; |
8 typedef (double or ConstrainDoubleRange) ConstrainDouble; | 8 typedef (double or ConstrainDoubleRange) ConstrainDouble; |
9 typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean; | 9 typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean; |
10 typedef (DOMString or sequence<DOMString> or ConstrainDOMStringParameters) Const
rainDOMString; | 10 typedef (DOMString or sequence<DOMString> or ConstrainDOMStringParameters) Const
rainDOMString; |
(...skipping 15 matching lines...) Expand all Loading... |
26 // Media Capture Depth Stream Extensions | 26 // Media Capture Depth Stream Extensions |
27 // https://w3c.github.io/mediacapture-depth/#mediatrackconstraints | 27 // https://w3c.github.io/mediacapture-depth/#mediatrackconstraints |
28 // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar, | 28 // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar, |
29 // focalLengthX and focalLengthY attributes should be declared as partial | 29 // focalLengthX and focalLengthY attributes should be declared as partial |
30 // dictionary but IDL parser can't support it yet. http://crbug.com/579896. | 30 // dictionary but IDL parser can't support it yet. http://crbug.com/579896. |
31 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDOMString video
Kind; | 31 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDOMString video
Kind; |
32 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthNea
r; | 32 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthNea
r; |
33 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthFar
; | 33 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthFar
; |
34 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLen
gthX; | 34 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLen
gthX; |
35 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLen
gthY; | 35 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLen
gthY; |
| 36 // W3C Image Capture API |
| 37 // https://w3c.github.io/mediacapture-image/#mediatrackconstraintset-section |
| 38 // TODO(mcasas) move out when partial dictionaries are supported |
| 39 // http://crbug.com/579896. |
| 40 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString whiteBalan
ceMode; |
| 41 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString exposureMo
de; |
| 42 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString focusMode; |
| 43 // TODO(mcasas): add support for ConstrainPoint2D pointsOfInterest, see |
| 44 // https://crbug.com/700607 |
| 45 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble exposureCo
mpensation; |
| 46 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble colorTempe
rature; |
| 47 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble iso; |
| 48 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble brightness
; |
| 49 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble contrast; |
| 50 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble saturation
; |
| 51 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble sharpness; |
| 52 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble zoom; |
| 53 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainBoolean torch; |
36 // The "mandatory" and "_optional" members are retained for conformance | 54 // The "mandatory" and "_optional" members are retained for conformance |
37 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/ | 55 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/ |
38 Dictionary mandatory; | 56 Dictionary mandatory; |
39 sequence<Dictionary> _optional; | 57 sequence<Dictionary> _optional; |
40 }; | 58 }; |
OLD | NEW |