OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "media/video/capture/file_video_capture_device.h" | 5 #include "media/video/capture/file_video_capture_device.h" |
6 | 6 |
7 #include <string> | |
8 | 7 |
9 #include "base/bind.h" | 8 #include "base/bind.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
13 #include "media/base/video_capture_types.h" | 11 #include "media/base/video_capture_types.h" |
14 | 12 |
15 namespace media { | 13 namespace media { |
16 static const int kY4MHeaderMaxSize = 200; | 14 static const int kY4MHeaderMaxSize = 200; |
17 static const char kY4MSimpleFrameDelimiter[] = "FRAME"; | 15 static const char kY4MSimpleFrameDelimiter[] = "FRAME"; |
18 static const int kY4MSimpleFrameDelimiterSize = 6; | 16 static const int kY4MSimpleFrameDelimiterSize = 6; |
19 | 17 |
20 int ParseY4MInt(const base::StringPiece& token) { | 18 int ParseY4MInt(const base::StringPiece& token) { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 next_on_capture_timedelta = frame_interval; | 251 next_on_capture_timedelta = frame_interval; |
254 } | 252 } |
255 base::MessageLoop::current()->PostDelayedTask( | 253 base::MessageLoop::current()->PostDelayedTask( |
256 FROM_HERE, | 254 FROM_HERE, |
257 base::Bind(&FileVideoCaptureDevice::OnCaptureTask, | 255 base::Bind(&FileVideoCaptureDevice::OnCaptureTask, |
258 base::Unretained(this)), | 256 base::Unretained(this)), |
259 next_on_capture_timedelta); | 257 next_on_capture_timedelta); |
260 } | 258 } |
261 | 259 |
262 } // namespace media | 260 } // namespace media |
OLD | NEW |