This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 6bca3c2ca Add JPEG compressor support to Makefile
6bca3c2ca is described below
commit 6bca3c2ca2fcce78315ee5909510339fbe0e7cfd
Author: Kevin Witteveen (MartiniMarter) <[email protected]>
AuthorDate: Fri Jul 11 19:33:42 2025 +0200
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) <[email protected]>
---
graphics/libjpeg/Makefile | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/graphics/libjpeg/Makefile b/graphics/libjpeg/Makefile
index 4512c34a5..5e94447b0 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