OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 printf(" Codec type : %s\n", | 67 printf(" Codec type : %s\n", |
68 CodecTypeToPayloadName(config->codecType).value_or("Unknown")); | 68 CodecTypeToPayloadName(config->codecType).value_or("Unknown")); |
69 if (config->codecType == kVideoCodecVP8) { | 69 if (config->codecType == kVideoCodecVP8) { |
70 printf(" Denoising : %d\n", config->VP8().denoisingOn); | 70 printf(" Denoising : %d\n", config->VP8().denoisingOn); |
71 printf(" Error concealment: %d\n", config->VP8().errorConcealmentOn); | 71 printf(" Error concealment: %d\n", config->VP8().errorConcealmentOn); |
72 printf(" Frame dropping : %d\n", config->VP8().frameDroppingOn); | 72 printf(" Frame dropping : %d\n", config->VP8().frameDroppingOn); |
73 printf(" Resilience : %d\n", config->VP8().resilience); | 73 printf(" Resilience : %d\n", config->VP8().resilience); |
74 } else if (config->codecType == kVideoCodecVP9) { | 74 } else if (config->codecType == kVideoCodecVP9) { |
75 printf(" Denoising : %d\n", config->VP9().denoisingOn); | 75 printf(" Denoising : %d\n", config->VP9().denoisingOn); |
76 printf(" Frame dropping : %d\n", config->VP9().frameDroppingOn); | 76 printf(" Frame dropping : %d\n", config->VP9().frameDroppingOn); |
77 printf(" Resilience : %d\n", config->VP9().resilience); | 77 printf(" Resilience : %d\n", config->VP9().resilienceOn); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 int GetElapsedTimeMicroseconds(int64_t start_ns, int64_t stop_ns) { | 81 int GetElapsedTimeMicroseconds(int64_t start_ns, int64_t stop_ns) { |
82 int64_t diff_us = (stop_ns - start_ns) / rtc::kNumNanosecsPerMicrosec; | 82 int64_t diff_us = (stop_ns - start_ns) / rtc::kNumNanosecsPerMicrosec; |
83 RTC_DCHECK_GE(diff_us, std::numeric_limits<int>::min()); | 83 RTC_DCHECK_GE(diff_us, std::numeric_limits<int>::min()); |
84 RTC_DCHECK_LE(diff_us, std::numeric_limits<int>::max()); | 84 RTC_DCHECK_LE(diff_us, std::numeric_limits<int>::max()); |
85 return static_cast<int>(diff_us); | 85 return static_cast<int>(diff_us); |
86 } | 86 } |
87 | 87 |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 if (decoded_frame_writer_) { | 515 if (decoded_frame_writer_) { |
516 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); | 516 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); |
517 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); | 517 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); |
518 } | 518 } |
519 | 519 |
520 last_decoded_frame_buffer_ = std::move(extracted_buffer); | 520 last_decoded_frame_buffer_ = std::move(extracted_buffer); |
521 } | 521 } |
522 | 522 |
523 } // namespace test | 523 } // namespace test |
524 } // namespace webrtc | 524 } // namespace webrtc |
OLD | NEW |