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

Side by Side Diff: media/capture/video/video_capture_device.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 // VideoCaptureDevice is the abstract base class for realizing video capture 5 // VideoCaptureDevice is the abstract base class for realizing video capture
6 // device support in Chromium. It provides the interface for OS dependent 6 // device support in Chromium. It provides the interface for OS dependent
7 // implementations. 7 // implementations.
8 // The class is created and functions are invoked on a thread owned by 8 // The class is created and functions are invoked on a thread owned by
9 // VideoCaptureManager. Capturing is done on other threads, depending on the OS 9 // VideoCaptureManager. Capturing is done on other threads, depending on the OS
10 // specific implementation. 10 // specific implementation.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 }; 196 };
197 197
198 virtual ~Client() {} 198 virtual ~Client() {}
199 199
200 // Captured a new video frame, data for which is pointed to by |data|. 200 // Captured a new video frame, data for which is pointed to by |data|.
201 // 201 //
202 // The format of the frame is described by |frame_format|, and is assumed to 202 // The format of the frame is described by |frame_format|, and is assumed to
203 // be tightly packed. This method will try to reserve an output buffer and 203 // be tightly packed. This method will try to reserve an output buffer and
204 // copy from |data| into the output buffer. If no output buffer is 204 // copy from |data| into the output buffer. If no output buffer is
205 // available, the frame will be silently dropped. 205 // available, the frame will be silently dropped.
206 virtual void OnIncomingCapturedData(const uint8* data, 206 virtual void OnIncomingCapturedData(const uint8_t* data,
207 int length, 207 int length,
208 const VideoCaptureFormat& frame_format, 208 const VideoCaptureFormat& frame_format,
209 int clockwise_rotation, 209 int clockwise_rotation,
210 const base::TimeTicks& timestamp) = 0; 210 const base::TimeTicks& timestamp) = 0;
211 211
212 // Captured a 3 planar YUV frame. Planes are possibly disjoint. 212 // Captured a 3 planar YUV frame. Planes are possibly disjoint.
213 // |frame_format| must indicate I420. 213 // |frame_format| must indicate I420.
214 virtual void OnIncomingCapturedYuvData( 214 virtual void OnIncomingCapturedYuvData(
215 const uint8* y_data, 215 const uint8_t* y_data,
216 const uint8* u_data, 216 const uint8_t* u_data,
217 const uint8* v_data, 217 const uint8_t* v_data,
218 size_t y_stride, 218 size_t y_stride,
219 size_t u_stride, 219 size_t u_stride,
220 size_t v_stride, 220 size_t v_stride,
221 const VideoCaptureFormat& frame_format, 221 const VideoCaptureFormat& frame_format,
222 int clockwise_rotation, 222 int clockwise_rotation,
223 const base::TimeTicks& timestamp) = 0; 223 const base::TimeTicks& timestamp) = 0;
224 224
225 // Reserve an output buffer into which contents can be captured directly. 225 // Reserve an output buffer into which contents can be captured directly.
226 // The returned Buffer will always be allocated with a memory size suitable 226 // The returned Buffer will always be allocated with a memory size suitable
227 // for holding a packed video frame with pixels of |format| format, of 227 // for holding a packed video frame with pixels of |format| format, of
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 private: 294 private:
295 // Gets the power line frequency from the current system time zone if this is 295 // Gets the power line frequency from the current system time zone if this is
296 // defined, otherwise returns 0. 296 // defined, otherwise returns 0.
297 PowerLineFrequency GetPowerLineFrequencyForLocation() const; 297 PowerLineFrequency GetPowerLineFrequencyForLocation() const;
298 }; 298 };
299 299
300 } // namespace media 300 } // namespace media
301 301
302 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_H_ 302 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698