OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // TODO(nisse): After the cricket::VideoFrame and webrtc::VideoFrame | 99 // TODO(nisse): After the cricket::VideoFrame and webrtc::VideoFrame |
100 // merge, timestamps other than timestamp_us will likely be | 100 // merge, timestamps other than timestamp_us will likely be |
101 // deprecated. | 101 // deprecated. |
102 | 102 |
103 // Set frame timestamp (90kHz). | 103 // Set frame timestamp (90kHz). |
104 void set_timestamp(uint32_t timestamp) { timestamp_rtp_ = timestamp; } | 104 void set_timestamp(uint32_t timestamp) { timestamp_rtp_ = timestamp; } |
105 | 105 |
106 // Get frame timestamp (90kHz). | 106 // Get frame timestamp (90kHz). |
107 uint32_t timestamp() const { return timestamp_rtp_; } | 107 uint32_t timestamp() const { return timestamp_rtp_; } |
108 | 108 |
| 109 // For now, transport_frame_id and rtp timestamp are the same. |
| 110 // TODO(nisse): Must be handled differently for QUIC. |
| 111 uint32_t transport_frame_id() const { return timestamp(); } |
| 112 |
109 // Set capture ntp time in milliseconds. | 113 // Set capture ntp time in milliseconds. |
110 void set_ntp_time_ms(int64_t ntp_time_ms) { | 114 void set_ntp_time_ms(int64_t ntp_time_ms) { |
111 ntp_time_ms_ = ntp_time_ms; | 115 ntp_time_ms_ = ntp_time_ms; |
112 } | 116 } |
113 | 117 |
114 // Get capture ntp time in milliseconds. | 118 // Get capture ntp time in milliseconds. |
115 int64_t ntp_time_ms() const { return ntp_time_ms_; } | 119 int64_t ntp_time_ms() const { return ntp_time_ms_; } |
116 | 120 |
117 // Naming convention for Coordination of Video Orientation. Please see | 121 // Naming convention for Coordination of Video Orientation. Please see |
118 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ts_126
114v120700p.pdf | 122 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ts_126
114v120700p.pdf |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 int qp_ = -1; // Quantizer value. | 217 int qp_ = -1; // Quantizer value. |
214 | 218 |
215 // When an application indicates non-zero values here, it is taken as an | 219 // When an application indicates non-zero values here, it is taken as an |
216 // indication that all future frames will be constrained with those limits | 220 // indication that all future frames will be constrained with those limits |
217 // until the application indicates a change again. | 221 // until the application indicates a change again. |
218 PlayoutDelay playout_delay_ = {-1, -1}; | 222 PlayoutDelay playout_delay_ = {-1, -1}; |
219 }; | 223 }; |
220 | 224 |
221 } // namespace webrtc | 225 } // namespace webrtc |
222 #endif // WEBRTC_VIDEO_FRAME_H_ | 226 #endif // WEBRTC_VIDEO_FRAME_H_ |
OLD | NEW |