| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 int32_t Start(); | 49 int32_t Start(); |
| 50 int32_t Stop(); | 50 int32_t Stop(); |
| 51 | 51 |
| 52 // Clear all buffers. | 52 // Clear all buffers. |
| 53 int32_t Reset(); | 53 int32_t Reset(); |
| 54 | 54 |
| 55 // Properties. | 55 // Properties. |
| 56 uint32_t StreamId() const; | 56 uint32_t StreamId() const; |
| 57 uint32_t IncomingRate() const; | 57 uint32_t IncomingRate() const; |
| 58 | 58 |
| 59 void SetStartImage(const VideoFrame& video_frame); | 59 int32_t SetStartImage(const VideoFrame& video_frame); |
| 60 | 60 |
| 61 void SetTimeoutImage(const VideoFrame& video_frame, | 61 int32_t SetTimeoutImage(const VideoFrame& video_frame, |
| 62 const uint32_t timeout); | 62 const uint32_t timeout); |
| 63 | 63 |
| 64 int32_t SetExpectedRenderDelay(int32_t delay_ms); | 64 int32_t SetExpectedRenderDelay(int32_t delay_ms); |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 static bool IncomingVideoStreamThreadFun(void* obj); | 67 static bool IncomingVideoStreamThreadFun(void* obj); |
| 68 bool IncomingVideoStreamProcess(); | 68 bool IncomingVideoStreamProcess(); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 enum { kEventStartupTimeMs = 10 }; | 71 enum { kEventStartupTimeMs = 10 }; |
| 72 enum { kEventMaxWaitTimeMs = 100 }; | 72 enum { kEventMaxWaitTimeMs = 100 }; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 98 int64_t last_render_time_ms_ GUARDED_BY(thread_critsect_); | 98 int64_t last_render_time_ms_ GUARDED_BY(thread_critsect_); |
| 99 VideoFrame temp_frame_ GUARDED_BY(thread_critsect_); | 99 VideoFrame temp_frame_ GUARDED_BY(thread_critsect_); |
| 100 VideoFrame start_image_ GUARDED_BY(thread_critsect_); | 100 VideoFrame start_image_ GUARDED_BY(thread_critsect_); |
| 101 VideoFrame timeout_image_ GUARDED_BY(thread_critsect_); | 101 VideoFrame timeout_image_ GUARDED_BY(thread_critsect_); |
| 102 uint32_t timeout_time_ GUARDED_BY(thread_critsect_); | 102 uint32_t timeout_time_ GUARDED_BY(thread_critsect_); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace webrtc | 105 } // namespace webrtc |
| 106 | 106 |
| 107 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_INCOMING_VIDEO_STREAM_H_ | 107 #endif // WEBRTC_COMMON_VIDEO_INCLUDE_INCOMING_VIDEO_STREAM_H_ |
| OLD | NEW |