OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/cast/sender/video_sender.h" | 5 #include "media/cast/sender/video_sender.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <cmath> | 10 #include <cmath> |
9 #include <cstring> | 11 #include <cstring> |
10 | 12 |
11 #include "base/bind.h" | 13 #include "base/bind.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
14 #include "media/cast/cast_defines.h" | 16 #include "media/cast/cast_defines.h" |
15 #include "media/cast/net/cast_transport_config.h" | 17 #include "media/cast/net/cast_transport_config.h" |
16 #include "media/cast/sender/performance_metrics_overlay.h" | 18 #include "media/cast/sender/performance_metrics_overlay.h" |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 media::VideoFrameMetadata::RESOURCE_UTILIZATION, | 383 media::VideoFrameMetadata::RESOURCE_UTILIZATION, |
382 encoded_frame->dependency == EncodedFrame::KEY ? | 384 encoded_frame->dependency == EncodedFrame::KEY ? |
383 std::min(1.0, attenuated_utilization) : attenuated_utilization); | 385 std::min(1.0, attenuated_utilization) : attenuated_utilization); |
384 } | 386 } |
385 | 387 |
386 SendEncodedFrame(encoder_bitrate, encoded_frame.Pass()); | 388 SendEncodedFrame(encoder_bitrate, encoded_frame.Pass()); |
387 } | 389 } |
388 | 390 |
389 } // namespace cast | 391 } // namespace cast |
390 } // namespace media | 392 } // namespace media |
OLD | NEW |