]> granicus.if.org Git - libvpx/commitdiff
Add static syntax to total_adj_strong_thresh
authorJingning Han <jingning@google.com>
Fri, 7 Aug 2015 19:56:41 +0000 (12:56 -0700)
committerJingning Han <jingning@google.com>
Sat, 8 Aug 2015 00:26:25 +0000 (17:26 -0700)
Change-Id: I34cc7b500d19a79f29c5ad241f602c1bc269446e

vp9/encoder/vp9_denoiser.c
vp9/encoder/vp9_denoiser.h

index f1d73790a773146dc757daee4d9db97b7bf6ab65..1f9a28c1e24e2be8900c282f0c1975dd6210e29f 100644 (file)
@@ -63,10 +63,6 @@ static int sse_diff_thresh(BLOCK_SIZE bs, int increase_denoising,
   }
 }
 
-int total_adj_strong_thresh(BLOCK_SIZE bs, int increase_denoising) {
-  return (1 << num_pels_log2_lookup[bs]) * (increase_denoising ? 3 : 2);
-}
-
 static int total_adj_weak_thresh(BLOCK_SIZE bs, int increase_denoising) {
   return (1 << num_pels_log2_lookup[bs]) * (increase_denoising ? 3 : 2);
 }
index 8eb5da1b8aa1edd49ae3939d1c7598ed8d17a239..b2af792bb1cd05c8b6e7fd81013ee37b3e1265be 100644 (file)
@@ -57,7 +57,12 @@ int vp9_denoiser_alloc(VP9_DENOISER *denoiser, int width, int height,
                        int border);
 
 #if CONFIG_VP9_TEMPORAL_DENOISING
-int total_adj_strong_thresh(BLOCK_SIZE bs, int increase_denoising);
+// This function is used by both c and sse2 denoiser implementations.
+// Define it as a static function within the scope where vp9_denoiser.h
+// is referenced.
+static int total_adj_strong_thresh(BLOCK_SIZE bs, int increase_denoising) {
+  return (1 << num_pels_log2_lookup[bs]) * (increase_denoising ? 3 : 2);
+}
 #endif
 
 void vp9_denoiser_free(VP9_DENOISER *denoiser);