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

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

Issue 24079003: Add VideoCaptureDevice::GetDeviceSupportedFormats to interface + implementation for Linux and Fake (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
(...skipping 26 matching lines...) Expand all
37 // This function is used by the static VideoCaptureDevice::Create function. 37 // This function is used by the static VideoCaptureDevice::Create function.
38 bool Init(); 38 bool Init();
39 39
40 // VideoCaptureDevice implementation. 40 // VideoCaptureDevice implementation.
41 virtual void Allocate(const VideoCaptureCapability& capture_format, 41 virtual void Allocate(const VideoCaptureCapability& capture_format,
42 VideoCaptureDevice::EventHandler* observer) OVERRIDE; 42 VideoCaptureDevice::EventHandler* observer) OVERRIDE;
43 virtual void Start() OVERRIDE; 43 virtual void Start() OVERRIDE;
44 virtual void Stop() OVERRIDE; 44 virtual void Stop() OVERRIDE;
45 virtual void DeAllocate() OVERRIDE; 45 virtual void DeAllocate() OVERRIDE;
46 virtual const Name& device_name() OVERRIDE; 46 virtual const Name& device_name() OVERRIDE;
47 virtual void GetDeviceSupportedFormats(
48 const std::string& device_name,
49 VideoCaptureFormats* capture_formats) OVERRIDE;
47 50
48 // Returns true iff the current platform supports the Media Foundation API 51 // Returns true iff the current platform supports the Media Foundation API
49 // and that the DLLs are available. On Vista this API is an optional download 52 // and that the DLLs are available. On Vista this API is an optional download
50 // but the API is advertised as a part of Windows 7 and onwards. However, 53 // but the API is advertised as a part of Windows 7 and onwards. However,
51 // we've seen that the required DLLs are not available in some Win7 54 // we've seen that the required DLLs are not available in some Win7
52 // distributions such as Windows 7 N and Windows 7 KN. 55 // distributions such as Windows 7 N and Windows 7 KN.
53 static bool PlatformSupported(); 56 static bool PlatformSupported();
54 57
55 static void GetDeviceNames(Names* device_names); 58 static void GetDeviceNames(Names* device_names);
56 59
(...skipping 17 matching lines...) Expand all
74 VideoCaptureDevice::EventHandler* observer_; 77 VideoCaptureDevice::EventHandler* observer_;
75 base::win::ScopedComPtr<IMFSourceReader> reader_; 78 base::win::ScopedComPtr<IMFSourceReader> reader_;
76 bool capture_; 79 bool capture_;
77 80
78 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin); 81 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin);
79 }; 82 };
80 83
81 } // namespace media 84 } // namespace media
82 85
83 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 86 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698