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

Unified Diff: webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc

Issue 2999113002: Run VideoProcessor on task queue in VideoProcessorIntegrationTest. (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc
diff --git a/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc b/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc
index 0c15005c750931089984e78b92a8f4e069fce4e2..90ddcfee02f66c8f8dae6b730904043b1c1fbbe6 100644
--- a/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc
+++ b/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc
@@ -510,8 +510,10 @@ int main(int argc, char* argv[]) {
nullptr /* decoded_frame_writer */);
processor->Init();
+ const int num_frames = frame_reader.NumberOfFrames();
int frame_number = 0;
- while (processor->ProcessFrame(frame_number)) {
+ while (frame_number < num_frames) {
+ processor->ProcessFrame(frame_number);
if (frame_number % 80 == 0) {
Log("\n"); // make the output a bit nicer.
}
@@ -522,8 +524,7 @@ int main(int argc, char* argv[]) {
Log("Processed %d frames\n", frame_number);
// Release encoder and decoder to make sure they have finished processing.
- encoder->Release();
- decoder->Release();
+ processor->Release();
// Verify statistics are correct:
assert(frame_number == static_cast<int>(stats.stats_.size()));
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698