OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 |
(...skipping 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 const Stats<double>& delay_stats() const { | 39 const Stats<double>& delay_stats() const { |
40 return delay_stats_; | 40 return delay_stats_; |
41 } | 41 } |
42 | 42 |
43 private: | 43 private: |
44 int64_t max_delay_us_; | 44 int64_t max_delay_us_; |
45 Stats<double> delay_stats_; | 45 Stats<double> delay_stats_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(DelayCapHelper); | 47 RTC_DISALLOW_COPY_AND_ASSIGN(DelayCapHelper); |
48 }; | 48 }; |
49 | 49 |
50 const FlowIds CreateFlowIds(const int *flow_ids_array, size_t num_flow_ids) { | 50 const FlowIds CreateFlowIds(const int *flow_ids_array, size_t num_flow_ids) { |
51 FlowIds flow_ids(&flow_ids_array[0], flow_ids_array + num_flow_ids); | 51 FlowIds flow_ids(&flow_ids_array[0], flow_ids_array + num_flow_ids); |
52 return flow_ids; | 52 return flow_ids; |
53 } | 53 } |
54 | 54 |
55 const FlowIds CreateFlowIdRange(int initial_value, int last_value) { | 55 const FlowIds CreateFlowIdRange(int initial_value, int last_value) { |
56 int size = last_value - initial_value + 1; | 56 int size = last_value - initial_value + 1; |
57 assert(size > 0); | 57 assert(size > 0); |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 uint32_t PeriodicKeyFrameSource::NextPacketSize(uint32_t frame_size, | 844 uint32_t PeriodicKeyFrameSource::NextPacketSize(uint32_t frame_size, |
845 uint32_t remaining_payload) { | 845 uint32_t remaining_payload) { |
846 uint32_t fragments = | 846 uint32_t fragments = |
847 (frame_size + (kMaxPayloadSizeBytes - 1)) / kMaxPayloadSizeBytes; | 847 (frame_size + (kMaxPayloadSizeBytes - 1)) / kMaxPayloadSizeBytes; |
848 uint32_t avg_size = (frame_size + fragments - 1) / fragments; | 848 uint32_t avg_size = (frame_size + fragments - 1) / fragments; |
849 return std::min(avg_size, remaining_payload); | 849 return std::min(avg_size, remaining_payload); |
850 } | 850 } |
851 } // namespace bwe | 851 } // namespace bwe |
852 } // namespace testing | 852 } // namespace testing |
853 } // namespace webrtc | 853 } // namespace webrtc |
OLD | NEW |