niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
pbos@webrtc.org | 6f3d8fc | 2013-05-27 14:12:16 +0000 | [diff] [blame^] | 17 | #include "webrtc/modules/video_processing/main/interface/video_processing.h" |
| 18 | #include "webrtc/typedefs.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 19 | |
| 20 | namespace webrtc { |
| 21 | |
| 22 | class VPMDenoising |
| 23 | { |
| 24 | public: |
| 25 | VPMDenoising(); |
| 26 | ~VPMDenoising(); |
| 27 | |
pbos@webrtc.org | 1ab45f6 | 2013-04-09 13:38:10 +0000 | [diff] [blame] | 28 | int32_t ChangeUniqueId(int32_t id); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 29 | |
| 30 | void Reset(); |
| 31 | |
pbos@webrtc.org | 1ab45f6 | 2013-04-09 13:38:10 +0000 | [diff] [blame] | 32 | int32_t ProcessFrame(I420VideoFrame* frame); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 33 | |
| 34 | private: |
pbos@webrtc.org | 1ab45f6 | 2013-04-09 13:38:10 +0000 | [diff] [blame] | 35 | int32_t _id; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 36 | |
pbos@webrtc.org | 1ab45f6 | 2013-04-09 13:38:10 +0000 | [diff] [blame] | 37 | 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.org | 0e196e1 | 2012-10-19 15:43:31 +0000 | [diff] [blame] | 40 | int _denoiseFrameCnt; // Counter for subsampling in time |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | } //namespace |
| 44 | |
| 45 | #endif // VPM_DENOISING_H |
| 46 | |