blob: 3e61dcdf26297354150650416c53456a1a6381de [file] [log] [blame]
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
/*
* denoising.h
*/
#ifndef VPM_DENOISING_H
#define VPM_DENOISING_H
#include "typedefs.h"
#include "video_processing.h"
namespace webrtc {
class VPMDenoising
{
public:
VPMDenoising();
~VPMDenoising();
int32_t ChangeUniqueId(int32_t id);
void Reset();
int32_t ProcessFrame(I420VideoFrame* frame);
private:
int32_t _id;
uint32_t* _moment1; // (Q8) First order moment (mean)
uint32_t* _moment2; // (Q8) Second order moment
uint32_t _frameSize; // Size (# of pixels) of frame
int _denoiseFrameCnt; // Counter for subsampling in time
};
} //namespace
#endif // VPM_DENOISING_H