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

Unified Diff: content/renderer/media/media_stream_constraints_util_video_source.h

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: GetVideoKindForFormat moved to utility. thanks guidou@. 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
Index: content/renderer/media/media_stream_constraints_util_video_source.h
diff --git a/content/renderer/media/media_stream_constraints_util_video_source.h b/content/renderer/media/media_stream_constraints_util_video_source.h
index 6ff14ed308498b8f00c5e0153ad15b9f2244b149..b3df2ff8f07feb5dbe1c717afa30aba322fd3730 100644
--- a/content/renderer/media/media_stream_constraints_util_video_source.h
+++ b/content/renderer/media/media_stream_constraints_util_video_source.h
@@ -20,6 +20,11 @@ class WebMediaConstraints;
namespace content {
+// Calculates and returns videoKind value for |format|.
+// See https://w3c.github.io/mediacapture-depth.
+blink::WebString CONTENT_EXPORT
+GetVideoKindForFormat(const media::VideoCaptureFormat& format);
+
struct CONTENT_EXPORT VideoCaptureCapabilities {
VideoCaptureCapabilities();
VideoCaptureCapabilities(VideoCaptureCapabilities&& other);
@@ -52,6 +57,7 @@ class CONTENT_EXPORT VideoCaptureSourceSettings {
long GetHeight() const;
double GetFrameRate() const;
blink::WebString GetDeviceId() const;
+ blink::WebString GetVideoKind() const;
const media::VideoCaptureFormat& format() const { return format_; }
const std::string& device_id() const { return device_id_; }

Powered by Google App Engine
This is Rietveld 408576698