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

Side by Side Diff: media/video/capture/win/capability_list_win.h

Issue 883293005: Cast: Basic cast_receiver API for chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed include file changes Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Windows specific implementation of VideoCaptureDevice. 5 // Windows specific implementation of VideoCaptureDevice.
6 // DirectShow is used for capturing. DirectShow provide its own threads 6 // DirectShow is used for capturing. DirectShow provide its own threads
7 // for capturing. 7 // for capturing.
8 8
9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_ 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_
10 #define MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_ 10 #define MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_
11 11
12 #include <list> 12 #include <list>
13 13
14 #include "media/video/capture/video_capture_types.h" 14 #include "media/base/video_capture_types.h"
15 15
16 namespace media { 16 namespace media {
17 17
18 struct CapabilityWin { 18 struct CapabilityWin {
19 CapabilityWin(int index, const VideoCaptureFormat& format) 19 CapabilityWin(int index, const VideoCaptureFormat& format)
20 : stream_index(index), supported_format(format) {} 20 : stream_index(index), supported_format(format) {}
21 int stream_index; 21 int stream_index;
22 VideoCaptureFormat supported_format; 22 VideoCaptureFormat supported_format;
23 }; 23 };
24 24
25 typedef std::list<CapabilityWin> CapabilityList; 25 typedef std::list<CapabilityWin> CapabilityList;
26 26
27 CapabilityWin GetBestMatchedCapability(const VideoCaptureFormat& requested, 27 CapabilityWin GetBestMatchedCapability(const VideoCaptureFormat& requested,
28 const CapabilityList& capabilities); 28 const CapabilityList& capabilities);
29 29
30 } // namespace media 30 } // namespace media
31 31
32 #endif // MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_ 32 #endif // MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698