BUG=1662 R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1558004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4109 4adac7df-926f-26a2-2b94-8c16560cd09d
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/*
|
|
* 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 "webrtc/modules/video_processing/main/interface/video_processing.h"
|
|
#include "webrtc/typedefs.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
|
|
|