-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace PTZ boolean normalization with boolean constraints #271
Replace PTZ boolean normalization with boolean constraints #271
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic seems sound, but once w3c/mediacapture-main#766 is merged, I'm hoping we can reduce the prose even more. PTAL
We should get this PR in before wide review of image capture starts, since it takes advantage of stuff we merged in w3c/mediacapture-main#766. To that end, I'll commit my suggestions above to this PR and solicit reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/after a possible normalization/with a value other than false/
TL;DR: We no longer need to normalize away boolean inputs to non-boolean constraints as they're handled in fitness distance: "4. If constraintValue is a boolean, but the constrainable property is not, then the fitness distance is based on whether the settings dictionary's constraintName member exists or not, from the formula |
085ac48
to
3bef8ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jan-ivar. As a final touch, I replaced occurrences of |
…malization-with-boolean-constraints SHA: 77a4936 Reason: push, by @dontcallmedom Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This changes pan, tilt and zoom constrainable properties so that for each them there is a single constrainable property which can be constrained either with a boolean constraint (resulting in a fitness distance of 0 or 1) or with a numeric constraint (resulting in a fitness distance from 0.0 to 1.0). Spec: w3c/mediacapture-image#271 w3c/mediacapture-main#766 Change-Id: Iebb0a4f42c518286cefa6b39b2a42f6dbcd30521 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2814545 Commit-Queue: Guido Urdaneta <[email protected]> Auto-Submit: Eero Häkkinen <[email protected]> Reviewed-by: Guido Urdaneta <[email protected]> Cr-Commit-Position: refs/heads/master@{#872352}
This changes pan, tilt and zoom constrainable properties so that for each them there is a single constrainable property which can be constrained either with a boolean constraint (resulting in a fitness distance of 0 or 1) or with a numeric constraint (resulting in a fitness distance from 0.0 to 1.0). Spec: w3c/mediacapture-image#271 w3c/mediacapture-main#766 Change-Id: Iebb0a4f42c518286cefa6b39b2a42f6dbcd30521 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2814545 Commit-Queue: Guido Urdaneta <[email protected]> Auto-Submit: Eero Häkkinen <[email protected]> Reviewed-by: Guido Urdaneta <[email protected]> Cr-Commit-Position: refs/heads/master@{#872352} GitOrigin-RevId: b6a7545796bec4c47a1c2b7504c82932fff7a71d
Fixes #256. This along with w3c/mediacapture-main#742 is to clarify meaning of PTZ constraints presence.
Preview | Diff