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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.cc

Issue 2962293002: Remove ProcessParams struct. (Closed)
Patch Set: rebase 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 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 encoder_->InitEncode(config_.codec_settings, num_cores, 157 encoder_->InitEncode(config_.codec_settings, num_cores,
158 config_.networking_config.max_payload_size_in_bytes), 158 config_.networking_config.max_payload_size_in_bytes),
159 WEBRTC_VIDEO_CODEC_OK) 159 WEBRTC_VIDEO_CODEC_OK)
160 << "Failed to initialize VideoEncoder"; 160 << "Failed to initialize VideoEncoder";
161 161
162 RTC_CHECK_EQ(decoder_->InitDecode(config_.codec_settings, num_cores), 162 RTC_CHECK_EQ(decoder_->InitDecode(config_.codec_settings, num_cores),
163 WEBRTC_VIDEO_CODEC_OK) 163 WEBRTC_VIDEO_CODEC_OK)
164 << "Failed to initialize VideoDecoder"; 164 << "Failed to initialize VideoDecoder";
165 165
166 if (config_.verbose) { 166 if (config_.verbose) {
167 printf("Filename: %s\n", config_.filename.c_str());
167 printf("Video Processor:\n"); 168 printf("Video Processor:\n");
168 printf(" #CPU cores used : %d\n", num_cores); 169 printf(" #CPU cores used : %d\n", num_cores);
169 printf(" Total # of frames: %d\n", 170 printf(" Total # of frames: %d\n",
170 analysis_frame_reader_->NumberOfFrames()); 171 analysis_frame_reader_->NumberOfFrames());
171 printf(" Codec settings:\n"); 172 printf(" Codec settings:\n");
172 printf(" Encoder implementation name: %s\n", 173 printf(" Encoder implementation name: %s\n",
173 encoder_->ImplementationName()); 174 encoder_->ImplementationName());
174 printf(" Decoder implementation name: %s\n", 175 printf(" Decoder implementation name: %s\n",
175 decoder_->ImplementationName()); 176 decoder_->ImplementationName());
176 if (strcmp(encoder_->ImplementationName(), 177 if (strcmp(encoder_->ImplementationName(),
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 if (decoded_frame_writer_) { 483 if (decoded_frame_writer_) {
483 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); 484 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength());
484 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); 485 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data()));
485 } 486 }
486 487
487 last_decoded_frame_buffer_ = std::move(extracted_buffer); 488 last_decoded_frame_buffer_ = std::move(extracted_buffer);
488 } 489 }
489 490
490 } // namespace test 491 } // namespace test
491 } // namespace webrtc 492 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698