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

Unified Diff: trunk/src/media/video/capture/win/capability_list_win.h

Issue 84393002: Revert 236927 "Reorganize media::VideoCapture* types" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/media/video/capture/win/capability_list_win.h
===================================================================
--- trunk/src/media/video/capture/win/capability_list_win.h (revision 236934)
+++ trunk/src/media/video/capture/win/capability_list_win.h (working copy)
@@ -16,7 +16,7 @@
namespace media {
-struct VideoCaptureCapabilityWin {
+struct VideoCaptureCapabilityWin : public VideoCaptureCapability {
explicit VideoCaptureCapabilityWin(int index)
: stream_index(index),
frame_rate_numerator(0),
@@ -26,7 +26,6 @@
// so framerates can be properly represented, f.i. 29.971fps= 30000/1001.
int frame_rate_numerator;
int frame_rate_denominator;
- VideoCaptureFormat supported_format;
};
class CapabilityList : public base::NonThreadSafe {
@@ -42,9 +41,8 @@
// Loops through the list of capabilities and returns an index of the best
// matching capability. The algorithm prioritizes height, width, frame rate
// and color format in that order.
- const VideoCaptureCapabilityWin& GetBestMatchedFormat(
- int requested_width,
- int requested_height,
+ const VideoCaptureCapabilityWin& GetBestMatchedCapability(
+ int requested_width, int requested_height,
int requested_frame_rate) const;
private:
« no previous file with comments | « trunk/src/media/video/capture/video_capture_types.cc ('k') | trunk/src/media/video/capture/win/capability_list_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698