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

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

Issue 2897993002: Detect frames from rotated devices in VideoTrackAdapter on Android. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_constraints_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/logging.h" 10 #include "base/logging.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // SelectClosestPointToIdeal are rounded to the nearest int. For more details, 232 // SelectClosestPointToIdeal are rounded to the nearest int. For more details,
233 // see the documentation for ResolutionSet::SelectClosestPointToIdeal. 233 // see the documentation for ResolutionSet::SelectClosestPointToIdeal.
234 // Note that this function ignores the min/max/exact values from 234 // Note that this function ignores the min/max/exact values from
235 // |basic_constraint_set|. Only its ideal values are used. 235 // |basic_constraint_set|. Only its ideal values are used.
236 // This function has undefined behavior if any of |resolution_set| or 236 // This function has undefined behavior if any of |resolution_set| or
237 // |frame_rate_set| are empty. 237 // |frame_rate_set| are empty.
238 VideoTrackAdapterSettings CONTENT_EXPORT SelectVideoTrackAdapterSettings( 238 VideoTrackAdapterSettings CONTENT_EXPORT SelectVideoTrackAdapterSettings(
239 const blink::WebMediaTrackConstraintSet& basic_constraint_set, 239 const blink::WebMediaTrackConstraintSet& basic_constraint_set,
240 const ResolutionSet& resolution_set, 240 const ResolutionSet& resolution_set,
241 const NumericRangeSet<double>& frame_rate_set, 241 const NumericRangeSet<double>& frame_rate_set,
242 const media::VideoCaptureFormat& source_format); 242 const media::VideoCaptureFormat& source_format,
243 bool expect_source_native_size);
243 244
244 } // namespace content 245 } // namespace content
245 246
246 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ 247 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_stream_constraints_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698