| OLD | NEW |
| 1 # Image Capture API | 1 # Image Capture API |
| 2 | 2 |
| 3 This folder contains the implementation of the [W3C Image Capture API]. | 3 This folder contains the implementation of the [W3C Image Capture API]. |
| 4 Image Capture was shipped in Chrome M59; please consult the | 4 Image Capture was shipped in Chrome M59; please consult the |
| 5 [Implementation Status] if you think a feature should be available and isn't. | 5 [Implementation Status] if you think a feature should be available and isn't. |
| 6 | 6 |
| 7 [W3C Image Capture API]: https://w3c.github.io/mediacapture-image/ | 7 [W3C Image Capture API]: https://w3c.github.io/mediacapture-image/ |
| 8 [Implementation Status]: https://github.com/w3c/mediacapture-image/blob/master/i
mplementation-status.md | 8 [Implementation Status]: https://github.com/w3c/mediacapture-image/blob/master/i
mplementation-status.md |
| 9 | 9 |
| 10 This API is structured around the [ImageCapture class] _and_ a number of | 10 This API is structured around the [ImageCapture class] _and_ a number of |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 | 36 |
| 37 ### Photo settings and capabilities | 37 ### Photo settings and capabilities |
| 38 | 38 |
| 39 The photo-specific options and settings are associated to `theImageCapturer` or | 39 The photo-specific options and settings are associated to `theImageCapturer` or |
| 40 `theTrack` depending on whether a given capability/setting has an immediately | 40 `theTrack` depending on whether a given capability/setting has an immediately |
| 41 recognisable effect on `theTrack`, in other words if it's "live" or not. For | 41 recognisable effect on `theTrack`, in other words if it's "live" or not. For |
| 42 example, changing the zoom level is instantly reflected on the `theTrack`, | 42 example, changing the zoom level is instantly reflected on the `theTrack`, |
| 43 while connecting the Red Eye Reduction, if available, is not. | 43 while connecting the Red Eye Reduction, if available, is not. |
| 44 | 44 |
| 45 Object | type | retrieved by... | | 45 | Object |type | retrieved by...
| |
| 46 :--| :-- | --: | | 46 | :-- |:-- | --:
| |
| 47 [`PhotoCapabilities`](https://w3c.github.io/mediacapture-image/##photocapabiliti
es-section) | non-live capabilities | `theImageCapturer.getPhotoCapabilities()`
| | 47 |[`PhotoCapabilities`] |non-live capabilities|`theImageCapturer.getPhotoCapa
bilities()`| |
| 48 [`MediaTrackCapabilities`](https://w3c.github.io/mediacapture-image/#mediatrackc
apabilities-section) | live capabilities | `theTrack.getCapabilities()` | | 48 |[`MediaTrackCapabilities`]|live capabilities |`theTrack.getCapabilities()`
| |
| 49 | | | | 49 | | |
| |
| 50 [`PhotoSettings`](https://w3c.github.io/mediacapture-image/##photocapabilities-s
ection) | non-live settings | | | 50 |[`PhotoSettings`] |non-live settings |
| |
| 51 [`MediaTrackSettings`](https://w3c.github.io/mediacapture-image/#mediatracksetti
ngs-section) | live settings | `theTrack.getSettings()` | | 51 |[`MediaTrackSettings`] |live settings |`theTrack.getSettings()`
| |
| 52 | 52 |
| 53 [`PhotoCapabilities`]: https://w3c.github.io/mediacapture-image/##photocapabilit
ies-section |
| 54 [`MediaTrackCapabilities`]: https://w3c.github.io/mediacapture-image/#mediatrack
capabilities-section |
| 55 [`PhotoSettings`]: https://w3c.github.io/mediacapture-image/##photosettings-sect
ion |
| 56 [`MediaTrackSettings`]: https://w3c.github.io/mediacapture-image/#mediatracksett
ings-section |
| 53 | 57 |
| 54 ## Other topics | 58 ## Other topics |
| 55 | 59 |
| 56 ### Are `takePhoto()` and `grabFrame()` the same? | 60 ### Are `takePhoto()` and `grabFrame()` the same? |
| 57 | 61 |
| 58 These methods would not produce the same results as explained in | 62 These methods would not produce the same results as explained in |
| 59 [this issue comment]( | 63 [this issue comment]( |
| 60 https://bugs.chromium.org/p/chromium/issues/detail?id=655107#c8): | 64 https://bugs.chromium.org/p/chromium/issues/detail?id=655107#c8): |
| 61 | 65 |
| 62 | 66 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 123 |
| 120 ## Testing | 124 ## Testing |
| 121 | 125 |
| 122 Sensors layout tests are located in [LayoutTests/imagecapture], | 126 Sensors layout tests are located in [LayoutTests/imagecapture], |
| 123 [LayoutTests/fast/imagecapture] and [LayoutTests/external/mediacapture-image]. | 127 [LayoutTests/fast/imagecapture] and [LayoutTests/external/mediacapture-image]. |
| 124 | 128 |
| 125 [LayoutTests/imagecapture]: https://chromium.googlesource.com/chromium/src/+/mas
ter/third_party/WebKit/LayoutTests/imagecapture | 129 [LayoutTests/imagecapture]: https://chromium.googlesource.com/chromium/src/+/mas
ter/third_party/WebKit/LayoutTests/imagecapture |
| 126 [LayoutTests/fast/imagecapture]: https://chromium.googlesource.com/chromium/src/
+/master/third_party/WebKit/LayoutTests/fast/imagecapture/ | 130 [LayoutTests/fast/imagecapture]: https://chromium.googlesource.com/chromium/src/
+/master/third_party/WebKit/LayoutTests/fast/imagecapture/ |
| 127 [LayoutTests/external/mediacapture-image]: https://chromium.googlesource.com/chr
omium/src/+/master/third_party/WebKit/LayoutTests/external/wpt/mediacapture-imag
e/ | 131 [LayoutTests/external/mediacapture-image]: https://chromium.googlesource.com/chr
omium/src/+/master/third_party/WebKit/LayoutTests/external/wpt/mediacapture-imag
e/ |
| 128 | 132 |
| OLD | NEW |