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

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp.h

Issue 2479643002: Revert of Remove deprected functions from EncodedImageCallback and RtpRtcp (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // packetization. 220 // packetization.
221 // |frame_type| - type of frame to send 221 // |frame_type| - type of frame to send
222 // |payload_type| - payload type of frame to send 222 // |payload_type| - payload type of frame to send
223 // |timestamp| - timestamp of frame to send 223 // |timestamp| - timestamp of frame to send
224 // |payload_data| - payload buffer of frame to send 224 // |payload_data| - payload buffer of frame to send
225 // |payload_size| - size of payload buffer to send 225 // |payload_size| - size of payload buffer to send
226 // |fragmentation| - fragmentation offset data for fragmented frames such 226 // |fragmentation| - fragmentation offset data for fragmented frames such
227 // as layers or RED 227 // as layers or RED
228 // |transport_frame_id_out| - set to RTP timestamp. 228 // |transport_frame_id_out| - set to RTP timestamp.
229 // Returns true on success. 229 // Returns true on success.
230
230 virtual bool SendOutgoingData(FrameType frame_type, 231 virtual bool SendOutgoingData(FrameType frame_type,
231 int8_t payload_type, 232 int8_t payload_type,
232 uint32_t timestamp, 233 uint32_t timestamp,
233 int64_t capture_time_ms, 234 int64_t capture_time_ms,
234 const uint8_t* payload_data, 235 const uint8_t* payload_data,
235 size_t payload_size, 236 size_t payload_size,
236 const RTPFragmentationHeader* fragmentation, 237 const RTPFragmentationHeader* fragmentation,
237 const RTPVideoHeader* rtp_video_header, 238 const RTPVideoHeader* rtp_video_header,
238 uint32_t* transport_frame_id_out) = 0; 239 uint32_t* transport_frame_id_out) = 0;
239 240
241 // Deprecated version of the method above.
242 int32_t SendOutgoingData(
243 FrameType frame_type,
244 int8_t payload_type,
245 uint32_t timestamp,
246 int64_t capture_time_ms,
247 const uint8_t* payload_data,
248 size_t payload_size,
249 const RTPFragmentationHeader* fragmentation = nullptr,
250 const RTPVideoHeader* rtp_video_header = nullptr) {
251 return SendOutgoingData(frame_type, payload_type, timestamp,
252 capture_time_ms, payload_data, payload_size,
253 fragmentation, rtp_video_header,
254 /*frame_id_out=*/nullptr)
255 ? 0
256 : -1;
257 }
258
240 virtual bool TimeToSendPacket(uint32_t ssrc, 259 virtual bool TimeToSendPacket(uint32_t ssrc,
241 uint16_t sequence_number, 260 uint16_t sequence_number,
242 int64_t capture_time_ms, 261 int64_t capture_time_ms,
243 bool retransmission, 262 bool retransmission,
244 int probe_cluster_id) = 0; 263 int probe_cluster_id) = 0;
245 264
246 virtual size_t TimeToSendPadding(size_t bytes, int probe_cluster_id) = 0; 265 virtual size_t TimeToSendPadding(size_t bytes, int probe_cluster_id) = 0;
247 266
248 // Called on generation of new statistics after an RTP send. 267 // Called on generation of new statistics after an RTP send.
249 virtual void RegisterSendChannelRtpStatisticsCallback( 268 virtual void RegisterSendChannelRtpStatisticsCallback(
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; 471 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0;
453 472
454 // Sends a request for a keyframe. 473 // Sends a request for a keyframe.
455 // Returns -1 on failure else 0. 474 // Returns -1 on failure else 0.
456 virtual int32_t RequestKeyFrame() = 0; 475 virtual int32_t RequestKeyFrame() = 0;
457 }; 476 };
458 477
459 } // namespace webrtc 478 } // namespace webrtc
460 479
461 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 480 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
OLDNEW
« no previous file with comments | « webrtc/api/android/jni/androidmediaencoder_jni.cc ('k') | webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698