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