| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  *  Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |    2  *  Copyright (c) 2015 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/common_video/libyuv/include/scaler.h" |   11 #include "webrtc/common_video/libyuv/include/scaler.h" | 
|   12 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |   12 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 
|   13 #include "webrtc/modules/video_processing/video_denoiser.h" |   13 #include "webrtc/modules/video_processing/video_denoiser.h" | 
|   14  |   14  | 
|   15 namespace webrtc { |   15 namespace webrtc { | 
|   16  |   16  | 
|   17 #if DISPLAY  // Rectangle diagnostics |   17 #if DISPLAY || DISPLAYNEON | 
|   18 static void CopyMem8x8(const uint8_t* src, |   18 static void CopyMem8x8(const uint8_t* src, | 
|   19                        int src_stride, |   19                        int src_stride, | 
|   20                        uint8_t* dst, |   20                        uint8_t* dst, | 
|   21                        int dst_stride) { |   21                        int dst_stride) { | 
|   22   for (int i = 0; i < 8; i++) { |   22   for (int i = 0; i < 8; i++) { | 
|   23     memcpy(dst, src, 8); |   23     memcpy(dst, src, 8); | 
|   24     src += src_stride; |   24     src += src_stride; | 
|   25     dst += dst_stride; |   25     dst += dst_stride; | 
|   26   } |   26   } | 
|   27 } |   27 } | 
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  311  |  311  | 
|  312   // TODO(jackychen): Need SSE2/NEON opt. |  312   // TODO(jackychen): Need SSE2/NEON opt. | 
|  313   // Copy u/v planes. |  313   // Copy u/v planes. | 
|  314   memcpy(u_dst, u_src, (height_ >> 1) * stride_u_); |  314   memcpy(u_dst, u_src, (height_ >> 1) * stride_u_); | 
|  315   memcpy(v_dst, v_src, (height_ >> 1) * stride_v_); |  315   memcpy(v_dst, v_src, (height_ >> 1) * stride_v_); | 
|  316  |  316  | 
|  317   // Set time parameters to the output frame. |  317   // Set time parameters to the output frame. | 
|  318   denoised_frame->set_timestamp(frame.timestamp()); |  318   denoised_frame->set_timestamp(frame.timestamp()); | 
|  319   denoised_frame->set_render_time_ms(frame.render_time_ms()); |  319   denoised_frame->set_render_time_ms(frame.render_time_ms()); | 
|  320  |  320  | 
|  321 #if DISPLAY  // Rectangle diagnostics |  321 #if DISPLAY || DISPLAYNEON | 
|  322   // Show rectangular region |  322   // Show rectangular region | 
|  323   ShowRect(filter_, moving_edge_, moving_object_, x_density_, y_density_, u_src, |  323   ShowRect(filter_, moving_edge_, moving_object_, x_density_, y_density_, u_src, | 
|  324            v_src, u_dst, v_dst, mb_rows_, mb_cols_, stride_u_, stride_v_); |  324            v_src, u_dst, v_dst, mb_rows_, mb_cols_, stride_u_, stride_v_); | 
|  325 #endif |  325 #endif | 
|  326 } |  326 } | 
|  327  |  327  | 
|  328 }  // namespace webrtc |  328 }  // namespace webrtc | 
| OLD | NEW |