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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 private: | 36 private: |
37 enum { kEventStartupTimeMs = 10 }; | 37 enum { kEventStartupTimeMs = 10 }; |
38 enum { kEventMaxWaitTimeMs = 100 }; | 38 enum { kEventMaxWaitTimeMs = 100 }; |
39 enum { kFrameRatePeriodMs = 1000 }; | 39 enum { kFrameRatePeriodMs = 1000 }; |
40 | 40 |
41 void OnFrame(const VideoFrame& video_frame) override; | 41 void OnFrame(const VideoFrame& video_frame) override; |
42 | 42 |
43 rtc::ThreadChecker main_thread_checker_; | 43 rtc::ThreadChecker main_thread_checker_; |
44 rtc::ThreadChecker render_thread_checker_; | 44 rtc::ThreadChecker render_thread_checker_; |
45 rtc::ThreadChecker decoder_thread_checker_; | |
46 | 45 |
47 rtc::CriticalSection buffer_critsect_; | 46 rtc::CriticalSection buffer_critsect_; |
48 rtc::PlatformThread incoming_render_thread_; | 47 rtc::PlatformThread incoming_render_thread_; |
49 std::unique_ptr<EventTimerWrapper> deliver_buffer_event_; | 48 std::unique_ptr<EventTimerWrapper> deliver_buffer_event_; |
50 | 49 |
51 rtc::VideoSinkInterface<VideoFrame>* const external_callback_; | 50 rtc::VideoSinkInterface<VideoFrame>* const external_callback_; |
52 std::unique_ptr<VideoRenderFrames> render_buffers_ | 51 std::unique_ptr<VideoRenderFrames> render_buffers_ |
53 GUARDED_BY(buffer_critsect_); | 52 GUARDED_BY(buffer_critsect_); |
54 }; | 53 }; |
55 | 54 |
56 } // namespace webrtc | 55 } // namespace webrtc |
57 | 56 |
58 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_INCOMING_VIDEO_STREAM_H_ | 57 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_INCOMING_VIDEO_STREAM_H_ |
OLD | NEW |