From 778f07bfd99326ce5c678e4edc50d9767fbc5931 Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Thu, 15 Aug 2024 11:44:10 -0700
Subject: [PATCH] intra_mode_search.c: make prune_intra_y_mode() static
This function is unused outside of this file.
Bug: aomedia:3416
Change-Id: Ie4d03efe230417fcd5fe485dfcdfdb90fb471509
---
av1/encoder/intra_mode_search.c | 18 +++++++++++++++---
av1/encoder/intra_mode_search.h | 16 ----------------
2 files changed, 15 insertions(+), 19 deletions(-)
diff --git a/av1/encoder/intra_mode_search.c b/av1/encoder/intra_mode_search.c
index f5810de9c..c41920df6 100644
--- a/av1/encoder/intra_mode_search.c
+++ b/av1/encoder/intra_mode_search.c
@@ -432,9 +432,21 @@ static inline int get_model_rd_index_for_pruning(
return model_rd_index_for_pruning;
}
-int prune_intra_y_mode(int64_t this_model_rd, int64_t *best_model_rd,
- int64_t top_intra_model_rd[], int max_model_cnt_allowed,
- int model_rd_index_for_pruning) {
+/*! \brief prune luma intra mode based on the model rd.
+ * \param[in] this_model_rd model rd for current mode.
+ * \param[in] best_model_rd Best model RD seen for this block so
+ * far.
+ * \param[in] top_intra_model_rd Top intra model RD seen for this
+ * block so far.
+ * \param[in] max_model_cnt_allowed The maximum number of top intra
+ * model RD allowed.
+ * \param[in] model_rd_index_for_pruning Index of the candidate used for
+ * pruning based on model rd.
+ */
+static int prune_intra_y_mode(int64_t this_model_rd, int64_t *best_model_rd,
+ int64_t top_intra_model_rd[],
+ int max_model_cnt_allowed,
+ int model_rd_index_for_pruning) {
const double thresh_best = 1.50;
const double thresh_top = 1.00;
for (int i = 0; i < max_model_cnt_allowed; i++) {
diff --git a/av1/encoder/intra_mode_search.h b/av1/encoder/intra_mode_search.h
index c03246a55..e24c0a607 100644
--- a/av1/encoder/intra_mode_search.h
+++ b/av1/encoder/intra_mode_search.h
@@ -306,22 +306,6 @@ static inline void init_intra_mode_search_state(
*/
void set_y_mode_and_delta_angle(const int mode_idx, MB_MODE_INFO *const mbmi,
int reorder_delta_angle_eval);
-
-/*! \brief prune luma intra mode based on the model rd.
- * \param[in] this_model_rd model rd for current mode.
- * \param[in] best_model_rd Best model RD seen for this block so
- * far.
- * \param[in] top_intra_model_rd Top intra model RD seen for this
- * block so far.
- * \param[in] max_model_cnt_allowed The maximum number of top intra
- * model RD allowed.
- * \param[in] model_rd_index_for_pruning Index of the candidate used for
- * pruning based on model rd.
- */
-int prune_intra_y_mode(int64_t this_model_rd, int64_t *best_model_rd,
- int64_t top_intra_model_rd[], int max_model_cnt_allowed,
- int model_rd_index_for_pruning);
-
#ifdef __cplusplus
} // extern "C"
#endif