Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: webrtc/video/video_send_stream.h

Issue 2203233002: Revert of Add EncodedImageCallback::OnEncodedImage(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698