| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } else if (codec_settings.codecType == kVideoCodecH264) { | 87 } else if (codec_settings.codecType == kVideoCodecH264) { |
| 88 printf(" Frame dropping : %d\n", codec_settings.H264().frameDroppingOn); | 88 printf(" Frame dropping : %d\n", codec_settings.H264().frameDroppingOn); |
| 89 printf(" Key frame interval: %d\n", | 89 printf(" Key frame interval: %d\n", |
| 90 codec_settings.H264().keyFrameInterval); | 90 codec_settings.H264().keyFrameInterval); |
| 91 printf(" Profile : %d\n", codec_settings.H264().profile); | 91 printf(" Profile : %d\n", codec_settings.H264().profile); |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 | 94 |
| 95 void VerifyQpParser(const EncodedImage& encoded_frame, | 95 void VerifyQpParser(const EncodedImage& encoded_frame, |
| 96 const TestConfig& config) { | 96 const TestConfig& config) { |
| 97 if (config.hw_codec) | 97 if (config.hw_encoder) |
| 98 return; | 98 return; |
| 99 | 99 |
| 100 int qp; | 100 int qp; |
| 101 if (config.codec_settings.codecType == kVideoCodecVP8) { | 101 if (config.codec_settings.codecType == kVideoCodecVP8) { |
| 102 ASSERT_TRUE(vp8::GetQp(encoded_frame._buffer, encoded_frame._length, &qp)); | 102 ASSERT_TRUE(vp8::GetQp(encoded_frame._buffer, encoded_frame._length, &qp)); |
| 103 } else if (config.codec_settings.codecType == kVideoCodecVP9) { | 103 } else if (config.codec_settings.codecType == kVideoCodecVP9) { |
| 104 ASSERT_TRUE(vp9::GetQp(encoded_frame._buffer, encoded_frame._length, &qp)); | 104 ASSERT_TRUE(vp9::GetQp(encoded_frame._buffer, encoded_frame._length, &qp)); |
| 105 } else { | 105 } else { |
| 106 return; | 106 return; |
| 107 } | 107 } |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 if (decoded_frame_writer_) { | 477 if (decoded_frame_writer_) { |
| 478 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); | 478 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); |
| 479 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); | 479 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); |
| 480 } | 480 } |
| 481 | 481 |
| 482 last_decoded_frame_buffer_ = std::move(extracted_buffer); | 482 last_decoded_frame_buffer_ = std::move(extracted_buffer); |
| 483 } | 483 } |
| 484 | 484 |
| 485 } // namespace test | 485 } // namespace test |
| 486 } // namespace webrtc | 486 } // namespace webrtc |
| OLD | NEW |