| 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 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 PICK_MODE_CONTEXT *ctx); | 50 PICK_MODE_CONTEXT *ctx); |
| 51 | 51 |
| 52 int vp9_denoiser_alloc(VP9_DENOISER *denoiser, int width, int height, | 52 int vp9_denoiser_alloc(VP9_DENOISER *denoiser, int width, int height, |
| 53 int ssx, int ssy, | 53 int ssx, int ssy, |
| 54 #if CONFIG_VP9_HIGHBITDEPTH | 54 #if CONFIG_VP9_HIGHBITDEPTH |
| 55 int use_highbitdepth, | 55 int use_highbitdepth, |
| 56 #endif | 56 #endif |
| 57 int border); | 57 int border); |
| 58 | 58 |
| 59 #if CONFIG_VP9_TEMPORAL_DENOISING | 59 #if CONFIG_VP9_TEMPORAL_DENOISING |
| 60 int total_adj_strong_thresh(BLOCK_SIZE bs, int increase_denoising); | 60 // This function is used by both c and sse2 denoiser implementations. |
| 61 // Define it as a static function within the scope where vp9_denoiser.h |
| 62 // is referenced. |
| 63 static int total_adj_strong_thresh(BLOCK_SIZE bs, int increase_denoising) { |
| 64 return (1 << num_pels_log2_lookup[bs]) * (increase_denoising ? 3 : 2); |
| 65 } |
| 61 #endif | 66 #endif |
| 62 | 67 |
| 63 void vp9_denoiser_free(VP9_DENOISER *denoiser); | 68 void vp9_denoiser_free(VP9_DENOISER *denoiser); |
| 64 | 69 |
| 65 #ifdef __cplusplus | 70 #ifdef __cplusplus |
| 66 } // extern "C" | 71 } // extern "C" |
| 67 #endif | 72 #endif |
| 68 | 73 |
| 69 #endif // VP9_ENCODER_DENOISER_H_ | 74 #endif // VP9_ENCODER_DENOISER_H_ |
| OLD | NEW |