From 13daa29d81b00cbd75ba0ab366ca96c2bf7142d5 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 1 Jun 2023 08:14:50 -0400 Subject: [PATCH] WebP/Lossy: Add `const` annotations to functions in Tables.h No behavior change. --- .../Libraries/LibGfx/ImageFormats/WebPLoaderLossyTables.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossyTables.h b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossyTables.h index 75e105599e..b254f12a4c 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossyTables.h +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossyTables.h @@ -633,9 +633,9 @@ static int constexpr ac_qlookup[] = { // clang-format on // https://datatracker.ietf.org/doc/html/rfc6386#section-14.3 "Implementation of the WHT Inversion" -inline void vp8_short_inv_walsh4x4_c(i16* input, i16* output) +inline void vp8_short_inv_walsh4x4_c(i16 const* input, i16* output) { - i16* ip = input; + i16 const* ip = input; i16* op = output; for (int i = 0; i < 4; i++) { @@ -675,12 +675,12 @@ inline void vp8_short_inv_walsh4x4_c(i16* input, i16* output) } // https://datatracker.ietf.org/doc/html/rfc6386#section-14.4 "Implementation of the DCT Inversion" -inline void short_idct4x4llm_c(i16* input, i16* output, int pitch) +inline void short_idct4x4llm_c(i16 const* input, i16* output, int pitch) { static constexpr int cospi8sqrt2minus1 = 20091; static constexpr int sinpi8sqrt2 = 35468; - i16* ip = input; + i16 const* ip = input; i16* op = output; int shortpitch = pitch >> 1;