| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Overrides EncodedImageCallback. | 74 // Overrides EncodedImageCallback. |
| 75 int32_t Encoded(const EncodedImage& encoded_image, | 75 int32_t Encoded(const EncodedImage& encoded_image, |
| 76 const CodecSpecificInfo* codec_specific_info, | 76 const CodecSpecificInfo* codec_specific_info, |
| 77 const RTPFragmentationHeader* fragmentation) override; | 77 const RTPFragmentationHeader* fragmentation) override; |
| 78 | 78 |
| 79 const Config& config() const { return config_; } | 79 const Config& config() const { return config_; } |
| 80 | 80 |
| 81 void SetSyncChannel(VoiceEngine* voice_engine, int audio_channel_id); | 81 void SetSyncChannel(VoiceEngine* voice_engine, int audio_channel_id); |
| 82 | 82 |
| 83 // NackSender | 83 // Implements NackSender. |
| 84 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; | 84 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; |
| 85 | 85 |
| 86 // KeyFrameRequestSender | 86 // Implements KeyFrameRequestSender. |
| 87 void RequestKeyFrame() override; | 87 void RequestKeyFrame() override; |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 static bool DecodeThreadFunction(void* ptr); | 90 static bool DecodeThreadFunction(void* ptr); |
| 91 void Decode(); | 91 void Decode(); |
| 92 | 92 |
| 93 TransportAdapter transport_adapter_; | 93 TransportAdapter transport_adapter_; |
| 94 EncodedFrameCallbackAdapter encoded_frame_proxy_; | 94 EncodedFrameCallbackAdapter encoded_frame_proxy_; |
| 95 const VideoReceiveStream::Config config_; | 95 const VideoReceiveStream::Config config_; |
| 96 ProcessThread* const process_thread_; | 96 ProcessThread* const process_thread_; |
| 97 Clock* const clock_; | 97 Clock* const clock_; |
| 98 | 98 |
| 99 rtc::PlatformThread decode_thread_; | 99 rtc::PlatformThread decode_thread_; |
| 100 | 100 |
| 101 CongestionController* const congestion_controller_; | 101 CongestionController* const congestion_controller_; |
| 102 CallStats* const call_stats_; | 102 CallStats* const call_stats_; |
| 103 VieRemb* const remb_; | |
| 104 | 103 |
| 105 vcm::VideoReceiver video_receiver_; | 104 vcm::VideoReceiver video_receiver_; |
| 106 IncomingVideoStream incoming_video_stream_; | 105 IncomingVideoStream incoming_video_stream_; |
| 107 ReceiveStatisticsProxy stats_proxy_; | 106 ReceiveStatisticsProxy stats_proxy_; |
| 108 RtpStreamReceiver rtp_stream_receiver_; | 107 RtpStreamReceiver rtp_stream_receiver_; |
| 109 VideoStreamDecoder video_stream_decoder_; | 108 VideoStreamDecoder video_stream_decoder_; |
| 110 ViESyncModule vie_sync_; | 109 ViESyncModule vie_sync_; |
| 111 RtpRtcp* const rtp_rtcp_; | |
| 112 | 110 |
| 113 std::unique_ptr<IvfFileWriter> ivf_writer_; | 111 std::unique_ptr<IvfFileWriter> ivf_writer_; |
| 114 }; | 112 }; |
| 115 } // namespace internal | 113 } // namespace internal |
| 116 } // namespace webrtc | 114 } // namespace webrtc |
| 117 | 115 |
| 118 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ | 116 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ |
| OLD | NEW |