[mediacapture-image] Consider replacing image{Height, Width} with supported and current resolutions

miguelao has just created a new issue for 
https://github.com/w3c/mediacapture-image:

== Consider replacing image{Height,Width} with supported and current 
resolutions ==
`PhotoCapabilities` has two parameters:
```
attribute MediaSettingsRange imageHeight;
attribute MediaSettingsRange imageWidth;
```
which are decoupled from each other, i.e. the first might represent 
[240..720] and the latter [320..1280]. Usually, supported ranges are 
enumerated in couples, i.e. as an array of resolutions `{[320, 240], 
[640, 480], [1280, 720], [640 360]}`. 

I understand that `MediaSettingsRange` includes a `current` field, so 
a potential alternative could be:
```
attribute sequence<Resolution> supportedResolutions;
attribute Resolution currentResolution;
```
where `Resolution` would essentially be a [TBD] width x height data 
type.



Please view or discuss this issue at 
https://github.com/w3c/mediacapture-image/issues/30 using your GitHub 
account

Received on Friday, 22 July 2016 01:51:05 UTC