| OLD | NEW |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 public: | 47 public: |
| 48 VideoReceiveStream(int num_cpu_cores, | 48 VideoReceiveStream(int num_cpu_cores, |
| 49 CongestionController* congestion_controller, | 49 CongestionController* congestion_controller, |
| 50 const VideoReceiveStream::Config& config, | 50 const VideoReceiveStream::Config& config, |
| 51 webrtc::VoiceEngine* voice_engine, | 51 webrtc::VoiceEngine* voice_engine, |
| 52 ProcessThread* process_thread, | 52 ProcessThread* process_thread, |
| 53 CallStats* call_stats, | 53 CallStats* call_stats, |
| 54 VieRemb* remb); | 54 VieRemb* remb); |
| 55 ~VideoReceiveStream() override; | 55 ~VideoReceiveStream() override; |
| 56 | 56 |
| 57 // webrtc::ReceiveStream implementation. | 57 void SignalNetworkState(NetworkState state); |
| 58 bool DeliverRtcp(const uint8_t* packet, size_t length); |
| 59 bool DeliverRtp(const uint8_t* packet, |
| 60 size_t length, |
| 61 const PacketTime& packet_time); |
| 62 |
| 63 // webrtc::VideoReceiveStream implementation. |
| 58 void Start() override; | 64 void Start() override; |
| 59 void Stop() override; | 65 void Stop() override; |
| 60 void SignalNetworkState(NetworkState state) override; | |
| 61 bool DeliverRtcp(const uint8_t* packet, size_t length) override; | |
| 62 bool DeliverRtp(const uint8_t* packet, | |
| 63 size_t length, | |
| 64 const PacketTime& packet_time) override; | |
| 65 | 66 |
| 66 // webrtc::VideoReceiveStream implementation. | |
| 67 webrtc::VideoReceiveStream::Stats GetStats() const override; | 67 webrtc::VideoReceiveStream::Stats GetStats() const override; |
| 68 | 68 |
| 69 // Overrides I420FrameCallback. | 69 // Overrides I420FrameCallback. |
| 70 void FrameCallback(VideoFrame* video_frame) override; | 70 void FrameCallback(VideoFrame* video_frame) override; |
| 71 | 71 |
| 72 // Overrides VideoRenderCallback. | 72 // Overrides VideoRenderCallback. |
| 73 int RenderFrame(const uint32_t /*stream_id*/, | 73 int RenderFrame(const uint32_t /*stream_id*/, |
| 74 const VideoFrame& video_frame) override; | 74 const VideoFrame& video_frame) override; |
| 75 | 75 |
| 76 // Overrides EncodedImageCallback. | 76 // Overrides EncodedImageCallback. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 ViEChannel vie_channel_; | 111 ViEChannel vie_channel_; |
| 112 ViESyncModule vie_sync_; | 112 ViESyncModule vie_sync_; |
| 113 RtpRtcp* const rtp_rtcp_; | 113 RtpRtcp* const rtp_rtcp_; |
| 114 | 114 |
| 115 std::unique_ptr<IvfFileWriter> ivf_writer_; | 115 std::unique_ptr<IvfFileWriter> ivf_writer_; |
| 116 }; | 116 }; |
| 117 } // namespace internal | 117 } // namespace internal |
| 118 } // namespace webrtc | 118 } // namespace webrtc |
| 119 | 119 |
| 120 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ | 120 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ |
| OLD | NEW |