OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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/media/webrtc/webrtcvideocapturer.h" | 11 #include "webrtc/media/engine/webrtcvideocapturer.h" |
12 | 12 |
13 #ifdef HAVE_CONFIG_H | 13 #ifdef HAVE_CONFIG_H |
14 #include <config.h> | 14 #include <config.h> |
15 #endif | 15 #endif |
16 | 16 |
17 #ifdef HAVE_WEBRTC_VIDEO | 17 #ifdef HAVE_WEBRTC_VIDEO |
18 #include "webrtc/base/arraysize.h" | 18 #include "webrtc/base/arraysize.h" |
19 #include "webrtc/base/bind.h" | 19 #include "webrtc/base/bind.h" |
20 #include "webrtc/base/checks.h" | 20 #include "webrtc/base/checks.h" |
21 #include "webrtc/base/criticalsection.h" | 21 #include "webrtc/base/criticalsection.h" |
22 #include "webrtc/base/logging.h" | 22 #include "webrtc/base/logging.h" |
23 #include "webrtc/base/safe_conversions.h" | 23 #include "webrtc/base/safe_conversions.h" |
24 #include "webrtc/base/thread.h" | 24 #include "webrtc/base/thread.h" |
25 #include "webrtc/base/timeutils.h" | 25 #include "webrtc/base/timeutils.h" |
26 #include "webrtc/media/webrtc/webrtcvideoframe.h" | 26 #include "webrtc/media/engine/webrtcvideoframe.h" |
27 #include "webrtc/media/webrtc/webrtcvideoframefactory.h" | 27 #include "webrtc/media/engine/webrtcvideoframefactory.h" |
28 | 28 |
29 #include "webrtc/base/win32.h" // Need this to #include the impl files. | 29 #include "webrtc/base/win32.h" // Need this to #include the impl files. |
30 #include "webrtc/modules/video_capture/video_capture_factory.h" | 30 #include "webrtc/modules/video_capture/video_capture_factory.h" |
31 #include "webrtc/system_wrappers/include/field_trial.h" | 31 #include "webrtc/system_wrappers/include/field_trial.h" |
32 | 32 |
33 namespace cricket { | 33 namespace cricket { |
34 | 34 |
35 struct kVideoFourCCEntry { | 35 struct kVideoFourCCEntry { |
36 uint32_t fourcc; | 36 uint32_t fourcc; |
37 webrtc::RawVideoType webrtc_type; | 37 webrtc::RawVideoType webrtc_type; |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 // Convert units from VideoFrame RenderTimeMs to CapturedFrame (nanoseconds). | 422 // Convert units from VideoFrame RenderTimeMs to CapturedFrame (nanoseconds). |
423 time_stamp = sample.render_time_ms() * rtc::kNumNanosecsPerMillisec; | 423 time_stamp = sample.render_time_ms() * rtc::kNumNanosecsPerMillisec; |
424 data_size = rtc::checked_cast<uint32_t>(length); | 424 data_size = rtc::checked_cast<uint32_t>(length); |
425 data = buffer; | 425 data = buffer; |
426 rotation = sample.rotation(); | 426 rotation = sample.rotation(); |
427 } | 427 } |
428 | 428 |
429 } // namespace cricket | 429 } // namespace cricket |
430 | 430 |
431 #endif // HAVE_WEBRTC_VIDEO | 431 #endif // HAVE_WEBRTC_VIDEO |
OLD | NEW |