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

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: 80-char line fix in test html. Created 3 years, 10 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 | « content/common/media/media_stream_messages.h ('k') | content/renderer/media/media_stream_video_track.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1ed4d7ee26d8db46b63506c7fd59e3ee22fe4b66..b518d77d55401c73d4914edcb788bf79365102a5 100644
--- a/content/public/common/media_stream_request.h
+++ b/content/public/common/media_stream_request.h
@@ -16,6 +16,7 @@
#include "content/common/content_export.h"
#include "media/base/audio_parameters.h"
#include "media/base/video_facing.h"
+#include "media/capture/video/video_capture_device_descriptor.h"
#include "ui/gfx/native_widget_types.h"
#include "url/gurl.h"
@@ -69,6 +70,9 @@ enum MediaStreamRequestResult {
NUM_MEDIA_REQUEST_RESULTS
};
+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);
@@ -161,6 +165,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
« no previous file with comments | « content/common/media/media_stream_messages.h ('k') | content/renderer/media/media_stream_video_track.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698