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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 // MacOSX implementation of generic VideoCaptureDevice, using either QTKit or 5 // MacOSX implementation of generic VideoCaptureDevice, using either QTKit or
6 // AVFoundation as native capture API. QTKit is available in all OSX versions, 6 // AVFoundation as native capture API. QTKit is available in all OSX versions,
7 // although namely deprecated in 10.9, and AVFoundation is available in versions 7 // although namely deprecated in 10.9, and AVFoundation is available in versions
8 // 10.7 (Lion) and later. 8 // 10.7 (Lion) and later.
9 9
10 #ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ 10 #ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ~VideoCaptureDeviceMac() override; 63 ~VideoCaptureDeviceMac() override;
64 64
65 // VideoCaptureDevice implementation. 65 // VideoCaptureDevice implementation.
66 void AllocateAndStart(const VideoCaptureParams& params, 66 void AllocateAndStart(const VideoCaptureParams& params,
67 scoped_ptr<VideoCaptureDevice::Client> client) override; 67 scoped_ptr<VideoCaptureDevice::Client> client) override;
68 void StopAndDeAllocate() override; 68 void StopAndDeAllocate() override;
69 69
70 bool Init(VideoCaptureDevice::Name::CaptureApiType capture_api_type); 70 bool Init(VideoCaptureDevice::Name::CaptureApiType capture_api_type);
71 71
72 // Called to deliver captured video frames. 72 // Called to deliver captured video frames.
73 void ReceiveFrame(const uint8* video_frame, 73 void ReceiveFrame(const uint8_t* video_frame,
74 int video_frame_length, 74 int video_frame_length,
75 const VideoCaptureFormat& frame_format, 75 const VideoCaptureFormat& frame_format,
76 int aspect_numerator, 76 int aspect_numerator,
77 int aspect_denominator, 77 int aspect_denominator,
78 base::TimeDelta timestamp); 78 base::TimeDelta timestamp);
79 79
80 // Forwarder to VideoCaptureDevice::Client::OnError(). 80 // Forwarder to VideoCaptureDevice::Client::OnError().
81 void ReceiveError(const tracked_objects::Location& from_here, 81 void ReceiveError(const tracked_objects::Location& from_here,
82 const std::string& reason); 82 const std::string& reason);
83 83
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // VideoCaptureDeviceMac is destroyed. 116 // VideoCaptureDeviceMac is destroyed.
117 // NOTE: Weak pointers must be invalidated before all other member variables. 117 // NOTE: Weak pointers must be invalidated before all other member variables.
118 base::WeakPtrFactory<VideoCaptureDeviceMac> weak_factory_; 118 base::WeakPtrFactory<VideoCaptureDeviceMac> weak_factory_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac); 120 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac);
121 }; 121 };
122 122
123 } // namespace media 123 } // namespace media
124 124
125 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ 125 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698