From 1a29fd2fc395d31d3cfdca8d486b56cd2219dc2c Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 16 Aug 2024 10:57:59 -0700 Subject: [PATCH] make VP8LPredictor[01]_C() static Only predictors 2-13 are reused in lossless_enc.c. Change-Id: Ia3a7342fccfb44b9ad5297f48d6be2d96af68ec8 --- src/dsp/lossless.c | 8 ++++---- src/dsp/lossless.h | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/dsp/lossless.c b/src/dsp/lossless.c index 9f812094..e7cbfd9e 100644 --- a/src/dsp/lossless.c +++ b/src/dsp/lossless.c @@ -107,14 +107,14 @@ static WEBP_INLINE uint32_t Select(uint32_t a, uint32_t b, uint32_t c) { //------------------------------------------------------------------------------ // Predictors -uint32_t VP8LPredictor0_C(const uint32_t* const left, - const uint32_t* const top) { +static uint32_t VP8LPredictor0_C(const uint32_t* const left, + const uint32_t* const top) { (void)top; (void)left; return ARGB_BLACK; } -uint32_t VP8LPredictor1_C(const uint32_t* const left, - const uint32_t* const top) { +static uint32_t VP8LPredictor1_C(const uint32_t* const left, + const uint32_t* const top) { (void)top; return *left; } diff --git a/src/dsp/lossless.h b/src/dsp/lossless.h index e350e4ca..037a2386 100644 --- a/src/dsp/lossless.h +++ b/src/dsp/lossless.h @@ -32,10 +32,6 @@ typedef uint32_t (*VP8LPredictorFunc)(const uint32_t* const left, const uint32_t* const top); extern VP8LPredictorFunc VP8LPredictors[16]; -uint32_t VP8LPredictor0_C(const uint32_t* const left, - const uint32_t* const top); -uint32_t VP8LPredictor1_C(const uint32_t* const left, - const uint32_t* const top); uint32_t VP8LPredictor2_C(const uint32_t* const left, const uint32_t* const top); uint32_t VP8LPredictor3_C(const uint32_t* const left,