Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1521)

Side by Side Diff: webrtc/modules/video_processing/test/video_processing_unittest.cc

Issue 1917323002: Remove remaining quality-analysis (QM). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 TEST_F(VideoProcessingTest, Resampler) { 119 TEST_F(VideoProcessingTest, Resampler) {
120 #endif 120 #endif
121 enum { NumRuns = 1 }; 121 enum { NumRuns = 1 };
122 122
123 int64_t min_runtime = 0; 123 int64_t min_runtime = 0;
124 int64_t total_runtime = 0; 124 int64_t total_runtime = 0;
125 125
126 rewind(source_file_); 126 rewind(source_file_);
127 ASSERT_TRUE(source_file_ != NULL) << "Cannot read input file \n"; 127 ASSERT_TRUE(source_file_ != NULL) << "Cannot read input file \n";
128 128
129 // CA not needed here
130 vp_->EnableContentAnalysis(false);
131 // no temporal decimation 129 // no temporal decimation
132 vp_->EnableTemporalDecimation(false); 130 vp_->EnableTemporalDecimation(false);
133 131
134 // Reading test frame 132 // Reading test frame
135 std::unique_ptr<uint8_t[]> video_buffer(new uint8_t[frame_length_]); 133 std::unique_ptr<uint8_t[]> video_buffer(new uint8_t[frame_length_]);
136 ASSERT_EQ(frame_length_, 134 ASSERT_EQ(frame_length_,
137 fread(video_buffer.get(), 1, frame_length_, source_file_)); 135 fread(video_buffer.get(), 1, frame_length_, source_file_));
138 // Using ConvertToI420 to add stride to the image. 136 // Using ConvertToI420 to add stride to the image.
139 EXPECT_EQ(0, ConvertToI420(kI420, video_buffer.get(), 0, 0, width_, height_, 137 EXPECT_EQ(0, ConvertToI420(kI420, video_buffer.get(), 0, 0, width_, height_,
140 0, kVideoRotation_0, &video_frame_)); 138 0, kVideoRotation_0, &video_frame_));
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 std::cout << "Watch " << filename.str() << " and verify that it is okay." 287 std::cout << "Watch " << filename.str() << " and verify that it is okay."
290 << std::endl; 288 << std::endl;
291 FILE* stand_alone_file = fopen(filename.str().c_str(), "wb"); 289 FILE* stand_alone_file = fopen(filename.str().c_str(), "wb");
292 if (PrintVideoFrame(processed, stand_alone_file) < 0) 290 if (PrintVideoFrame(processed, stand_alone_file) < 0)
293 std::cerr << "Failed to write: " << filename.str() << std::endl; 291 std::cerr << "Failed to write: " << filename.str() << std::endl;
294 if (stand_alone_file) 292 if (stand_alone_file)
295 fclose(stand_alone_file); 293 fclose(stand_alone_file);
296 } 294 }
297 295
298 } // namespace webrtc 296 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/test/content_metrics_test.cc ('k') | webrtc/modules/video_processing/video_processing.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698