| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 public EncodedImageCallback, | 54 public EncodedImageCallback, |
| 55 public VCMPacketizationCallback, | 55 public VCMPacketizationCallback, |
| 56 public VCMSendStatisticsCallback { | 56 public VCMSendStatisticsCallback { |
| 57 public: | 57 public: |
| 58 friend class ViEBitrateObserver; | 58 friend class ViEBitrateObserver; |
| 59 | 59 |
| 60 ViEEncoder(uint32_t number_of_cores, | 60 ViEEncoder(uint32_t number_of_cores, |
| 61 const std::vector<uint32_t>& ssrcs, | 61 const std::vector<uint32_t>& ssrcs, |
| 62 ProcessThread* module_process_thread, | 62 ProcessThread* module_process_thread, |
| 63 SendStatisticsProxy* stats_proxy, | 63 SendStatisticsProxy* stats_proxy, |
| 64 OveruseFrameDetector* overuse_detector); | 64 // TODO(nisse): Used only for tests, delete? |
| 65 rtc::VideoSinkInterface<VideoFrame>* pre_encode_callback, |
| 66 OveruseFrameDetector* overuse_detector, |
| 67 PacedSender* pacer); |
| 65 ~ViEEncoder(); | 68 ~ViEEncoder(); |
| 66 | 69 |
| 67 bool Init(); | 70 bool Init(); |
| 68 | 71 |
| 69 vcm::VideoSender* video_sender(); | 72 vcm::VideoSender* video_sender(); |
| 70 | 73 |
| 71 void SetNetworkTransmissionState(bool is_transmitting); | 74 void SetNetworkTransmissionState(bool is_transmitting); |
| 72 | 75 |
| 73 // Returns the id of the owning channel. | 76 // Returns the id of the owning channel. |
| 74 int Owner() const; | 77 int Owner() const; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 const uint32_t number_of_cores_; | 136 const uint32_t number_of_cores_; |
| 134 const std::vector<uint32_t> ssrcs_; | 137 const std::vector<uint32_t> ssrcs_; |
| 135 | 138 |
| 136 const std::unique_ptr<VideoProcessing> vp_; | 139 const std::unique_ptr<VideoProcessing> vp_; |
| 137 const std::unique_ptr<QMVideoSettingsCallback> qm_callback_; | 140 const std::unique_ptr<QMVideoSettingsCallback> qm_callback_; |
| 138 vcm::VideoSender video_sender_; | 141 vcm::VideoSender video_sender_; |
| 139 | 142 |
| 140 rtc::CriticalSection data_cs_; | 143 rtc::CriticalSection data_cs_; |
| 141 | 144 |
| 142 SendStatisticsProxy* const stats_proxy_; | 145 SendStatisticsProxy* const stats_proxy_; |
| 146 rtc::VideoSinkInterface<VideoFrame>* const pre_encode_callback_; |
| 143 OveruseFrameDetector* const overuse_detector_; | 147 OveruseFrameDetector* const overuse_detector_; |
| 148 PacedSender* const pacer_; |
| 144 | 149 |
| 145 // The time we last received an input frame or encoded frame. This is used to | 150 // The time we last received an input frame or encoded frame. This is used to |
| 146 // track when video is stopped long enough that we also want to stop sending | 151 // track when video is stopped long enough that we also want to stop sending |
| 147 // padding. | 152 // padding. |
| 148 int64_t time_of_last_frame_activity_ms_ GUARDED_BY(data_cs_); | 153 int64_t time_of_last_frame_activity_ms_ GUARDED_BY(data_cs_); |
| 149 VideoCodec encoder_config_ GUARDED_BY(data_cs_); | 154 VideoCodec encoder_config_ GUARDED_BY(data_cs_); |
| 150 int min_transmit_bitrate_bps_ GUARDED_BY(data_cs_); | 155 int min_transmit_bitrate_bps_ GUARDED_BY(data_cs_); |
| 151 uint32_t last_observed_bitrate_bps_ GUARDED_BY(data_cs_); | 156 uint32_t last_observed_bitrate_bps_ GUARDED_BY(data_cs_); |
| 152 bool network_is_transmitting_ GUARDED_BY(data_cs_); | 157 bool network_is_transmitting_ GUARDED_BY(data_cs_); |
| 153 bool encoder_paused_ GUARDED_BY(data_cs_); | 158 bool encoder_paused_ GUARDED_BY(data_cs_); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 165 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); | 170 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
| 166 | 171 |
| 167 bool video_suspended_ GUARDED_BY(data_cs_); | 172 bool video_suspended_ GUARDED_BY(data_cs_); |
| 168 | 173 |
| 169 std::unique_ptr<IvfFileWriter> file_writers_[kMaxLayers] GUARDED_BY(data_cs_); | 174 std::unique_ptr<IvfFileWriter> file_writers_[kMaxLayers] GUARDED_BY(data_cs_); |
| 170 }; | 175 }; |
| 171 | 176 |
| 172 } // namespace webrtc | 177 } // namespace webrtc |
| 173 | 178 |
| 174 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 179 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
| OLD | NEW |