OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 virtual ~RTPSenderVideo(); | 35 virtual ~RTPSenderVideo(); |
36 | 36 |
37 virtual RtpVideoCodecTypes VideoCodecType() const; | 37 virtual RtpVideoCodecTypes VideoCodecType() const; |
38 | 38 |
39 size_t FECPacketOverhead() const; | 39 size_t FECPacketOverhead() const; |
40 | 40 |
41 static RtpUtility::Payload* CreateVideoPayload( | 41 static RtpUtility::Payload* CreateVideoPayload( |
42 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 42 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
43 int8_t payload_type); | 43 int8_t payload_type); |
44 | 44 |
45 bool SendVideo(RtpVideoCodecTypes video_type, | 45 int32_t SendVideo(RtpVideoCodecTypes video_type, |
46 FrameType frame_type, | 46 FrameType frame_type, |
47 int8_t payload_type, | 47 int8_t payload_type, |
48 uint32_t capture_timestamp, | 48 uint32_t capture_timestamp, |
49 int64_t capture_time_ms, | 49 int64_t capture_time_ms, |
50 const uint8_t* payload_data, | 50 const uint8_t* payload_data, |
51 size_t payload_size, | 51 size_t payload_size, |
52 const RTPFragmentationHeader* fragmentation, | 52 const RTPFragmentationHeader* fragmentation, |
53 const RTPVideoHeader* video_header); | 53 const RTPVideoHeader* video_header); |
54 | 54 |
55 int32_t SendRTPIntraRequest(); | 55 int32_t SendRTPIntraRequest(); |
56 | 56 |
57 void SetVideoCodecType(RtpVideoCodecTypes type); | 57 void SetVideoCodecType(RtpVideoCodecTypes type); |
58 | 58 |
59 // FEC | 59 // FEC |
60 void SetGenericFECStatus(bool enable, | 60 void SetGenericFECStatus(bool enable, |
61 uint8_t payload_type_red, | 61 uint8_t payload_type_red, |
62 uint8_t payload_type_fec); | 62 uint8_t payload_type_fec); |
63 | 63 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // and any padding overhead. | 117 // and any padding overhead. |
118 RateStatistics fec_bitrate_ GUARDED_BY(stats_crit_); | 118 RateStatistics fec_bitrate_ GUARDED_BY(stats_crit_); |
119 // Bitrate used for video payload and RTP headers. | 119 // Bitrate used for video payload and RTP headers. |
120 RateStatistics video_bitrate_ GUARDED_BY(stats_crit_); | 120 RateStatistics video_bitrate_ GUARDED_BY(stats_crit_); |
121 OneTimeEvent first_frame_sent_; | 121 OneTimeEvent first_frame_sent_; |
122 }; | 122 }; |
123 | 123 |
124 } // namespace webrtc | 124 } // namespace webrtc |
125 | 125 |
126 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_VIDEO_H_ | 126 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_VIDEO_H_ |
OLD | NEW |