Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: content/public/common/media_stream_request.h

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: Added to MediaTrackSupportedConstraints and MediaTrackConstraintSet. Thanks mcasas@. 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
Index: content/public/common/media_stream_request.h
diff --git a/content/public/common/media_stream_request.h b/content/public/common/media_stream_request.h
index 07a4e1af114d6adf49e2d65b1982c7ac1c1de92c..f99c43110874b245b68320c5226eb05a0fac5ce6 100644
--- a/content/public/common/media_stream_request.h
+++ b/content/public/common/media_stream_request.h
@@ -15,6 +15,7 @@
#include "base/callback_forward.h"
#include "content/common/content_export.h"
#include "media/base/audio_parameters.h"
+#include "media/capture/video/video_capture_device_descriptor.h"
#include "ui/gfx/native_widget_types.h"
#include "url/gurl.h"
@@ -77,6 +78,9 @@ enum MediaStreamRequestResult {
+using CameraCalibration =
+ media::VideoCaptureDeviceDescriptor::CameraCalibration;
// Convenience predicates to determine whether the given type represents some
// audio or some video device.
CONTENT_EXPORT bool IsAudioInputMediaType(MediaStreamType type);
@@ -164,6 +168,9 @@ struct CONTENT_EXPORT MediaStreamDevice {
// exists (e.g. webcam w/mic), then the value of this member will be all
// zeros.
AudioDeviceParameters matched_output;
+ // This field is optional and available only for some camera models.
+ base::Optional<CameraCalibration> camera_calibration;
class CONTENT_EXPORT MediaStreamDevices

Powered by Google App Engine
This is Rietveld 408576698