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

Side by Side Diff: media/capture/video/fake_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 // Implementation of a fake VideoCaptureDevice class. Used for testing other 5 // Implementation of a fake VideoCaptureDevice class. Used for testing other
6 // video capture classes when no real hardware is available. 6 // video capture classes when no real hardware is available.
7 7
8 #ifndef MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_ 8 #ifndef MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_
9 #define MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_ 9 #define MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // correct thread that owns the object. 55 // correct thread that owns the object.
56 base::ThreadChecker thread_checker_; 56 base::ThreadChecker thread_checker_;
57 57
58 const BufferOwnership buffer_ownership_; 58 const BufferOwnership buffer_ownership_;
59 const BufferPlanarity planarity_; 59 const BufferPlanarity planarity_;
60 // Frame rate of the fake video device. 60 // Frame rate of the fake video device.
61 const float fake_capture_rate_; 61 const float fake_capture_rate_;
62 62
63 scoped_ptr<VideoCaptureDevice::Client> client_; 63 scoped_ptr<VideoCaptureDevice::Client> client_;
64 // |fake_frame_| is used for capturing on Own Buffers. 64 // |fake_frame_| is used for capturing on Own Buffers.
65 scoped_ptr<uint8[]> fake_frame_; 65 scoped_ptr<uint8_t[]> fake_frame_;
66 // Time when the next beep occurs. 66 // Time when the next beep occurs.
67 base::TimeDelta beep_time_; 67 base::TimeDelta beep_time_;
68 // Time since the fake video started rendering frames. 68 // Time since the fake video started rendering frames.
69 base::TimeDelta elapsed_time_; 69 base::TimeDelta elapsed_time_;
70 VideoCaptureFormat capture_format_; 70 VideoCaptureFormat capture_format_;
71 71
72 // FakeVideoCaptureDevice post tasks to itself for frame construction and 72 // FakeVideoCaptureDevice post tasks to itself for frame construction and
73 // needs to deal with asynchronous StopAndDeallocate(). 73 // needs to deal with asynchronous StopAndDeallocate().
74 base::WeakPtrFactory<FakeVideoCaptureDevice> weak_factory_; 74 base::WeakPtrFactory<FakeVideoCaptureDevice> weak_factory_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(FakeVideoCaptureDevice); 76 DISALLOW_COPY_AND_ASSIGN(FakeVideoCaptureDevice);
77 }; 77 };
78 78
79 } // namespace media 79 } // namespace media
80 80
81 #endif // MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_ 81 #endif // MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698