| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/modules/video_processing/main/source/content_analysis.h" | 11 #include "webrtc/modules/video_processing/content_analysis.h" |
| 12 | 12 |
| 13 #include <emmintrin.h> | 13 #include <emmintrin.h> |
| 14 #include <math.h> | 14 #include <math.h> |
| 15 | 15 |
| 16 namespace webrtc { | 16 namespace webrtc { |
| 17 | 17 |
| 18 int32_t VPMContentAnalysis::TemporalDiffMetric_SSE2() { | 18 int32_t VPMContentAnalysis::TemporalDiffMetric_SSE2() { |
| 19 uint32_t num_pixels = 0; // counter for # of pixels | 19 uint32_t num_pixels = 0; // counter for # of pixels |
| 20 const uint8_t* imgBufO = orig_frame_ + border_*width_ + border_; | 20 const uint8_t* imgBufO = orig_frame_ + border_*width_ + border_; |
| 21 const uint8_t* imgBufP = prev_frame_ + border_*width_ + border_; | 21 const uint8_t* imgBufP = prev_frame_ + border_*width_ + border_; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // 1X2: | 255 // 1X2: |
| 256 spatial_pred_err_h_ = spatialErrH / norm; | 256 spatial_pred_err_h_ = spatialErrH / norm; |
| 257 | 257 |
| 258 // 2X1: | 258 // 2X1: |
| 259 spatial_pred_err_v_ = spatialErrV / norm; | 259 spatial_pred_err_v_ = spatialErrV / norm; |
| 260 | 260 |
| 261 return VPM_OK; | 261 return VPM_OK; |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace webrtc | 264 } // namespace webrtc |
| OLD | NEW |