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 int32_t Encoded(const EncodedImage& encoded_image, | 111 EncodedImageCallback::Result OnEncodedImage( |
112 const CodecSpecificInfo* codec_specific_info, | 112 const EncodedImage& encoded_image, |
113 const RTPFragmentationHeader* fragmentation) override; | 113 const CodecSpecificInfo* codec_specific_info, |
| 114 const RTPFragmentationHeader* fragmentation) override; |
114 | 115 |
115 static bool EncoderThreadFunction(void* obj); | 116 static bool EncoderThreadFunction(void* obj); |
116 void EncoderProcess(); | 117 void EncoderProcess(); |
117 | 118 |
118 void ConfigureProtection(); | 119 void ConfigureProtection(); |
119 void ConfigureSsrcs(); | 120 void ConfigureSsrcs(); |
120 | 121 |
121 SendStatisticsProxy stats_proxy_; | 122 SendStatisticsProxy stats_proxy_; |
122 const VideoSendStream::Config config_; | 123 const VideoSendStream::Config config_; |
123 std::map<uint32_t, RtpState> suspended_ssrcs_; | 124 std::map<uint32_t, RtpState> suspended_ssrcs_; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; | 164 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; |
164 // RtpRtcp modules, declared here as they use other members on construction. | 165 // RtpRtcp modules, declared here as they use other members on construction. |
165 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 166 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
166 PayloadRouter payload_router_; | 167 PayloadRouter payload_router_; |
167 VideoCaptureInput input_; | 168 VideoCaptureInput input_; |
168 }; | 169 }; |
169 } // namespace internal | 170 } // namespace internal |
170 } // namespace webrtc | 171 } // namespace webrtc |
171 | 172 |
172 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ | 173 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ |
OLD | NEW |