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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 rtp_header->frameType = parsed_payload.frame_type; | 91 rtp_header->frameType = parsed_payload.frame_type; |
92 rtp_header->type = parsed_payload.type; | 92 rtp_header->type = parsed_payload.type; |
93 rtp_header->type.Video.rotation = kVideoRotation_0; | 93 rtp_header->type.Video.rotation = kVideoRotation_0; |
94 | 94 |
95 // Retrieve the video rotation information. | 95 // Retrieve the video rotation information. |
96 if (rtp_header->header.extension.hasVideoRotation) { | 96 if (rtp_header->header.extension.hasVideoRotation) { |
97 rtp_header->type.Video.rotation = ConvertCVOByteToVideoRotation( | 97 rtp_header->type.Video.rotation = ConvertCVOByteToVideoRotation( |
98 rtp_header->header.extension.videoRotation); | 98 rtp_header->header.extension.videoRotation); |
99 } | 99 } |
100 | 100 |
| 101 rtp_header->type.Video.playout_delay = |
| 102 rtp_header->header.extension.playout_delay; |
| 103 |
101 return data_callback_->OnReceivedPayloadData(parsed_payload.payload, | 104 return data_callback_->OnReceivedPayloadData(parsed_payload.payload, |
102 parsed_payload.payload_length, | 105 parsed_payload.payload_length, |
103 rtp_header) == 0 | 106 rtp_header) == 0 |
104 ? 0 | 107 ? 0 |
105 : -1; | 108 : -1; |
106 } | 109 } |
107 | 110 |
108 int RTPReceiverVideo::GetPayloadTypeFrequency() const { | 111 int RTPReceiverVideo::GetPayloadTypeFrequency() const { |
109 return kVideoPayloadTypeFrequency; | 112 return kVideoPayloadTypeFrequency; |
110 } | 113 } |
111 | 114 |
112 RTPAliveType RTPReceiverVideo::ProcessDeadOrAlive( | 115 RTPAliveType RTPReceiverVideo::ProcessDeadOrAlive( |
113 uint16_t last_payload_length) const { | 116 uint16_t last_payload_length) const { |
114 return kRtpDead; | 117 return kRtpDead; |
115 } | 118 } |
116 | 119 |
117 int32_t RTPReceiverVideo::InvokeOnInitializeDecoder( | 120 int32_t RTPReceiverVideo::InvokeOnInitializeDecoder( |
118 RtpFeedback* callback, | 121 RtpFeedback* callback, |
119 int8_t payload_type, | 122 int8_t payload_type, |
120 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 123 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
121 const PayloadUnion& specific_payload) const { | 124 const PayloadUnion& specific_payload) const { |
122 // TODO(pbos): Remove as soon as audio can handle a changing payload type | 125 // TODO(pbos): Remove as soon as audio can handle a changing payload type |
123 // without this callback. | 126 // without this callback. |
124 return 0; | 127 return 0; |
125 } | 128 } |
126 | 129 |
127 } // namespace webrtc | 130 } // namespace webrtc |
OLD | NEW |