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

Unified Diff: third_party/WebKit/public/platform/WebMediaStreamTrack.h

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: RuntimeEnabled=MediaCaptureDepth to MediaTrackSupportedConstraints.idl. Thanks guidou@ Created 3 years, 11 months 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
« no previous file with comments | « third_party/WebKit/public/platform/WebMediaConstraints.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebMediaStreamTrack.h
diff --git a/third_party/WebKit/public/platform/WebMediaStreamTrack.h b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
index d9191b721badcf0e80afb731e5014a181312a689..0f9abef23074fbd251ed1a5351346043dc53046f 100644
--- a/third_party/WebKit/public/platform/WebMediaStreamTrack.h
+++ b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
@@ -45,12 +45,21 @@ class WebMediaStreamTrack {
bool hasFrameRate() { return frameRate >= 0.0; }
bool hasWidth() { return width >= 0; }
bool hasHeight() { return height >= 0; }
+ bool hasFocalLengthX() { return focalLengthX >= 0.0; }
+ bool hasFocalLengthY() { return focalLengthY >= 0.0; }
+ bool hasDepthNear() { return depthNear >= 0.0; }
+ bool hasDepthFar() { return depthFar >= 0.0; }
kinuko 2017/02/03 00:20:01 nit: no need to be done in this CL but it looks al
aleksandar.stojiljkovic 2017/02/03 12:33:45 Thanks. Let me cover it in follow up patch as it i
// The variables are read from
// MediaStreamTrack::GetSettings only.
double frameRate = -1.0;
long width = -1;
long height = -1;
WebString deviceId;
+ // Media Capture Depth Stream Extensions.
+ double focalLengthX = -1.0;
+ double focalLengthY = -1.0;
+ double depthNear = -1.0;
+ double depthFar = -1.0;
};
class TrackData {
« no previous file with comments | « third_party/WebKit/public/platform/WebMediaConstraints.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698