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

Side by Side Diff: content/renderer/media/media_stream_constraints_util.h

Issue 1849003002: Add video frame refresh to MediaStream and VideoCapture stacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nick's PS3 comments (moving non-observer impl out of MSVideoSink interface). Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 29 matching lines...) Expand all
40 int* value); 40 int* value);
41 41
42 // Method to get double precision value of constraint with |name| from 42 // Method to get double precision value of constraint with |name| from
43 // constraints. Returns true if the constraint is specified in either mandatory 43 // constraints. Returns true if the constraint is specified in either mandatory
44 // or Optional constraints. 44 // or Optional constraints.
45 bool CONTENT_EXPORT GetConstraintValueAsDouble( 45 bool CONTENT_EXPORT GetConstraintValueAsDouble(
46 const blink::WebMediaConstraints& constraints, 46 const blink::WebMediaConstraints& constraints,
47 const blink::DoubleConstraint blink::WebMediaTrackConstraintSet::*picker, 47 const blink::DoubleConstraint blink::WebMediaTrackConstraintSet::*picker,
48 double* value); 48 double* value);
49 49
50 bool CONTENT_EXPORT GetConstraintMinAsDouble(
51 const blink::WebMediaConstraints& constraints,
52 const blink::DoubleConstraint blink::WebMediaTrackConstraintSet::*picker,
53 double* value);
54
50 bool CONTENT_EXPORT GetConstraintMaxAsDouble( 55 bool CONTENT_EXPORT GetConstraintMaxAsDouble(
51 const blink::WebMediaConstraints& constraints, 56 const blink::WebMediaConstraints& constraints,
52 const blink::DoubleConstraint blink::WebMediaTrackConstraintSet::*picker, 57 const blink::DoubleConstraint blink::WebMediaTrackConstraintSet::*picker,
53 double* value); 58 double* value);
54 59
55 // Method to get std::string value of constraint with |name| from constraints. 60 // Method to get std::string value of constraint with |name| from constraints.
56 // Returns true if the constraint is specified in either mandatory or Optional 61 // Returns true if the constraint is specified in either mandatory or Optional
57 // constraints. 62 // constraints.
58 bool CONTENT_EXPORT GetConstraintValueAsString( 63 bool CONTENT_EXPORT GetConstraintValueAsString(
59 const blink::WebMediaConstraints& constraints, 64 const blink::WebMediaConstraints& constraints,
60 const blink::StringConstraint blink::WebMediaTrackConstraintSet::*picker, 65 const blink::StringConstraint blink::WebMediaTrackConstraintSet::*picker,
61 std::string* value); 66 std::string* value);
62 67
63 rtc::Optional<bool> ConstraintToOptional( 68 rtc::Optional<bool> ConstraintToOptional(
64 const blink::WebMediaConstraints& constraints, 69 const blink::WebMediaConstraints& constraints,
65 const blink::BooleanConstraint blink::WebMediaTrackConstraintSet::*picker); 70 const blink::BooleanConstraint blink::WebMediaTrackConstraintSet::*picker);
66 71
67 } // namespace content 72 } // namespace content
68 73
69 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ 74 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_
OLDNEW
« no previous file with comments | « content/public/renderer/media_stream_video_sink.cc ('k') | content/renderer/media/media_stream_constraints_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698