From 82a40cbcbd03d40bd5ede1919b9bb8621264e469 Mon Sep 17 00:00:00 2001 From: "Kevin Witteveen (MartiniMarter)" Date: Fri, 11 Jul 2025 19:33:42 +0200 Subject: [PATCH] Add JPEG compressor support to Makefile Before this PR only the decompressor files were added to the Makefile. Now all the required compressor files are added. Decompression and compression tested on STM32H7 with 1:8 JPEG scaling. Signed-off-by: Kevin Witteveen (MartiniMarter) --- graphics/libjpeg/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/graphics/libjpeg/Makefile b/graphics/libjpeg/Makefile index 4512c34a5e0..5e94447b01c 100644 --- a/graphics/libjpeg/Makefile +++ b/graphics/libjpeg/Makefile @@ -24,6 +24,8 @@ include $(APPDIR)/Make.defs SRC = libjpeg +# Decompressor + CSRCS += $(SRC)/jaricom.c CSRCS += $(SRC)/jcomapi.c CSRCS += $(SRC)/jdapimin.c @@ -52,6 +54,29 @@ CSRCS += $(SRC)/jutils.c CSRCS += $(SRC)/jmemmgr.c CSRCS += $(SRC)/jmemname.c +# Compressor + +CSRCS += $(SRC)/jcapimin.c +CSRCS += $(SRC)/jcapistd.c +CSRCS += $(SRC)/jcarith.c +CSRCS += $(SRC)/jccoefct.c +CSRCS += $(SRC)/jccolor.c +CSRCS += $(SRC)/jcdctmgr.c +CSRCS += $(SRC)/jchuff.c +CSRCS += $(SRC)/jcinit.c +CSRCS += $(SRC)/jcmainct.c +CSRCS += $(SRC)/jcmarker.c +CSRCS += $(SRC)/jcmaster.c +CSRCS += $(SRC)/jcparam.c +CSRCS += $(SRC)/jcprepct.c +CSRCS += $(SRC)/jcsample.c +CSRCS += $(SRC)/jctrans.c + +CSRCS += $(SRC)/jdatadst.c +CSRCS += $(SRC)/jfdctint.c +CSRCS += $(SRC)/jfdctfst.c +CSRCS += $(SRC)/jfdctflt.c + CFLAGS += -DTEMP_DIRECTORY=\"$(CONFIG_EXTERNALS_LIBJPEG_TEMP_DIR)\" CFLAGS += -Wno-shadow -Wno-strict-prototypes -Wno-unknown-pragmas