| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 EXPECT_NEAR(kColorU, decoded_image.video_frame_buffer()->DataU()[i], 4); | 138 EXPECT_NEAR(kColorU, decoded_image.video_frame_buffer()->DataU()[i], 4); |
| 139 EXPECT_NEAR(kColorV, decoded_image.video_frame_buffer()->DataV()[i], 4); | 139 EXPECT_NEAR(kColorV, decoded_image.video_frame_buffer()->DataV()[i], 4); |
| 140 } | 140 } |
| 141 decoded_frames_++; | 141 decoded_frames_++; |
| 142 return 0; | 142 return 0; |
| 143 } | 143 } |
| 144 int32_t Decoded(VideoFrame& decoded_image, int64_t decode_time_ms) override { | 144 int32_t Decoded(VideoFrame& decoded_image, int64_t decode_time_ms) override { |
| 145 RTC_NOTREACHED(); | 145 RTC_NOTREACHED(); |
| 146 return -1; | 146 return -1; |
| 147 } | 147 } |
| 148 void Decoded(VideoFrame& decoded_image, |
| 149 rtc::Optional<int32_t> decode_time_ms, |
| 150 rtc::Optional<uint8_t> qp) override { |
| 151 RTC_NOTREACHED(); |
| 152 } |
| 148 int DecodedFrames() { return decoded_frames_; } | 153 int DecodedFrames() { return decoded_frames_; } |
| 149 | 154 |
| 150 private: | 155 private: |
| 151 int decoded_frames_; | 156 int decoded_frames_; |
| 152 }; | 157 }; |
| 153 | 158 |
| 154 class TestVp8Simulcast : public ::testing::Test { | 159 class TestVp8Simulcast : public ::testing::Test { |
| 155 public: | 160 public: |
| 156 TestVp8Simulcast(VP8Encoder* encoder, VP8Decoder* decoder) | 161 TestVp8Simulcast(VP8Encoder* encoder, VP8Decoder* decoder) |
| 157 : encoder_(encoder), decoder_(decoder) {} | 162 : encoder_(encoder), decoder_(decoder) {} |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 VideoCodec settings_; | 890 VideoCodec settings_; |
| 886 rtc::scoped_refptr<I420Buffer> input_buffer_; | 891 rtc::scoped_refptr<I420Buffer> input_buffer_; |
| 887 std::unique_ptr<VideoFrame> input_frame_; | 892 std::unique_ptr<VideoFrame> input_frame_; |
| 888 std::unique_ptr<SimulcastRateAllocator> rate_allocator_; | 893 std::unique_ptr<SimulcastRateAllocator> rate_allocator_; |
| 889 }; | 894 }; |
| 890 | 895 |
| 891 } // namespace testing | 896 } // namespace testing |
| 892 } // namespace webrtc | 897 } // namespace webrtc |
| 893 | 898 |
| 894 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_ | 899 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_ |
| OLD | NEW |