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

Side by Side Diff: media/video/capture/mac/video_capture_device_mac.h

Issue 15906019: Hook up EncodedVideoSource on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_cl_6
Patch Set: 516738a8 IPC/struct changes, courtesy hshi@ Created 7 years, 6 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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "media/video/capture/video_capture_device.h" 13 #include "media/video/capture/video_capture_device.h"
14 #include "media/video/capture/video_capture_types.h" 14 #include "media/video/capture/video_capture_types.h"
15 15
16 @class VideoCaptureDeviceQTKit; 16 @class VideoCaptureDeviceQTKit;
17 17
18 namespace media { 18 namespace media {
19 19
20 // Called by VideoCaptureManager to open, close and start, stop video capture 20 // Called by VideoCaptureManager to open, close and start, stop video capture
21 // devices. 21 // devices.
22 class VideoCaptureDeviceMac : public VideoCaptureDevice { 22 class VideoCaptureDeviceMac : public VideoCaptureDevice {
23 public: 23 public:
24 explicit VideoCaptureDeviceMac(const Name& device_name); 24 explicit VideoCaptureDeviceMac(const Name& device_name);
25 virtual ~VideoCaptureDeviceMac(); 25 virtual ~VideoCaptureDeviceMac();
26 26
27 // VideoCaptureDevice implementation. 27 // VideoCaptureDevice implementation.
28 virtual VideoEncodingCapabilities GetEncodingCapabilities() OVERRIDE;
29 virtual void TryConfigureEncodedBitstream(
30 const RuntimeVideoEncodingParameters& params) OVERRIDE;
28 virtual void Allocate(int width, 31 virtual void Allocate(int width,
29 int height, 32 int height,
30 int frame_rate, 33 int frame_rate,
31 VideoCaptureDevice::EventHandler* observer) OVERRIDE; 34 VideoCaptureDevice::EventHandler* observer) OVERRIDE;
32 virtual void Start() OVERRIDE; 35 virtual void Start() OVERRIDE;
33 virtual void Stop() OVERRIDE; 36 virtual void Stop() OVERRIDE;
34 virtual void DeAllocate() OVERRIDE; 37 virtual void DeAllocate() OVERRIDE;
35 virtual const Name& device_name() OVERRIDE; 38 virtual const Name& device_name() OVERRIDE;
36 39
37 bool Init(); 40 bool Init();
(...skipping 19 matching lines...) Expand all
57 InternalState state_; 60 InternalState state_;
58 61
59 VideoCaptureDeviceQTKit* capture_device_; 62 VideoCaptureDeviceQTKit* capture_device_;
60 63
61 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac); 64 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac);
62 }; 65 };
63 66
64 } // namespace media 67 } // namespace media
65 68
66 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ 69 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698