| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 25 matching lines...) Expand all Loading... |
| 36 // The actual decoder instance. | 36 // The actual decoder instance. |
| 37 VideoDecoder* decoder = nullptr; | 37 VideoDecoder* decoder = nullptr; |
| 38 | 38 |
| 39 // Received RTP packets with this payload type will be sent to this decoder | 39 // Received RTP packets with this payload type will be sent to this decoder |
| 40 // instance. | 40 // instance. |
| 41 int payload_type = 0; | 41 int payload_type = 0; |
| 42 | 42 |
| 43 // Name of the decoded payload (such as VP8). Maps back to the depacketizer | 43 // Name of the decoded payload (such as VP8). Maps back to the depacketizer |
| 44 // used to unpack incoming packets. | 44 // used to unpack incoming packets. |
| 45 std::string payload_name; | 45 std::string payload_name; |
| 46 | |
| 47 // 'true' if the decoder handles rendering as well. | |
| 48 bool is_renderer = false; | |
| 49 | |
| 50 // The expected delay for decoding and rendering, i.e. the frame will be | |
| 51 // delivered this many milliseconds, if possible, earlier than the ideal | |
| 52 // render time. | |
| 53 // Note: Ignored if 'renderer' is false. | |
| 54 int expected_delay_ms = 0; | |
| 55 }; | 46 }; |
| 56 | 47 |
| 57 struct Stats { | 48 struct Stats { |
| 58 int network_frame_rate = 0; | 49 int network_frame_rate = 0; |
| 59 int decode_frame_rate = 0; | 50 int decode_frame_rate = 0; |
| 60 int render_frame_rate = 0; | 51 int render_frame_rate = 0; |
| 61 | 52 |
| 62 // Decoder stats. | 53 // Decoder stats. |
| 63 FrameCounts frame_counts; | 54 FrameCounts frame_counts; |
| 64 int decode_ms = 0; | 55 int decode_ms = 0; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 int target_delay_ms = 0; | 168 int target_delay_ms = 0; |
| 178 }; | 169 }; |
| 179 | 170 |
| 180 // TODO(pbos): Add info on currently-received codec to Stats. | 171 // TODO(pbos): Add info on currently-received codec to Stats. |
| 181 virtual Stats GetStats() const = 0; | 172 virtual Stats GetStats() const = 0; |
| 182 }; | 173 }; |
| 183 | 174 |
| 184 } // namespace webrtc | 175 } // namespace webrtc |
| 185 | 176 |
| 186 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ | 177 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ |
| OLD | NEW |