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/capture/video/file_video_capture_device.h" | 5 #include "media/capture/video/file_video_capture_device.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
8 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
10 #include "media/base/video_capture_types.h" | 13 #include "media/base/video_capture_types.h" |
11 #include "media/filters/jpeg_parser.h" | 14 #include "media/filters/jpeg_parser.h" |
12 | 15 |
13 namespace media { | 16 namespace media { |
14 | 17 |
15 static const int kY4MHeaderMaxSize = 200; | 18 static const int kY4MHeaderMaxSize = 200; |
16 static const char kY4MSimpleFrameDelimiter[] = "FRAME"; | 19 static const char kY4MSimpleFrameDelimiter[] = "FRAME"; |
17 static const int kY4MSimpleFrameDelimiterSize = 6; | 20 static const int kY4MSimpleFrameDelimiterSize = 6; |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 if (next_frame_time_ < current_time) | 380 if (next_frame_time_ < current_time) |
378 next_frame_time_ = current_time; | 381 next_frame_time_ = current_time; |
379 } | 382 } |
380 base::MessageLoop::current()->PostDelayedTask( | 383 base::MessageLoop::current()->PostDelayedTask( |
381 FROM_HERE, base::Bind(&FileVideoCaptureDevice::OnCaptureTask, | 384 FROM_HERE, base::Bind(&FileVideoCaptureDevice::OnCaptureTask, |
382 base::Unretained(this)), | 385 base::Unretained(this)), |
383 next_frame_time_ - current_time); | 386 next_frame_time_ - current_time); |
384 } | 387 } |
385 | 388 |
386 } // namespace media | 389 } // namespace media |
OLD | NEW |