| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebM 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 #ifndef VP8_ENCODER_DENOISING_H_ | 11 #ifndef VP8_ENCODER_DENOISING_H_ |
| 12 #define VP8_ENCODER_DENOISING_H_ | 12 #define VP8_ENCODER_DENOISING_H_ |
| 13 | 13 |
| 14 #include "block.h" | 14 #include "block.h" |
| 15 #include "vp8/common/loopfilter.h" | 15 #include "vp8/common/loopfilter.h" |
| 16 | 16 |
| 17 #ifdef __cplusplus | 17 #ifdef __cplusplus |
| 18 extern "C" { | 18 extern "C" { |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 #define SUM_DIFF_THRESHOLD (16 * 16 * 2) | 21 #define SUM_DIFF_THRESHOLD (16 * 16 * 2) |
| 22 #define SUM_DIFF_THRESHOLD_HIGH (600) | 22 #define SUM_DIFF_THRESHOLD_HIGH (600) |
| 23 #define MOTION_MAGNITUDE_THRESHOLD (8*3) | 23 #define MOTION_MAGNITUDE_THRESHOLD (8*3) |
| 24 | 24 |
| 25 #define SUM_DIFF_THRESHOLD_UV (96) // (8 * 8 * 1.5) | 25 #define SUM_DIFF_THRESHOLD_UV (96) // (8 * 8 * 1.5) |
| 26 #define SUM_DIFF_THRESHOLD_HIGH_UV (8 * 8 * 2) | 26 #define SUM_DIFF_THRESHOLD_HIGH_UV (8 * 8 * 2) |
| 27 #define SUM_DIFF_FROM_AVG_THRESH_UV (8 * 8 * 8) | 27 #define SUM_DIFF_FROM_AVG_THRESH_UV (8 * 8 * 8) |
| 28 #define MOTION_MAGNITUDE_THRESHOLD_UV (8*3) | 28 #define MOTION_MAGNITUDE_THRESHOLD_UV (8*3) |
| 29 | 29 |
| 30 #define MAX_GF_ARF_DENOISE_RANGE (16) |
| 31 |
| 30 enum vp8_denoiser_decision | 32 enum vp8_denoiser_decision |
| 31 { | 33 { |
| 32 COPY_BLOCK, | 34 COPY_BLOCK, |
| 33 FILTER_BLOCK | 35 FILTER_BLOCK |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 enum vp8_denoiser_filter_state { | 38 enum vp8_denoiser_filter_state { |
| 37 kNoFilter, | 39 kNoFilter, |
| 38 kFilterZeroMV, | 40 kFilterZeroMV, |
| 39 kFilterNonZeroMV | 41 kFilterNonZeroMV |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 loop_filter_info_n *lfi_n, | 108 loop_filter_info_n *lfi_n, |
| 107 int mb_row, | 109 int mb_row, |
| 108 int mb_col, | 110 int mb_col, |
| 109 int block_index); | 111 int block_index); |
| 110 | 112 |
| 111 #ifdef __cplusplus | 113 #ifdef __cplusplus |
| 112 } // extern "C" | 114 } // extern "C" |
| 113 #endif | 115 #endif |
| 114 | 116 |
| 115 #endif // VP8_ENCODER_DENOISING_H_ | 117 #endif // VP8_ENCODER_DENOISING_H_ |
| OLD | NEW |