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 <algorithm> | 7 #include <algorithm> |
8 #include <cstring> | 8 #include <cstring> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/debug/trace_event.h" | |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/trace_event/trace_event.h" |
14 #include "media/cast/cast_defines.h" | 14 #include "media/cast/cast_defines.h" |
15 #include "media/cast/net/cast_transport_config.h" | 15 #include "media/cast/net/cast_transport_config.h" |
16 #include "media/cast/sender/external_video_encoder.h" | 16 #include "media/cast/sender/external_video_encoder.h" |
17 #include "media/cast/sender/video_encoder_impl.h" | 17 #include "media/cast/sender/video_encoder_impl.h" |
18 #include "media/cast/sender/video_frame_factory.h" | 18 #include "media/cast/sender/video_frame_factory.h" |
19 | 19 |
20 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
21 #include "media/cast/sender/h264_vt_encoder.h" | 21 #include "media/cast/sender/h264_vt_encoder.h" |
22 #endif | 22 #endif |
23 | 23 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 DCHECK_GE(frames_in_encoder_, 0); | 251 DCHECK_GE(frames_in_encoder_, 0); |
252 | 252 |
253 duration_in_encoder_ = | 253 duration_in_encoder_ = |
254 last_enqueued_frame_reference_time_ - encoded_frame->reference_time; | 254 last_enqueued_frame_reference_time_ - encoded_frame->reference_time; |
255 | 255 |
256 SendEncodedFrame(encoder_bitrate, encoded_frame.Pass()); | 256 SendEncodedFrame(encoder_bitrate, encoded_frame.Pass()); |
257 } | 257 } |
258 | 258 |
259 } // namespace cast | 259 } // namespace cast |
260 } // namespace media | 260 } // namespace media |
OLD | NEW |