Allow disabling denoiser when it is enabled.

BUG=webrtc:5255

Review URL: https://codereview.webrtc.org/1571423003

Cr-Commit-Position: refs/heads/master@{#11312}
This commit is contained in:
jackychen
2016-01-19 18:18:52 -08:00
committed by Commit bot
parent 3a6bf2d68b
commit f0b8a3784f

View File

@ -95,7 +95,11 @@ uint32_t VPMFramePreprocessor::GetDecimatedHeight() const {
}
void VPMFramePreprocessor::EnableDenosing(bool enable) {
denoiser_.reset(new VideoDenoiser(true));
if (enable) {
denoiser_.reset(new VideoDenoiser(true));
} else {
denoiser_.reset();
}
}
const VideoFrame* VPMFramePreprocessor::PreprocessFrame(