OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/video_sender/video_encoder.h" | 5 #include "media/cast/video_sender/video_encoder.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
10 | 11 |
11 namespace media { | 12 namespace media { |
12 namespace cast { | 13 namespace cast { |
13 | 14 |
14 VideoEncoder::VideoEncoder(scoped_refptr<CastEnvironment> cast_environment, | 15 VideoEncoder::VideoEncoder(scoped_refptr<CastEnvironment> cast_environment, |
15 const VideoSenderConfig& video_config, | 16 const VideoSenderConfig& video_config, |
16 uint8 max_unacked_frames) | 17 uint8 max_unacked_frames) |
17 : video_config_(video_config), | 18 : video_config_(video_config), |
18 cast_environment_(cast_environment), | 19 cast_environment_(cast_environment), |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void VideoEncoder::LatestFrameIdToReference(uint32 frame_id) { | 113 void VideoEncoder::LatestFrameIdToReference(uint32 frame_id) { |
113 dynamic_config_.latest_frame_id_to_reference = frame_id; | 114 dynamic_config_.latest_frame_id_to_reference = frame_id; |
114 } | 115 } |
115 | 116 |
116 int VideoEncoder::NumberOfSkippedFrames() const { | 117 int VideoEncoder::NumberOfSkippedFrames() const { |
117 return skip_count_; | 118 return skip_count_; |
118 } | 119 } |
119 | 120 |
120 } // namespace cast | 121 } // namespace cast |
121 } // namespace media | 122 } // namespace media |
OLD | NEW |