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

Unified Diff: webrtc/video/video_send_stream.h

Issue 1763693002: Move encoder thread to VideoSendStream. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: feedback Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_send_stream.h
diff --git a/webrtc/video/video_send_stream.h b/webrtc/video/video_send_stream.h
index b9d6ea008ac0287b595cb84eae107a31422f5205..88d8abc4fb647d7c49940bbc48e627b1ef6a6592 100644
--- a/webrtc/video/video_send_stream.h
+++ b/webrtc/video/video_send_stream.h
@@ -75,6 +75,9 @@ class VideoSendStream : public webrtc::VideoSendStream,
int GetPaddingNeededBps() const;
private:
+ static bool EncoderThreadFunction(void* obj);
+ void EncoderProcess();
+
void ConfigureSsrcs();
SendStatisticsProxy stats_proxy_;
@@ -87,6 +90,10 @@ class VideoSendStream : public webrtc::VideoSendStream,
CongestionController* const congestion_controller_;
VieRemb* const remb_;
+ rtc::PlatformThread encoder_thread_;
+ rtc::Event encoder_wakeup_event_;
+ volatile int stop_encoder_thread_;
+
OveruseFrameDetector overuse_detector_;
PayloadRouter payload_router_;
EncoderStateFeedback encoder_feedback_;
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698