Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: webrtc/video/vie_encoder.h

Issue 1932683002: Remove ViEEncoder::SetNetworkStatus (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@move_pacer
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
54 SendStatisticsProxy* stats_proxy, 54 SendStatisticsProxy* stats_proxy,
55 OveruseFrameDetector* overuse_detector, 55 OveruseFrameDetector* overuse_detector,
56 PayloadRouter* payload_router, 56 PayloadRouter* payload_router,
57 EncodedImageCallback* post_encode_callback); 57 EncodedImageCallback* post_encode_callback);
58 ~ViEEncoder(); 58 ~ViEEncoder();
59 59
60 bool Init(); 60 bool Init();
61 61
62 vcm::VideoSender* video_sender(); 62 vcm::VideoSender* video_sender();
63 63
64 void SetNetworkTransmissionState(bool is_transmitting);
65
66 // Returns the id of the owning channel. 64 // Returns the id of the owning channel.
67 int Owner() const; 65 int Owner() const;
68 66
69 // Drops incoming packets before they get to the encoder. 67 // Drops incoming packets before they get to the encoder.
70 void Pause(); 68 void Pause();
71 void Restart(); 69 void Restart();
72 70
73 // Codec settings. 71 // Codec settings.
74 int32_t RegisterExternalEncoder(VideoEncoder* encoder, 72 int32_t RegisterExternalEncoder(VideoEncoder* encoder,
75 uint8_t pl_type, 73 uint8_t pl_type,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 PayloadRouter* const send_payload_router_; 132 PayloadRouter* const send_payload_router_;
135 EncodedImageCallback* const post_encode_callback_; 133 EncodedImageCallback* const post_encode_callback_;
136 134
137 // The time we last received an input frame or encoded frame. This is used to 135 // The time we last received an input frame or encoded frame. This is used to
138 // track when video is stopped long enough that we also want to stop sending 136 // track when video is stopped long enough that we also want to stop sending
139 // padding. 137 // padding.
140 int64_t time_of_last_frame_activity_ms_ GUARDED_BY(data_cs_); 138 int64_t time_of_last_frame_activity_ms_ GUARDED_BY(data_cs_);
141 VideoCodec encoder_config_ GUARDED_BY(data_cs_); 139 VideoCodec encoder_config_ GUARDED_BY(data_cs_);
142 int min_transmit_bitrate_bps_ GUARDED_BY(data_cs_); 140 int min_transmit_bitrate_bps_ GUARDED_BY(data_cs_);
143 uint32_t last_observed_bitrate_bps_ GUARDED_BY(data_cs_); 141 uint32_t last_observed_bitrate_bps_ GUARDED_BY(data_cs_);
144 bool network_is_transmitting_ GUARDED_BY(data_cs_);
145 bool encoder_paused_ GUARDED_BY(data_cs_); 142 bool encoder_paused_ GUARDED_BY(data_cs_);
146 bool encoder_paused_and_dropped_frame_ GUARDED_BY(data_cs_); 143 bool encoder_paused_and_dropped_frame_ GUARDED_BY(data_cs_);
147 std::vector<int64_t> time_last_intra_request_ms_ GUARDED_BY(data_cs_); 144 std::vector<int64_t> time_last_intra_request_ms_ GUARDED_BY(data_cs_);
148 145
149 ProcessThread* module_process_thread_; 146 ProcessThread* module_process_thread_;
150 147
151 bool has_received_sli_ GUARDED_BY(data_cs_); 148 bool has_received_sli_ GUARDED_BY(data_cs_);
152 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); 149 uint8_t picture_id_sli_ GUARDED_BY(data_cs_);
153 bool has_received_rpsi_ GUARDED_BY(data_cs_); 150 bool has_received_rpsi_ GUARDED_BY(data_cs_);
154 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); 151 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_);
155 152
156 bool video_suspended_ GUARDED_BY(data_cs_); 153 bool video_suspended_ GUARDED_BY(data_cs_);
157 154
158 std::unique_ptr<IvfFileWriter> file_writers_[kMaxLayers] GUARDED_BY(data_cs_); 155 std::unique_ptr<IvfFileWriter> file_writers_[kMaxLayers] GUARDED_BY(data_cs_);
159 }; 156 };
160 157
161 } // namespace webrtc 158 } // namespace webrtc
162 159
163 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ 160 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698