Skip to content

Commit 6bca3c2

Browse files
keever50xiaoxiang781216
authored andcommitted
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]>
1 parent f3e1985 commit 6bca3c2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

graphics/libjpeg/Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ include $(APPDIR)/Make.defs
2424

2525
SRC = libjpeg
2626

27+
# Decompressor
28+
2729
CSRCS += $(SRC)/jaricom.c
2830
CSRCS += $(SRC)/jcomapi.c
2931
CSRCS += $(SRC)/jdapimin.c
@@ -52,6 +54,29 @@ CSRCS += $(SRC)/jutils.c
5254
CSRCS += $(SRC)/jmemmgr.c
5355
CSRCS += $(SRC)/jmemname.c
5456

57+
# Compressor
58+
59+
CSRCS += $(SRC)/jcapimin.c
60+
CSRCS += $(SRC)/jcapistd.c
61+
CSRCS += $(SRC)/jcarith.c
62+
CSRCS += $(SRC)/jccoefct.c
63+
CSRCS += $(SRC)/jccolor.c
64+
CSRCS += $(SRC)/jcdctmgr.c
65+
CSRCS += $(SRC)/jchuff.c
66+
CSRCS += $(SRC)/jcinit.c
67+
CSRCS += $(SRC)/jcmainct.c
68+
CSRCS += $(SRC)/jcmarker.c
69+
CSRCS += $(SRC)/jcmaster.c
70+
CSRCS += $(SRC)/jcparam.c
71+
CSRCS += $(SRC)/jcprepct.c
72+
CSRCS += $(SRC)/jcsample.c
73+
CSRCS += $(SRC)/jctrans.c
74+
75+
CSRCS += $(SRC)/jdatadst.c
76+
CSRCS += $(SRC)/jfdctint.c
77+
CSRCS += $(SRC)/jfdctfst.c
78+
CSRCS += $(SRC)/jfdctflt.c
79+
5580
CFLAGS += -DTEMP_DIRECTORY=\"$(CONFIG_EXTERNALS_LIBJPEG_TEMP_DIR)\"
5681

5782
CFLAGS += -Wno-shadow -Wno-strict-prototypes -Wno-unknown-pragmas

0 commit comments

Comments
 (0)