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

Side by Side Diff: media/video/capture/fake_video_capture_device.h

Issue 9837095: [Coverity] Fixed frame size (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/video/capture/fake_video_capture_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 }; 43 };
44 explicit FakeVideoCaptureDevice(const Name& device_name); 44 explicit FakeVideoCaptureDevice(const Name& device_name);
45 45
46 // Called on the capture_thread_. 46 // Called on the capture_thread_.
47 void OnCaptureTask(); 47 void OnCaptureTask();
48 48
49 Name device_name_; 49 Name device_name_;
50 VideoCaptureDevice::EventHandler* observer_; 50 VideoCaptureDevice::EventHandler* observer_;
51 InternalState state_; 51 InternalState state_;
52 base::Thread capture_thread_; 52 base::Thread capture_thread_;
53 int frame_size_;
53 scoped_array<uint8> fake_frame_; 54 scoped_array<uint8> fake_frame_;
54 55
55 DISALLOW_IMPLICIT_CONSTRUCTORS(FakeVideoCaptureDevice); 56 DISALLOW_IMPLICIT_CONSTRUCTORS(FakeVideoCaptureDevice);
56 }; 57 };
57 58
58 } // namespace media 59 } // namespace media
59 60
60 #endif // MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_ 61 #endif // MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | media/video/capture/fake_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698