OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 10 matching lines...) Expand all Loading... |
21 // Contains statistics of a single frame that has been processed. | 21 // Contains statistics of a single frame that has been processed. |
22 struct FrameStatistic { | 22 struct FrameStatistic { |
23 FrameStatistic(); | 23 FrameStatistic(); |
24 | 24 |
25 bool encoding_successful; | 25 bool encoding_successful; |
26 bool decoding_successful; | 26 bool decoding_successful; |
27 int encode_return_code; | 27 int encode_return_code; |
28 int decode_return_code; | 28 int decode_return_code; |
29 int encode_time_in_us; | 29 int encode_time_in_us; |
30 int decode_time_in_us; | 30 int decode_time_in_us; |
| 31 int qp; |
31 int frame_number; | 32 int frame_number; |
32 // How many packets were discarded of the encoded frame data (if any). | 33 // How many packets were discarded of the encoded frame data (if any). |
33 int packets_dropped; | 34 int packets_dropped; |
34 size_t total_packets; | 35 size_t total_packets; |
35 | 36 |
36 // Current bit rate. Calculated out of the size divided with the time | 37 // Current bit rate. Calculated out of the size divided with the time |
37 // interval per frame. | 38 // interval per frame. |
38 int bit_rate_in_kbps; | 39 int bit_rate_in_kbps; |
39 | 40 |
40 // Copied from EncodedImage | 41 // Copied from EncodedImage |
(...skipping 20 matching lines...) Expand all Loading... |
61 // processing | 62 // processing |
62 void PrintSummary(); | 63 void PrintSummary(); |
63 | 64 |
64 std::vector<FrameStatistic> stats_; | 65 std::vector<FrameStatistic> stats_; |
65 }; | 66 }; |
66 | 67 |
67 } // namespace test | 68 } // namespace test |
68 } // namespace webrtc | 69 } // namespace webrtc |
69 | 70 |
70 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_STATS_H_ | 71 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_STATS_H_ |
OLD | NEW |