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

Unified Diff: webrtc/modules/video_processing/frame_preprocessor.cc

Issue 2065733003: Delete unused and almost unused frame-related methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Eliminate call to set_video_frame_buffer. Created 4 years, 6 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/video_sender.cc ('k') | webrtc/modules/video_processing/spatial_resampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_processing/frame_preprocessor.cc
diff --git a/webrtc/modules/video_processing/frame_preprocessor.cc b/webrtc/modules/video_processing/frame_preprocessor.cc
index 1d21340b31f204a47911690bf91c764f9863e82a..e86bbbb3bf931d829596bbfc8c726bf9b246bff3 100644
--- a/webrtc/modules/video_processing/frame_preprocessor.cc
+++ b/webrtc/modules/video_processing/frame_preprocessor.cc
@@ -96,19 +96,22 @@ const VideoFrame* VPMFramePreprocessor::PreprocessFrame(
const VideoFrame* current_frame = &frame;
if (denoiser_) {
- rtc::scoped_refptr<I420Buffer>* denoised_frame = &denoised_buffer_[0];
- rtc::scoped_refptr<I420Buffer>* denoised_frame_prev = &denoised_buffer_[1];
+ rtc::scoped_refptr<I420Buffer>* denoised_buffer = &denoised_buffer_[0];
+ rtc::scoped_refptr<I420Buffer>* denoised_buffer_prev = &denoised_buffer_[1];
// Swap the buffer to save one memcpy in DenoiseFrame.
if (denoised_frame_toggle_) {
- denoised_frame = &denoised_buffer_[1];
- denoised_frame_prev = &denoised_buffer_[0];
+ denoised_buffer = &denoised_buffer_[1];
+ denoised_buffer_prev = &denoised_buffer_[0];
}
// Invert the flag.
denoised_frame_toggle_ ^= 1;
- denoiser_->DenoiseFrame(current_frame->video_frame_buffer(), denoised_frame,
- denoised_frame_prev, true);
- denoised_frame_.ShallowCopy(*current_frame);
- denoised_frame_.set_video_frame_buffer(*denoised_frame);
+ denoiser_->DenoiseFrame(current_frame->video_frame_buffer(),
+ denoised_buffer,
+ denoised_buffer_prev, true);
+ denoised_frame_ = VideoFrame(*denoised_buffer,
+ current_frame->timestamp(),
+ current_frame->render_time_ms(),
+ current_frame->rotation());
current_frame = &denoised_frame_;
}
« no previous file with comments | « webrtc/modules/video_coding/video_sender.cc ('k') | webrtc/modules/video_processing/spatial_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698