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

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

Issue 2089773002: 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 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; 166 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_;
166 // RtpRtcp modules, declared here as they use other members on construction. 167 // RtpRtcp modules, declared here as they use other members on construction.
167 const std::vector<RtpRtcp*> rtp_rtcp_modules_; 168 const std::vector<RtpRtcp*> rtp_rtcp_modules_;
168 PayloadRouter payload_router_; 169 PayloadRouter payload_router_;
169 VideoCaptureInput input_; 170 VideoCaptureInput input_;
170 }; 171 };
171 } // namespace internal 172 } // namespace internal
172 } // namespace webrtc 173 } // namespace webrtc
173 174
174 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ 175 #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