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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 private: | 102 private: |
103 struct EncoderSettings { | 103 struct EncoderSettings { |
104 VideoCodec video_codec; | 104 VideoCodec video_codec; |
105 VideoEncoderConfig config; | 105 VideoEncoderConfig config; |
106 }; | 106 }; |
107 | 107 |
108 // Implements EncodedImageCallback. The implementation routes encoded frames | 108 // Implements EncodedImageCallback. The implementation routes encoded frames |
109 // to the |payload_router_| and |config.pre_encode_callback| if set. | 109 // to the |payload_router_| and |config.pre_encode_callback| if set. |
110 // Called on an arbitrary encoder callback thread. | 110 // Called on an arbitrary encoder callback thread. |
111 EncodedImageCallback::Result OnEncodedImage( | 111 int32_t Encoded(const EncodedImage& encoded_image, |
112 const EncodedImage& encoded_image, | 112 const CodecSpecificInfo* codec_specific_info, |
113 const CodecSpecificInfo* codec_specific_info, | 113 const RTPFragmentationHeader* fragmentation) override; |
114 const RTPFragmentationHeader* fragmentation) override; | |
115 | 114 |
116 static bool EncoderThreadFunction(void* obj); | 115 static bool EncoderThreadFunction(void* obj); |
117 void EncoderProcess(); | 116 void EncoderProcess(); |
118 | 117 |
119 void ConfigureProtection(); | 118 void ConfigureProtection(); |
120 void ConfigureSsrcs(); | 119 void ConfigureSsrcs(); |
121 | 120 |
122 SendStatisticsProxy stats_proxy_; | 121 SendStatisticsProxy stats_proxy_; |
123 const VideoSendStream::Config config_; | 122 const VideoSendStream::Config config_; |
124 std::map<uint32_t, RtpState> suspended_ssrcs_; | 123 std::map<uint32_t, RtpState> suspended_ssrcs_; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; | 165 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; |
167 // RtpRtcp modules, declared here as they use other members on construction. | 166 // RtpRtcp modules, declared here as they use other members on construction. |
168 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 167 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
169 PayloadRouter payload_router_; | 168 PayloadRouter payload_router_; |
170 VideoCaptureInput input_; | 169 VideoCaptureInput input_; |
171 }; | 170 }; |
172 } // namespace internal | 171 } // namespace internal |
173 } // namespace webrtc | 172 } // namespace webrtc |
174 | 173 |
175 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ | 174 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ |
OLD | NEW |