| 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 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const VideoFrame* PreprocessFrame(const VideoFrame& frame); | 64 const VideoFrame* PreprocessFrame(const VideoFrame& frame); |
| 65 VideoContentMetrics* GetContentMetrics() const; | 65 VideoContentMetrics* GetContentMetrics() const; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 // The content does not change so much every frame, so to reduce complexity | 68 // The content does not change so much every frame, so to reduce complexity |
| 69 // we can compute new content metrics every |kSkipFrameCA| frames. | 69 // we can compute new content metrics every |kSkipFrameCA| frames. |
| 70 enum { kSkipFrameCA = 2 }; | 70 enum { kSkipFrameCA = 2 }; |
| 71 | 71 |
| 72 VideoContentMetrics* content_metrics_; | 72 VideoContentMetrics* content_metrics_; |
| 73 VideoFrame denoised_frame_; | 73 VideoFrame denoised_frame_; |
| 74 VideoFrame denoised_frame_prev_; |
| 74 VideoFrame resampled_frame_; | 75 VideoFrame resampled_frame_; |
| 75 VPMSpatialResampler* spatial_resampler_; | 76 VPMSpatialResampler* spatial_resampler_; |
| 76 VPMContentAnalysis* ca_; | 77 VPMContentAnalysis* ca_; |
| 77 VPMVideoDecimator* vd_; | 78 VPMVideoDecimator* vd_; |
| 78 std::unique_ptr<VideoDenoiser> denoiser_; | 79 std::unique_ptr<VideoDenoiser> denoiser_; |
| 79 bool enable_ca_; | 80 bool enable_ca_; |
| 80 uint32_t frame_cnt_; | 81 uint32_t frame_cnt_; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace webrtc | 84 } // namespace webrtc |
| 84 | 85 |
| 85 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_ | 86 #endif // WEBRTC_MODULES_VIDEO_PROCESSING_FRAME_PREPROCESSOR_H_ |
| OLD | NEW |