| OLD | NEW |
| 1 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 1 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 2 * | 2 * |
| 3 * Use of this source code is governed by a BSD-style license | 3 * Use of this source code is governed by a BSD-style license |
| 4 * that can be found in the LICENSE file in the root of the source | 4 * that can be found in the LICENSE file in the root of the source |
| 5 * tree. An additional intellectual property rights grant can be found | 5 * tree. An additional intellectual property rights grant can be found |
| 6 * in the file PATENTS. All contributing project authors may | 6 * in the file PATENTS. All contributing project authors may |
| 7 * be found in the AUTHORS file in the root of the source tree. | 7 * be found in the AUTHORS file in the root of the source tree. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #include "webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h" | 10 #include "webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 webrtc::TemporalLayers* ScreenshareTemporalLayersFactory::Create( | 56 webrtc::TemporalLayers* ScreenshareTemporalLayersFactory::Create( |
| 57 int simulcast_id, | 57 int simulcast_id, |
| 58 int num_temporal_layers, | 58 int num_temporal_layers, |
| 59 uint8_t initial_tl0_pic_idx) const { | 59 uint8_t initial_tl0_pic_idx) const { |
| 60 webrtc::TemporalLayers* tl; | 60 webrtc::TemporalLayers* tl; |
| 61 if (simulcast_id == 0) { | 61 if (simulcast_id == 0) { |
| 62 tl = new webrtc::ScreenshareLayers(num_temporal_layers, rand(), | 62 tl = new webrtc::ScreenshareLayers(num_temporal_layers, rand(), |
| 63 webrtc::Clock::GetRealTimeClock()); | 63 webrtc::Clock::GetRealTimeClock()); |
| 64 } else { | 64 } else { |
| 65 RealTimeTemporalLayersFactory rt_tl_factory; | 65 TemporalLayersFactory rt_tl_factory; |
| 66 tl = rt_tl_factory.Create(simulcast_id, num_temporal_layers, rand()); | 66 tl = rt_tl_factory.Create(simulcast_id, num_temporal_layers, rand()); |
| 67 } | 67 } |
| 68 if (listener_) | 68 if (listener_) |
| 69 listener_->OnTemporalLayersCreated(simulcast_id, tl); | 69 listener_->OnTemporalLayersCreated(simulcast_id, tl); |
| 70 return tl; | 70 return tl; |
| 71 } | 71 } |
| 72 | 72 |
| 73 ScreenshareLayers::ScreenshareLayers(int num_temporal_layers, | 73 ScreenshareLayers::ScreenshareLayers(int num_temporal_layers, |
| 74 uint8_t initial_tl0_pic_idx, | 74 uint8_t initial_tl0_pic_idx, |
| 75 Clock* clock) | 75 Clock* clock) |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.Screenshare.Layer1.Qp", | 416 RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.Screenshare.Layer1.Qp", |
| 417 stats_.tl1_qp_sum_ / stats_.num_tl1_frames_); | 417 stats_.tl1_qp_sum_ / stats_.num_tl1_frames_); |
| 418 RTC_HISTOGRAM_COUNTS_10000( | 418 RTC_HISTOGRAM_COUNTS_10000( |
| 419 "WebRTC.Video.Screenshare.Layer1.TargetBitrate", | 419 "WebRTC.Video.Screenshare.Layer1.TargetBitrate", |
| 420 stats_.tl1_target_bitrate_sum_ / stats_.num_tl1_frames_); | 420 stats_.tl1_target_bitrate_sum_ / stats_.num_tl1_frames_); |
| 421 } | 421 } |
| 422 } | 422 } |
| 423 } | 423 } |
| 424 | 424 |
| 425 } // namespace webrtc | 425 } // namespace webrtc |
| OLD | NEW |