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

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

Issue 2089773002: Add EncodedImageCallback::OnEncodedImage(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: update SendOutgoingData() 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
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 */ 287 */
288 virtual void BitrateSent(uint32_t* totalRate, 288 virtual void BitrateSent(uint32_t* totalRate,
289 uint32_t* videoRate, 289 uint32_t* videoRate,
290 uint32_t* fecRate, 290 uint32_t* fecRate,
291 uint32_t* nackRate) const = 0; 291 uint32_t* nackRate) const = 0;
292 292
293 /* 293 /*
294 * Used by the codec module to deliver a video or audio frame for 294 * Used by the codec module to deliver a video or audio frame for
295 * packetization. 295 * packetization.
296 * 296 *
297 * frameType - type of frame to send 297 * frame_type - type of frame to send
298 * payloadType - payload type of frame to send 298 * payload_type - payload type of frame to send
299 * timestamp - timestamp of frame to send 299 * timestamp - timestamp of frame to send
300 * payloadData - payload buffer of frame to send 300 * payload_data - payload buffer of frame to send
301 * payloadSize - size of payload buffer to send 301 * payload_size - size of payload buffer to send
302 * fragmentation - fragmentation offset data for fragmented frames such 302 * fragmentation - fragmentation offset data for fragmented frames such
303 * as layers or RED 303 * as layers or RED
304 * 304 *
305 * return -1 on failure else 0 305 * return -1 on failure else 0
306 */ 306 */
307 virtual int32_t SendOutgoingData( 307 virtual int32_t SendOutgoingData(
308 FrameType frameType, 308 FrameType frame_type,
309 int8_t payloadType, 309 int8_t payload_type,
310 uint32_t timeStamp, 310 uint32_t timestamp,
311 int64_t capture_time_ms, 311 int64_t capture_time_ms,
312 const uint8_t* payloadData, 312 const uint8_t* payload_data,
313 size_t payloadSize, 313 size_t payload_size,
314 const RTPFragmentationHeader* fragmentation = NULL, 314 const RTPFragmentationHeader* fragmentation,
315 const RTPVideoHeader* rtpVideoHdr = NULL) = 0; 315 const RTPVideoHeader* rtp_video_header,
316 uint32_t* frame_id_out) = 0;
317
318 // Deprecated version of the methood above.
stefan-webrtc 2016/07/28 08:51:17 method
Sergey Ulanov 2016/07/28 20:52:46 Done.
319 int32_t SendOutgoingData(
320 FrameType frame_type,
321 int8_t payload_type,
322 uint32_t timestamp,
323 int64_t capture_time_ms,
324 const uint8_t* payload_data,
325 size_t payload_size,
326 const RTPFragmentationHeader* fragmentation = nullptr,
327 const RTPVideoHeader* rtp_video_header = nullptr) {
328 return SendOutgoingData(frame_type, payload_type, timestamp,
329 capture_time_ms, payload_data, payload_size,
330 fragmentation, rtp_video_header,
331 /*frame_id_out=*/nullptr);
332 }
316 333
317 virtual bool TimeToSendPacket(uint32_t ssrc, 334 virtual bool TimeToSendPacket(uint32_t ssrc,
318 uint16_t sequence_number, 335 uint16_t sequence_number,
319 int64_t capture_time_ms, 336 int64_t capture_time_ms,
320 bool retransmission, 337 bool retransmission,
321 int probe_cluster_id) = 0; 338 int probe_cluster_id) = 0;
322 339
323 virtual size_t TimeToSendPadding(size_t bytes, int probe_cluster_id) = 0; 340 virtual size_t TimeToSendPadding(size_t bytes, int probe_cluster_id) = 0;
324 341
325 // Called on generation of new statistics after an RTP send. 342 // Called on generation of new statistics after an RTP send.
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 661
645 /* 662 /*
646 * send a request for a keyframe 663 * send a request for a keyframe
647 * 664 *
648 * return -1 on failure else 0 665 * return -1 on failure else 0
649 */ 666 */
650 virtual int32_t RequestKeyFrame() = 0; 667 virtual int32_t RequestKeyFrame() = 0;
651 }; 668 };
652 } // namespace webrtc 669 } // namespace webrtc
653 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 670 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h » ('j') | webrtc/modules/rtp_rtcp/source/rtp_sender.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698