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

Side by Side Diff: media/video/capture/mac/video_capture_device_mac.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 // OS X implementation of VideoCaptureDevice, using QTKit as native capture API. 5 // OS X implementation of VideoCaptureDevice, using QTKit as native capture API.
6 6
7 #ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ 7 #ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_
8 #define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ 8 #define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 16 matching lines...) Expand all
27 explicit VideoCaptureDeviceMac(const Name& device_name); 27 explicit VideoCaptureDeviceMac(const Name& device_name);
28 virtual ~VideoCaptureDeviceMac(); 28 virtual ~VideoCaptureDeviceMac();
29 29
30 // VideoCaptureDevice implementation. 30 // VideoCaptureDevice implementation.
31 virtual void Allocate(const VideoCaptureCapability& capture_format, 31 virtual void Allocate(const VideoCaptureCapability& capture_format,
32 VideoCaptureDevice::EventHandler* observer) OVERRIDE; 32 VideoCaptureDevice::EventHandler* observer) OVERRIDE;
33 virtual void Start() OVERRIDE; 33 virtual void Start() OVERRIDE;
34 virtual void Stop() OVERRIDE; 34 virtual void Stop() OVERRIDE;
35 virtual void DeAllocate() OVERRIDE; 35 virtual void DeAllocate() OVERRIDE;
36 virtual const Name& device_name() OVERRIDE; 36 virtual const Name& device_name() OVERRIDE;
37 virtual void GetDeviceSupportedFormats(
38 const std::string& device_name,
39 VideoCaptureFormats* capture_formats) OVERRIDE;
37 40
38 bool Init(); 41 bool Init();
39 42
40 // Called to deliver captured video frames. 43 // Called to deliver captured video frames.
41 void ReceiveFrame(const uint8* video_frame, int video_frame_length, 44 void ReceiveFrame(const uint8* video_frame, int video_frame_length,
42 const VideoCaptureCapability& frame_info); 45 const VideoCaptureCapability& frame_info);
43 46
44 void ReceiveError(const std::string& reason); 47 void ReceiveError(const std::string& reason);
45 48
46 private: 49 private:
(...skipping 21 matching lines...) Expand all
68 base::WeakPtr<VideoCaptureDeviceMac> weak_this_; 71 base::WeakPtr<VideoCaptureDeviceMac> weak_this_;
69 72
70 VideoCaptureDeviceQTKit* capture_device_; 73 VideoCaptureDeviceQTKit* capture_device_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac); 75 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac);
73 }; 76 };
74 77
75 } // namespace media 78 } // namespace media
76 79
77 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ 80 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698