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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 int target_delay_ms = 0; | 165 int target_delay_ms = 0; |
175 }; | 166 }; |
176 | 167 |
177 // TODO(pbos): Add info on currently-received codec to Stats. | 168 // TODO(pbos): Add info on currently-received codec to Stats. |
178 virtual Stats GetStats() const = 0; | 169 virtual Stats GetStats() const = 0; |
179 }; | 170 }; |
180 | 171 |
181 } // namespace webrtc | 172 } // namespace webrtc |
182 | 173 |
183 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ | 174 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ |
OLD | NEW |