| 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 28 matching lines...) Expand all Loading... |
| 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 }; | 46 }; |
| 47 | 47 |
| 48 struct Stats { | 48 struct Stats { |
| 49 std::string ToString(int64_t time_ms) const; |
| 50 |
| 49 int network_frame_rate = 0; | 51 int network_frame_rate = 0; |
| 50 int decode_frame_rate = 0; | 52 int decode_frame_rate = 0; |
| 51 int render_frame_rate = 0; | 53 int render_frame_rate = 0; |
| 52 | 54 |
| 53 // Decoder stats. | 55 // Decoder stats. |
| 54 std::string decoder_implementation_name = "unknown"; | 56 std::string decoder_implementation_name = "unknown"; |
| 55 FrameCounts frame_counts; | 57 FrameCounts frame_counts; |
| 56 int decode_ms = 0; | 58 int decode_ms = 0; |
| 57 int max_decode_ms = 0; | 59 int max_decode_ms = 0; |
| 58 int current_delay_ms = 0; | 60 int current_delay_ms = 0; |
| 59 int target_delay_ms = 0; | 61 int target_delay_ms = 0; |
| 60 int jitter_buffer_ms = 0; | 62 int jitter_buffer_ms = 0; |
| 61 int min_playout_delay_ms = 0; | 63 int min_playout_delay_ms = 0; |
| 62 int render_delay_ms = 10; | 64 int render_delay_ms = 10; |
| 63 | 65 |
| 64 int current_payload_type = -1; | 66 int current_payload_type = -1; |
| 65 | 67 |
| 66 int total_bitrate_bps = 0; | 68 int total_bitrate_bps = 0; |
| 67 int discarded_packets = 0; | 69 int discarded_packets = 0; |
| 68 | 70 |
| 71 int width = 0; |
| 72 int height = 0; |
| 73 |
| 69 int sync_offset_ms = std::numeric_limits<int>::max(); | 74 int sync_offset_ms = std::numeric_limits<int>::max(); |
| 70 | 75 |
| 71 uint32_t ssrc = 0; | 76 uint32_t ssrc = 0; |
| 72 std::string c_name; | 77 std::string c_name; |
| 73 StreamDataCounters rtp_stats; | 78 StreamDataCounters rtp_stats; |
| 74 RtcpPacketTypeCounter rtcp_packet_type_counts; | 79 RtcpPacketTypeCounter rtcp_packet_type_counts; |
| 75 RtcpStatistics rtcp_stats; | 80 RtcpStatistics rtcp_stats; |
| 76 }; | 81 }; |
| 77 | 82 |
| 78 struct Config { | 83 struct Config { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // TODO(pbos): Add info on currently-received codec to Stats. | 206 // TODO(pbos): Add info on currently-received codec to Stats. |
| 202 virtual Stats GetStats() const = 0; | 207 virtual Stats GetStats() const = 0; |
| 203 | 208 |
| 204 protected: | 209 protected: |
| 205 virtual ~VideoReceiveStream() {} | 210 virtual ~VideoReceiveStream() {} |
| 206 }; | 211 }; |
| 207 | 212 |
| 208 } // namespace webrtc | 213 } // namespace webrtc |
| 209 | 214 |
| 210 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ | 215 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ |
| OLD | NEW |