From 2adee95f61337f1618cb8c33609dfeb1046ace14 Mon Sep 17 00:00:00 2001 From: luofl Date: Fri, 31 Aug 2018 12:24:44 +0800 Subject: [PATCH] Make function `compare_coef` in `alf.c` as static funciton --- source/encoder/alf.c | 4 +++- source/encoder/alf.h | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/encoder/alf.c b/source/encoder/alf.c index dc9c0b6..c86dc82 100644 --- a/source/encoder/alf.c +++ b/source/encoder/alf.c @@ -1683,6 +1683,7 @@ void xfindBestFilterVarPred(alf_ctx_t *Enc_ALF, double ySym[ALF_MAX_NUM_COEF][AL /* --------------------------------------------------------------------------- */ +static int compare_coef(const void *value1, const void *value2) { DhNc *a = (DhNc*)value1; @@ -1693,7 +1694,8 @@ int compare_coef(const void *value1, const void *value2) /* --------------------------------------------------------------------------- */ -static void xQuantFilterCoef(double *hh, int *qh) +static +void xQuantFilterCoef(double *hh, int *qh) { int i; const int N = (int)ALF_MAX_NUM_COEF; diff --git a/source/encoder/alf.h b/source/encoder/alf.h index 1044414..2b2ae3f 100644 --- a/source/encoder/alf.h +++ b/source/encoder/alf.h @@ -50,7 +50,4 @@ void alf_filter_one_frame(xavs2_t *h); void alf_get_statistics_lcu(xavs2_t *h, int lcu_x, int lcu_y, xavs2_frame_t *p_org, xavs2_frame_t *p_rec); -#define compare_coef FPFX(compare_coef) -int compare_coef(const void *value1, const void *value2); - #endif // XAVS2_ALF_H -- Gitee