| 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/engine/webrtcvideocapturer.h" | 11 #include "webrtc/media/engine/webrtcvideocapturer.h" |
| 12 | 12 |
| 13 #ifdef HAVE_CONFIG_H | |
| 14 #include <config.h> | |
| 15 #endif | |
| 16 | |
| 17 #include "webrtc/base/arraysize.h" | 13 #include "webrtc/base/arraysize.h" |
| 18 #include "webrtc/base/bind.h" | 14 #include "webrtc/base/bind.h" |
| 19 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
| 20 #include "webrtc/base/criticalsection.h" | 16 #include "webrtc/base/criticalsection.h" |
| 21 #include "webrtc/base/logging.h" | 17 #include "webrtc/base/logging.h" |
| 22 #include "webrtc/base/safe_conversions.h" | 18 #include "webrtc/base/safe_conversions.h" |
| 23 #include "webrtc/base/thread.h" | 19 #include "webrtc/base/thread.h" |
| 24 #include "webrtc/base/timeutils.h" | 20 #include "webrtc/base/timeutils.h" |
| 25 #include "webrtc/media/engine/webrtcvideoframe.h" | 21 #include "webrtc/media/engine/webrtcvideoframe.h" |
| 26 #include "webrtc/media/engine/webrtcvideoframefactory.h" | 22 #include "webrtc/media/engine/webrtcvideoframefactory.h" |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 pixel_width = 1; | 411 pixel_width = 1; |
| 416 pixel_height = 1; | 412 pixel_height = 1; |
| 417 // Convert units from VideoFrame RenderTimeMs to CapturedFrame (nanoseconds). | 413 // Convert units from VideoFrame RenderTimeMs to CapturedFrame (nanoseconds). |
| 418 time_stamp = sample.render_time_ms() * rtc::kNumNanosecsPerMillisec; | 414 time_stamp = sample.render_time_ms() * rtc::kNumNanosecsPerMillisec; |
| 419 data_size = rtc::checked_cast<uint32_t>(length); | 415 data_size = rtc::checked_cast<uint32_t>(length); |
| 420 data = buffer; | 416 data = buffer; |
| 421 rotation = sample.rotation(); | 417 rotation = sample.rotation(); |
| 422 } | 418 } |
| 423 | 419 |
| 424 } // namespace cricket | 420 } // namespace cricket |
| OLD | NEW |