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