OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/video_capture/video_capture_impl.h" | 11 #include "webrtc/modules/video_capture/video_capture_impl.h" |
12 | 12 |
13 #include <stdlib.h> | 13 #include <stdlib.h> |
14 | 14 |
15 #include "webrtc/base/trace_event.h" | 15 #include "webrtc/base/trace_event.h" |
16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
17 #include "webrtc/modules/interface/module_common_types.h" | 17 #include "webrtc/modules/include/module_common_types.h" |
18 #include "webrtc/modules/video_capture/video_capture_config.h" | 18 #include "webrtc/modules/video_capture/video_capture_config.h" |
19 #include "webrtc/system_wrappers/include/clock.h" | 19 #include "webrtc/system_wrappers/include/clock.h" |
20 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 20 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
21 #include "webrtc/system_wrappers/include/logging.h" | 21 #include "webrtc/system_wrappers/include/logging.h" |
22 #include "webrtc/system_wrappers/include/ref_count.h" | 22 #include "webrtc/system_wrappers/include/ref_count.h" |
23 #include "webrtc/system_wrappers/include/tick_util.h" | 23 #include "webrtc/system_wrappers/include/tick_util.h" |
24 | 24 |
25 namespace webrtc | 25 namespace webrtc |
26 { | 26 { |
27 | 27 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 if (diff > 0) | 390 if (diff > 0) |
391 { | 391 { |
392 return uint32_t((nrOfFrames * 1000.0f / diff) + 0.5f); | 392 return uint32_t((nrOfFrames * 1000.0f / diff) + 0.5f); |
393 } | 393 } |
394 } | 394 } |
395 | 395 |
396 return nrOfFrames; | 396 return nrOfFrames; |
397 } | 397 } |
398 } // namespace videocapturemodule | 398 } // namespace videocapturemodule |
399 } // namespace webrtc | 399 } // namespace webrtc |
OLD | NEW |