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

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

Issue 2764573002: Deliver video frames on Android, on the decode thread. (Closed)
Patch Set: Update comments Created 3 years, 8 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void OnCompleteFrame( 102 void OnCompleteFrame(
103 std::unique_ptr<video_coding::FrameObject> frame) override; 103 std::unique_ptr<video_coding::FrameObject> frame) override;
104 104
105 // Implements Syncable. 105 // Implements Syncable.
106 int id() const override; 106 int id() const override;
107 rtc::Optional<Syncable::Info> GetInfo() const override; 107 rtc::Optional<Syncable::Info> GetInfo() const override;
108 uint32_t GetPlayoutTimestamp() const override; 108 uint32_t GetPlayoutTimestamp() const override;
109 void SetMinimumPlayoutDelay(int delay_ms) override; 109 void SetMinimumPlayoutDelay(int delay_ms) override;
110 110
111 private: 111 private:
112 static bool DecodeThreadFunction(void* ptr); 112 static void DecodeThreadFunction(void* ptr);
113 bool Decode(); 113 bool Decode();
114 114
115 rtc::ThreadChecker worker_thread_checker_; 115 rtc::ThreadChecker worker_thread_checker_;
116 rtc::ThreadChecker module_process_thread_checker_; 116 rtc::ThreadChecker module_process_thread_checker_;
117 117
118 TransportAdapter transport_adapter_; 118 TransportAdapter transport_adapter_;
119 const VideoReceiveStream::Config config_; 119 const VideoReceiveStream::Config config_;
120 const int num_cpu_cores_; 120 const int num_cpu_cores_;
121 ProcessThread* const process_thread_; 121 ProcessThread* const process_thread_;
122 Clock* const clock_; 122 Clock* const clock_;
(...skipping 14 matching lines...) Expand all
137 std::unique_ptr<IvfFileWriter> ivf_writer_ GUARDED_BY(ivf_writer_lock_); 137 std::unique_ptr<IvfFileWriter> ivf_writer_ GUARDED_BY(ivf_writer_lock_);
138 138
139 // Members for the new jitter buffer experiment. 139 // Members for the new jitter buffer experiment.
140 std::unique_ptr<VCMJitterEstimator> jitter_estimator_; 140 std::unique_ptr<VCMJitterEstimator> jitter_estimator_;
141 std::unique_ptr<video_coding::FrameBuffer> frame_buffer_; 141 std::unique_ptr<video_coding::FrameBuffer> frame_buffer_;
142 }; 142 };
143 } // namespace internal 143 } // namespace internal
144 } // namespace webrtc 144 } // namespace webrtc
145 145
146 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 146 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc ('k') | webrtc/video/video_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698