Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: content/test/data/media/getusermedia-depth-capture.html

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/data/media/getusermedia-depth-capture.html
diff --git a/content/test/data/media/getusermedia-depth-capture.html b/content/test/data/media/getusermedia-depth-capture.html
index 0dc5953c89482a28530627ed5948a760c1bbfef4..0917030bab88d7a4ddd7c64497b73c9fb4640eb2 100644
--- a/content/test/data/media/getusermedia-depth-capture.html
+++ b/content/test/data/media/getusermedia-depth-capture.html
@@ -36,6 +36,23 @@
failedCallback);
}
+ function getDepthStreamAndCameraCalibration() {
+ console.log('Calling getDepthStreamAndCameraCalibration');
+ getFake16bitStream().then(function(stream) {
+ var depth_track = stream.getVideoTracks()[0];
+ if (!depth_track)
+ return failTest("No depth_track");
+ var settings = depth_track.getSettings();
+ if (settings && settings.depthNear == 0 && settings.depthFar == 65.535 &&
+ settings.focalLengthX == 135.0 && settings.focalLengthY == 135.6) {
+ reportTestSuccess();
+ } else {
+ failTest("Unexpected depth_track settings:" + JSON.stringify(settings));
+ }
+ },
+ failedCallback);
+ }
+
function depthStreamToRGBAUint8Texture() {
console.log('Calling depthStreamToRGBAUint8Texture');
getFake16bitStream().then(function(stream) {

Powered by Google App Engine
This is Rietveld 408576698