aom: picklpf.c: make av1_get_max_filter_level() static

From 826bc39afd8e709710964e4c85ac398b4004d8e9 Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Tue, 13 Aug 2024 17:27:37 -0700
Subject: [PATCH] picklpf.c: make av1_get_max_filter_level() static

This function is unused outside of this file.

Bug: aomedia:3416
Change-Id: I40b4e232c2ec2cfbaa91e15356ea05568202679d
---
 av1/encoder/picklpf.c | 6 +++---
 av1/encoder/picklpf.h | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/av1/encoder/picklpf.c b/av1/encoder/picklpf.c
index 29a8abdfde..0851d97b5f 100644
--- a/av1/encoder/picklpf.c
+++ b/av1/encoder/picklpf.c
@@ -50,7 +50,7 @@ static void yv12_copy_plane(const YV12_BUFFER_CONFIG *src_bc,
   }
 }
 
-int av1_get_max_filter_level(const AV1_COMP *cpi) {
+static int get_max_filter_level(const AV1_COMP *cpi) {
   if (is_stat_consumption_stage_twopass(cpi)) {
     return cpi->ppi->twopass.section_intra_rating > 8 ? MAX_LOOP_FILTER * 3 / 4
                                                       : MAX_LOOP_FILTER;
@@ -105,7 +105,7 @@ static int search_filter_level(const YV12_BUFFER_CONFIG *sd, AV1_COMP *cpi,
                                int dir) {
   const AV1_COMMON *const cm = &cpi->common;
   const int min_filter_level = 0;
-  const int max_filter_level = av1_get_max_filter_level(cpi);
+  const int max_filter_level = get_max_filter_level(cpi);
   int filt_direction = 0;
   int64_t best_err;
   int filt_best;
@@ -236,7 +236,7 @@ void av1_pick_filter_level(const YV12_BUFFER_CONFIG *sd, AV1_COMP *cpi,
     lf->filter_level[1] = 0;
   } else if (method >= LPF_PICK_FROM_Q) {
     const int min_filter_level = 0;
-    const int max_filter_level = av1_get_max_filter_level(cpi);
+    const int max_filter_level = get_max_filter_level(cpi);
     const int q = av1_ac_quant_QTX(cm->quant_params.base_qindex, 0,
                                    seq_params->bit_depth);
     // based on tests result for rtc test set
diff --git a/av1/encoder/picklpf.h b/av1/encoder/picklpf.h
index 36f35bdc3b..023b2ab46d 100644
--- a/av1/encoder/picklpf.h
+++ b/av1/encoder/picklpf.h
@@ -20,7 +20,6 @@ extern "C" {
 
 struct yv12_buffer_config;
 struct AV1_COMP;
-int av1_get_max_filter_level(const AV1_COMP *cpi);
 
 /*!\brief Algorithm for AV1 loop filter level selection.
  *