Line data Source code
1 : /*
2 : * Copyright (c) 2015 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 : #ifndef WEBRTC_MODULES_VIDEO_PROCESSING_UTIL_DENOISER_FILTER_C_H_
12 : #define WEBRTC_MODULES_VIDEO_PROCESSING_UTIL_DENOISER_FILTER_C_H_
13 :
14 : #include "webrtc/modules/video_processing/util/denoiser_filter.h"
15 :
16 : namespace webrtc {
17 :
18 0 : class DenoiserFilterC : public DenoiserFilter {
19 : public:
20 0 : DenoiserFilterC() {}
21 : void CopyMem16x16(const uint8_t* src,
22 : int src_stride,
23 : uint8_t* dst,
24 : int dst_stride) override;
25 : uint32_t Variance16x8(const uint8_t* a,
26 : int a_stride,
27 : const uint8_t* b,
28 : int b_stride,
29 : unsigned int* sse) override;
30 : DenoiserDecision MbDenoise(const uint8_t* mc_running_avg_y,
31 : int mc_avg_y_stride,
32 : uint8_t* running_avg_y,
33 : int avg_y_stride,
34 : const uint8_t* sig,
35 : int sig_stride,
36 : uint8_t motion_magnitude,
37 : int increase_denoising) override;
38 : };
39 :
40 : } // namespace webrtc
41 :
42 : #endif // WEBRTC_MODULES_VIDEO_PROCESSING_UTIL_DENOISER_FILTER_C_H_
|