blob: 3e61dcdf26297354150650416c53456a1a6381de [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11/*
12 * denoising.h
13 */
14#ifndef VPM_DENOISING_H
15#define VPM_DENOISING_H
16
17#include "typedefs.h"
18#include "video_processing.h"
19
20namespace webrtc {
21
22class VPMDenoising
23{
24public:
25 VPMDenoising();
26 ~VPMDenoising();
27
pbos@webrtc.org1ab45f62013-04-09 13:38:10 +000028 int32_t ChangeUniqueId(int32_t id);
niklase@google.com470e71d2011-07-07 08:21:25 +000029
30 void Reset();
31
pbos@webrtc.org1ab45f62013-04-09 13:38:10 +000032 int32_t ProcessFrame(I420VideoFrame* frame);
niklase@google.com470e71d2011-07-07 08:21:25 +000033
34private:
pbos@webrtc.org1ab45f62013-04-09 13:38:10 +000035 int32_t _id;
niklase@google.com470e71d2011-07-07 08:21:25 +000036
pbos@webrtc.org1ab45f62013-04-09 13:38:10 +000037 uint32_t* _moment1; // (Q8) First order moment (mean)
38 uint32_t* _moment2; // (Q8) Second order moment
39 uint32_t _frameSize; // Size (# of pixels) of frame
mikhal@webrtc.org0e196e12012-10-19 15:43:31 +000040 int _denoiseFrameCnt; // Counter for subsampling in time
niklase@google.com470e71d2011-07-07 08:21:25 +000041};
42
43} //namespace
44
45#endif // VPM_DENOISING_H
46