DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 1 | lib_LTLIBRARIES = libjpeg.la |
DRC | 6da61db | 2013-01-19 01:06:46 +0000 | [diff] [blame] | 2 | libjpeg_la_LDFLAGS = -version-info ${LIBTOOL_CURRENT}:${SO_MINOR_VERSION}:${SO_AGE} -no-undefined |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 3 | include_HEADERS = jerror.h jmorecfg.h jpeglib.h |
| 4 | |
| 5 | if WITH_TURBOJPEG |
| 6 | lib_LTLIBRARIES += libturbojpeg.la |
DRC | 2421115 | 2013-04-27 22:18:29 +0000 | [diff] [blame] | 7 | libturbojpeg_la_LDFLAGS = -version-info 1:0:1 -no-undefined |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 8 | include_HEADERS += turbojpeg.h |
| 9 | endif |
| 10 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 11 | nodist_include_HEADERS = jconfig.h |
DRC | 0c0f304 | 2010-01-28 05:34:53 +0000 | [diff] [blame] | 12 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 13 | |
Adam Tkac | da5a1fe | 2008-10-22 11:19:25 +0000 | [diff] [blame] | 14 | HDRS = jchuff.h jdct.h jdhuff.h jerror.h jinclude.h jmemsys.h jmorecfg.h \ |
DRC | 6887f05 | 2014-04-20 09:23:01 +0000 | [diff] [blame] | 15 | jpegint.h jpeglib.h jversion.h jsimd.h jsimddct.h jpegcomp.h \ |
| 16 | jpeg_nbits_table.h |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 17 | |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 18 | libjpeg_la_SOURCES = $(HDRS) jcapimin.c jcapistd.c jccoefct.c jccolor.c \ |
| 19 | jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \ |
| 20 | jcomapi.c jcparam.c jcphuff.c jcprepct.c jcsample.c jctrans.c \ |
| 21 | jdapimin.c jdapistd.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \ |
| 22 | jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \ |
| 23 | jdmerge.c jdphuff.c jdpostct.c jdsample.c jdtrans.c jerror.c \ |
| 24 | jfdctflt.c jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c \ |
| 25 | jidctred.c jquant1.c jquant2.c jutils.c jmemmgr.c jmemnobs.c |
| 26 | |
| 27 | if WITH_ARITH |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 28 | libjpeg_la_SOURCES += jaricom.c |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 29 | endif |
| 30 | |
| 31 | if WITH_ARITH_ENC |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 32 | libjpeg_la_SOURCES += jcarith.c |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 33 | endif |
| 34 | |
| 35 | if WITH_ARITH_DEC |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 36 | libjpeg_la_SOURCES += jdarith.c |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 37 | endif |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 38 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 39 | |
| 40 | SUBDIRS = java |
| 41 | |
| 42 | |
| 43 | if WITH_TURBOJPEG |
| 44 | |
DRC | 418dbdf | 2011-05-26 10:45:06 +0000 | [diff] [blame] | 45 | libturbojpeg_la_SOURCES = $(libjpeg_la_SOURCES) turbojpeg.c turbojpeg.h \ |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 46 | transupp.c transupp.h jdatadst-tj.c jdatasrc-tj.c |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 47 | |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 48 | if WITH_JAVA |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 49 | |
| 50 | libturbojpeg_la_SOURCES += turbojpeg-jni.c |
DRC | e08c05f | 2011-03-31 08:03:26 +0000 | [diff] [blame] | 51 | libturbojpeg_la_CFLAGS = ${JNI_CFLAGS} |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 52 | TJMAPFILE = turbojpeg-mapfile.jni |
| 53 | |
| 54 | else |
| 55 | |
| 56 | TJMAPFILE = turbojpeg-mapfile |
| 57 | |
| 58 | endif |
| 59 | |
| 60 | libturbojpeg_la_SOURCES += $(TJMAPFILE) |
DRC | 6f8c668 | 2010-02-16 05:03:51 +0000 | [diff] [blame] | 61 | |
| 62 | if VERSION_SCRIPT |
DRC | 9fa9559 | 2011-02-25 00:23:44 +0000 | [diff] [blame] | 63 | libturbojpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)$(srcdir)/$(TJMAPFILE) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 64 | endif |
DRC | 6f8c668 | 2010-02-16 05:03:51 +0000 | [diff] [blame] | 65 | |
| 66 | endif |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 67 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 68 | |
| 69 | if VERSION_SCRIPT |
| 70 | libjpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)libjpeg.map |
| 71 | endif |
| 72 | |
| 73 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 74 | if WITH_SIMD |
| 75 | |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 76 | SUBDIRS += simd |
Pierre Ossman | 3a65ef4 | 2009-03-16 13:34:18 +0000 | [diff] [blame] | 77 | libjpeg_la_LIBADD = simd/libsimd.la |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 78 | libturbojpeg_la_LIBADD = simd/libsimd.la |
Pierre Ossman | 2ae181c | 2009-03-09 13:21:27 +0000 | [diff] [blame] | 79 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 80 | else |
| 81 | |
| 82 | libjpeg_la_SOURCES += jsimd_none.c |
| 83 | |
| 84 | endif |
| 85 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 86 | |
| 87 | bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom |
| 88 | noinst_PROGRAMS = jcstest |
| 89 | |
| 90 | |
| 91 | if WITH_TURBOJPEG |
| 92 | |
| 93 | bin_PROGRAMS += tjbench |
| 94 | |
| 95 | noinst_PROGRAMS += tjunittest |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 96 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 97 | tjbench_SOURCES = tjbench.c bmp.h bmp.c tjutil.h tjutil.c rdbmp.c rdppm.c \ |
DRC | 18821f8 | 2011-05-24 17:07:51 +0000 | [diff] [blame] | 98 | wrbmp.c wrppm.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 99 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 100 | tjbench_LDADD = libturbojpeg.la libjpeg.la -lm |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 101 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 102 | tjbench_CFLAGS = -DBMP_SUPPORTED -DPPM_SUPPORTED |
DRC | be49b8c | 2011-05-24 13:41:27 +0000 | [diff] [blame] | 103 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 104 | tjunittest_SOURCES = tjunittest.c tjutil.h tjutil.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 105 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 106 | tjunittest_LDADD = libturbojpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 107 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 108 | endif |
| 109 | |
| 110 | |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 111 | cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \ |
DRC | 9a341f8 | 2014-04-15 03:43:44 +0000 | [diff] [blame] | 112 | rdppm.c rdswitch.c rdtarga.c |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 113 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 114 | cjpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 115 | |
| 116 | cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 117 | -DTARGA_SUPPORTED |
| 118 | |
| 119 | djpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c djpeg.c rdcolmap.c rdswitch.c \ |
| 120 | wrbmp.c wrgif.c wrppm.c wrtarga.c |
| 121 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 122 | djpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 123 | |
| 124 | djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 125 | -DTARGA_SUPPORTED |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 126 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 127 | jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c transupp.h |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 128 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 129 | jpegtran_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 130 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 131 | rdjpgcom_SOURCES = rdjpgcom.c |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 132 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 133 | rdjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 134 | |
| 135 | wrjpgcom_SOURCES = wrjpgcom.c |
| 136 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 137 | wrjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 138 | |
DRC | b76c840 | 2011-12-19 15:01:55 +0000 | [diff] [blame] | 139 | jcstest_SOURCES = jcstest.c |
| 140 | |
| 141 | jcstest_LDADD = libjpeg.la |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 142 | |
DRC | cbda81a | 2010-06-05 01:12:35 +0000 | [diff] [blame] | 143 | dist_man1_MANS = cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 144 | |
DRC | 2f12d7a | 2013-01-13 01:19:09 +0000 | [diff] [blame] | 145 | DOCS= coderules.txt jconfig.txt change.log rdrle.c wrrle.c BUILDING.txt \ |
| 146 | ChangeLog.txt |
DRC | a1647c8 | 2012-02-10 00:39:05 +0000 | [diff] [blame] | 147 | |
| 148 | docdir = $(datadir)/doc |
DRC | 01bf9d9 | 2012-02-10 01:52:31 +0000 | [diff] [blame] | 149 | dist_doc_DATA = README README-turbo.txt libjpeg.txt structure.txt usage.txt \ |
DRC | 9a341f8 | 2014-04-15 03:43:44 +0000 | [diff] [blame] | 150 | wizard.txt |
DRC | a1647c8 | 2012-02-10 00:39:05 +0000 | [diff] [blame] | 151 | |
| 152 | exampledir = $(datadir)/doc |
DRC | 01bf9d9 | 2012-02-10 01:52:31 +0000 | [diff] [blame] | 153 | dist_example_DATA = example.c |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 154 | |
DRC | 750e078 | 2011-05-10 21:05:49 +0000 | [diff] [blame] | 155 | |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 156 | EXTRA_DIST = win release $(DOCS) testimages CMakeLists.txt \ |
DRC | a006fba | 2011-10-27 23:25:28 +0000 | [diff] [blame] | 157 | sharedlib/CMakeLists.txt cmakescripts libjpeg.map.in doc doxygen.config \ |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 158 | jccolext.c jdcolext.c jdcol565.c jdmrgext.c jstdhuff.c |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 159 | |
| 160 | dist-hook: |
| 161 | rm -rf `find $(distdir) -name .svn` |
| 162 | |
| 163 | |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 164 | SUBDIRS += md5 |
| 165 | |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 166 | MD5_JPEG_RGB_ISLOW = 768e970dd57b340ff1b83c9d3d47c77b |
| 167 | MD5_PPM_RGB_ISLOW = 00a257f5393fef8821f2b88ac7421291 |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 168 | MD5_BMP_RGB_ISLOW_565 = f07d2e75073e4bb10f6c6f4d36e2e3be |
| 169 | MD5_BMP_RGB_ISLOW_565D = 4cfa0928ef3e6bb626d7728c924cfda4 |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 170 | MD5_JPEG_422_IFAST_OPT = 2540287b79d913f91665e660303ab2c8 |
| 171 | MD5_PPM_422_IFAST = 35bd6b3f833bad23de82acea847129fa |
| 172 | MD5_PPM_422M_IFAST = 8dbc65323d62cca7c91ba02dd1cfa81d |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 173 | MD5_BMP_422M_IFAST_565 = 3294bd4d9a1f2b3d08ea6020d0db7065 |
| 174 | MD5_BMP_422M_IFAST_565D = da98c9c7b6039511be4a79a878a9abc1 |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 175 | MD5_JPEG_420_IFAST_Q100_PROG = 990cbe0329c882420a2094da7e5adade |
| 176 | MD5_PPM_420_Q100_IFAST = 5a732542015c278ff43635e473a8a294 |
| 177 | MD5_PPM_420M_Q100_IFAST = ff692ee9323a3b424894862557c092f1 |
| 178 | MD5_JPEG_GRAY_ISLOW = 72b51f894b8f4a10b3ee3066770aa38d |
| 179 | MD5_PPM_GRAY_ISLOW = 8d3596c56eace32f205deccc229aa5ed |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 180 | MD5_PPM_GRAY_ISLOW_RGB = 116424ac07b79e5e801f00508eab48ec |
| 181 | MD5_BMP_GRAY_ISLOW_565 = 12f78118e56a2f48b966f792fedf23cc |
| 182 | MD5_BMP_GRAY_ISLOW_565D = bdbbd616441a24354c98553df5dc82db |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 183 | MD5_JPEG_420S_IFAST_OPT = 388708217ac46273ca33086b22827ed8 |
DRC | 715bb41 | 2014-05-11 10:09:07 +0000 | [diff] [blame] | 184 | # See README-turbo.txt for more details on why this next bit is necessary. |
DRC | a32b3ec | 2014-05-07 06:02:57 +0000 | [diff] [blame] | 185 | if WITH_SSE_FLOAT_DCT |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 186 | MD5_JPEG_3x2_FLOAT_PROG = 343e3f8caf8af5986ebaf0bdc13b5c71 |
| 187 | MD5_PPM_3x2_FLOAT = 1a75f36e5904d6fc3a85a43da9ad89bb |
| 188 | else |
| 189 | MD5_JPEG_3x2_FLOAT_PROG = 9bca803d2042bd1eb03819e2bf92b3e5 |
DRC | 715bb41 | 2014-05-11 10:09:07 +0000 | [diff] [blame] | 190 | MD5_PPM_3x2_FLOAT = f6bfab038438ed8f5522fbd33595dcdc |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 191 | endif |
| 192 | MD5_JPEG_420_ISLOW_ARI = e986fb0a637a8d833d96e8a6d6d84ea1 |
| 193 | MD5_JPEG_444_ISLOW_PROGARI = 0a8f1c8f66e113c3cf635df0a475a617 |
| 194 | MD5_PPM_420M_IFAST_ARI = 72b59a99bcf1de24c5b27d151bde2437 |
| 195 | MD5_JPEG_420_ISLOW = 9a68f56bc76e466aa7e52f415d0f4a5f |
| 196 | MD5_PPM_420M_ISLOW_2_1 = 9f9de8c0612f8d06869b960b05abf9c9 |
| 197 | MD5_PPM_420M_ISLOW_15_8 = b6875bc070720b899566cc06459b63b7 |
| 198 | MD5_PPM_420M_ISLOW_13_8 = bc3452573c8152f6ae552939ee19f82f |
| 199 | MD5_PPM_420M_ISLOW_11_8 = d8cc73c0aaacd4556569b59437ba00a5 |
| 200 | MD5_PPM_420M_ISLOW_9_8 = d25e61bc7eac0002f5b393aa223747b6 |
| 201 | MD5_PPM_420M_ISLOW_7_8 = ddb564b7c74a09494016d6cd7502a946 |
| 202 | MD5_PPM_420M_ISLOW_3_4 = 8ed8e68808c3fbc4ea764fc9d2968646 |
| 203 | MD5_PPM_420M_ISLOW_5_8 = a3363274999da2366a024efae6d16c9b |
| 204 | MD5_PPM_420M_ISLOW_1_2 = e692a315cea26b988c8e8b29a5dbcd81 |
| 205 | MD5_PPM_420M_ISLOW_3_8 = 79eca9175652ced755155c90e785a996 |
| 206 | MD5_PPM_420M_ISLOW_1_4 = 79cd778f8bf1a117690052cacdd54eca |
| 207 | MD5_PPM_420M_ISLOW_1_8 = 391b3d4aca640c8567d6f8745eb2142f |
| 208 | MD5_BMP_420_ISLOW_256 = 4980185e3776e89bd931736e1cddeee6 |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 209 | MD5_BMP_420_ISLOW_565 = bf9d13e16c4923b92e1faa604d7922cb |
| 210 | MD5_BMP_420_ISLOW_565D = 6bde71526acc44bcff76f696df8638d2 |
| 211 | MD5_BMP_420M_ISLOW_565 = 8dc0185245353cfa32ad97027342216f |
| 212 | MD5_BMP_420M_ISLOW_565D =d1be3a3339166255e76fa50a0d70d73e |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 213 | MD5_JPEG_CROP = b4197f377e621c4e9b1d20471432610d |
| 214 | |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 215 | test: testclean all |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 216 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 217 | if WITH_TURBOJPEG |
DRC | 38cb1ec | 2013-08-23 04:45:43 +0000 | [diff] [blame] | 218 | if WITH_JAVA |
| 219 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest |
| 220 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -bi |
| 221 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv |
| 222 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -noyuvpad |
| 223 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -bi |
| 224 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -bi -noyuvpad |
| 225 | endif |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 226 | ./tjunittest |
| 227 | ./tjunittest -alloc |
| 228 | ./tjunittest -yuv |
DRC | 910a357 | 2013-10-30 23:02:57 +0000 | [diff] [blame] | 229 | ./tjunittest -yuv -alloc |
DRC | f610d61 | 2013-04-26 10:33:29 +0000 | [diff] [blame] | 230 | ./tjunittest -yuv -noyuvpad |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 231 | endif |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 232 | |
| 233 | # These tests are carefully crafted to provide full coverage of as many of the |
| 234 | # underlying algorithms as possible (including all of the SIMD-accelerated |
| 235 | # ones.) |
| 236 | |
| 237 | # CC: null SAMP: fullsize FDCT: islow ENT: huff |
| 238 | ./cjpeg -rgb -dct int -outfile testout_rgb_islow.jpg $(srcdir)/testimages/testorig.ppm |
| 239 | md5/md5cmp $(MD5_JPEG_RGB_ISLOW) testout_rgb_islow.jpg |
| 240 | # CC: null SAMP: fullsize IDCT: islow ENT: huff |
| 241 | ./djpeg -dct int -ppm -outfile testout_rgb_islow.ppm testout_rgb_islow.jpg |
| 242 | md5/md5cmp $(MD5_PPM_RGB_ISLOW) testout_rgb_islow.ppm |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 243 | rm testout_rgb_islow.ppm |
| 244 | # CC: RGB->RGB565 SAMP: fullsize IDCT: islow ENT: huff |
| 245 | ./djpeg -dct int -rgb565 -dither none -bmp -outfile testout_rgb_islow_565.bmp testout_rgb_islow.jpg |
| 246 | md5/md5cmp $(MD5_BMP_RGB_ISLOW_565) testout_rgb_islow_565.bmp |
| 247 | rm testout_rgb_islow_565.bmp |
| 248 | # CC: RGB->RGB565 (dithered) SAMP: fullsize IDCT: islow ENT: huff |
| 249 | ./djpeg -dct int -rgb565 -bmp -outfile testout_rgb_islow_565D.bmp testout_rgb_islow.jpg |
| 250 | md5/md5cmp $(MD5_BMP_RGB_ISLOW_565D) testout_rgb_islow_565D.bmp |
| 251 | rm testout_rgb_islow_565D.bmp testout_rgb_islow.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 252 | |
| 253 | # CC: RGB->YCC SAMP: fullsize/h2v1 FDCT: ifast ENT: 2-pass huff |
| 254 | ./cjpeg -sample 2x1 -dct fast -opt -outfile testout_422_ifast_opt.jpg $(srcdir)/testimages/testorig.ppm |
| 255 | md5/md5cmp $(MD5_JPEG_422_IFAST_OPT) testout_422_ifast_opt.jpg |
| 256 | # CC: YCC->RGB SAMP: fullsize/h2v1 fancy IDCT: ifast ENT: huff |
| 257 | ./djpeg -dct fast -outfile testout_422_ifast.ppm testout_422_ifast_opt.jpg |
| 258 | md5/md5cmp $(MD5_PPM_422_IFAST) testout_422_ifast.ppm |
| 259 | rm testout_422_ifast.ppm |
| 260 | # CC: YCC->RGB SAMP: h2v1 merged IDCT: ifast ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 261 | ./djpeg -dct fast -nosmooth -outfile testout_422m_ifast.ppm testout_422_ifast_opt.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 262 | md5/md5cmp $(MD5_PPM_422M_IFAST) testout_422m_ifast.ppm |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 263 | rm testout_422m_ifast.ppm |
| 264 | # CC: YCC->RGB565 SAMP: h2v1 merged IDCT: ifast ENT: huff |
| 265 | ./djpeg -dct int -nosmooth -rgb565 -dither none -bmp -outfile testout_422m_ifast_565.bmp testout_422_ifast_opt.jpg |
| 266 | md5/md5cmp $(MD5_BMP_422M_IFAST_565) testout_422m_ifast_565.bmp |
| 267 | rm testout_422m_ifast_565.bmp |
| 268 | # CC: YCC->RGB565 (dithered) SAMP: h2v1 merged IDCT: ifast ENT: huff |
| 269 | ./djpeg -dct int -nosmooth -rgb565 -bmp -outfile testout_422m_ifast_565D.bmp testout_422_ifast_opt.jpg |
| 270 | md5/md5cmp $(MD5_BMP_422M_IFAST_565D) testout_422m_ifast_565D.bmp |
| 271 | rm testout_422m_ifast_565D.bmp testout_422_ifast_opt.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 272 | |
| 273 | # CC: RGB->YCC SAMP: fullsize/h2v2 FDCT: ifast ENT: prog huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 274 | ./cjpeg -sample 2x2 -quality 100 -dct fast -prog -outfile testout_420_q100_ifast_prog.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 275 | md5/md5cmp $(MD5_JPEG_420_IFAST_Q100_PROG) testout_420_q100_ifast_prog.jpg |
| 276 | # CC: YCC->RGB SAMP: fullsize/h2v2 fancy IDCT: ifast ENT: prog huff |
| 277 | ./djpeg -dct fast -outfile testout_420_q100_ifast.ppm testout_420_q100_ifast_prog.jpg |
| 278 | md5/md5cmp $(MD5_PPM_420_Q100_IFAST) testout_420_q100_ifast.ppm |
| 279 | rm testout_420_q100_ifast.ppm |
| 280 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: ifast ENT: prog huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 281 | ./djpeg -dct fast -nosmooth -outfile testout_420m_q100_ifast.ppm testout_420_q100_ifast_prog.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 282 | md5/md5cmp $(MD5_PPM_420M_Q100_IFAST) testout_420m_q100_ifast.ppm |
DRC | 29d30cb | 2014-05-06 22:49:02 +0000 | [diff] [blame] | 283 | rm testout_420m_q100_ifast.ppm testout_420_q100_ifast_prog.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 284 | |
| 285 | # CC: RGB->Gray SAMP: fullsize FDCT: islow ENT: huff |
| 286 | ./cjpeg -gray -dct int -outfile testout_gray_islow.jpg $(srcdir)/testimages/testorig.ppm |
| 287 | md5/md5cmp $(MD5_JPEG_GRAY_ISLOW) testout_gray_islow.jpg |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 288 | # CC: Gray->Gray SAMP: fullsize IDCT: islow ENT: huff |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 289 | ./djpeg -dct int -outfile testout_gray_islow.ppm testout_gray_islow.jpg |
| 290 | md5/md5cmp $(MD5_PPM_GRAY_ISLOW) testout_gray_islow.ppm |
| 291 | rm testout_gray_islow.ppm |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 292 | # CC: Gray->RGB SAMP: fullsize IDCT: islow ENT: huff |
| 293 | ./djpeg -dct int -rgb -outfile testout_gray_islow_rgb.ppm testout_gray_islow.jpg |
| 294 | md5/md5cmp $(MD5_PPM_GRAY_ISLOW_RGB) testout_gray_islow_rgb.ppm |
| 295 | rm testout_gray_islow_rgb.ppm |
| 296 | # CC: Gray->RGB565 SAMP: fullsize IDCT: islow ENT: huff |
| 297 | ./djpeg -dct int -rgb565 -dither none -bmp -outfile testout_gray_islow_565.bmp testout_gray_islow.jpg |
| 298 | md5/md5cmp $(MD5_BMP_GRAY_ISLOW_565) testout_gray_islow_565.bmp |
| 299 | rm testout_gray_islow_565.bmp |
| 300 | # CC: Gray->RGB565 (dithered) SAMP: fullsize IDCT: islow ENT: huff |
| 301 | ./djpeg -dct int -rgb565 -bmp -outfile testout_gray_islow_565D.bmp testout_gray_islow.jpg |
| 302 | md5/md5cmp $(MD5_BMP_GRAY_ISLOW_565D) testout_gray_islow_565D.bmp |
| 303 | rm testout_gray_islow_565D.bmp testout_gray_islow.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 304 | |
| 305 | # CC: RGB->YCC SAMP: fullsize smooth/h2v2 smooth FDCT: islow |
| 306 | # ENT: 2-pass huff |
| 307 | ./cjpeg -sample 2x2 -smooth 1 -dct int -opt -outfile testout_420s_ifast_opt.jpg $(srcdir)/testimages/testorig.ppm |
| 308 | md5/md5cmp $(MD5_JPEG_420S_IFAST_OPT) testout_420s_ifast_opt.jpg |
| 309 | rm testout_420s_ifast_opt.jpg |
| 310 | |
| 311 | # CC: RGB->YCC SAMP: fullsize/int FDCT: float ENT: prog huff |
| 312 | ./cjpeg -sample 3x2 -dct float -prog -outfile testout_3x2_float_prog.jpg $(srcdir)/testimages/testorig.ppm |
| 313 | md5/md5cmp $(MD5_JPEG_3x2_FLOAT_PROG) testout_3x2_float_prog.jpg |
| 314 | # CC: YCC->RGB SAMP: fullsize/int IDCT: float ENT: prog huff |
| 315 | ./djpeg -dct float -outfile testout_3x2_float.ppm testout_3x2_float_prog.jpg |
| 316 | md5/md5cmp $(MD5_PPM_3x2_FLOAT) testout_3x2_float.ppm |
DRC | 29d30cb | 2014-05-06 22:49:02 +0000 | [diff] [blame] | 317 | rm testout_3x2_float.ppm testout_3x2_float_prog.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 318 | |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 319 | if WITH_ARITH_ENC |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 320 | # CC: YCC->RGB SAMP: fullsize/h2v2 FDCT: islow ENT: arith |
| 321 | ./cjpeg -dct int -arithmetic -outfile testout_420_islow_ari.jpg $(srcdir)/testimages/testorig.ppm |
| 322 | md5/md5cmp $(MD5_JPEG_420_ISLOW_ARI) testout_420_islow_ari.jpg |
| 323 | rm testout_420_islow_ari.jpg |
| 324 | ./jpegtran -arithmetic -outfile testout_420_islow_ari.jpg $(srcdir)/testimages/testimgint.jpg |
| 325 | md5/md5cmp $(MD5_JPEG_420_ISLOW_ARI) testout_420_islow_ari.jpg |
| 326 | rm testout_420_islow_ari.jpg |
| 327 | # CC: YCC->RGB SAMP: fullsize FDCT: islow ENT: prog arith |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 328 | ./cjpeg -sample 1x1 -dct int -progressive -arithmetic -outfile testout_444_islow_progari.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 329 | md5/md5cmp $(MD5_JPEG_444_ISLOW_PROGARI) testout_444_islow_progari.jpg |
| 330 | rm testout_444_islow_progari.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 331 | endif |
| 332 | if WITH_ARITH_DEC |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 333 | # CC: RGB->YCC SAMP: h2v2 merged IDCT: ifast ENT: arith |
| 334 | ./djpeg -fast -ppm -outfile testout_420m_ifast_ari.ppm $(srcdir)/testimages/testimgari.jpg |
| 335 | md5/md5cmp $(MD5_PPM_420M_IFAST_ARI) testout_420m_ifast_ari.ppm |
| 336 | rm testout_420m_ifast_ari.ppm |
| 337 | ./jpegtran -outfile testout_420_islow.jpg $(srcdir)/testimages/testimgari.jpg |
| 338 | md5/md5cmp $(MD5_JPEG_420_ISLOW) testout_420_islow.jpg |
| 339 | rm testout_420_islow.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 340 | endif |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 341 | |
| 342 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 16x16 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 343 | ./djpeg -dct int -scale 2/1 -nosmooth -ppm -outfile testout_420m_islow_2_1.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 344 | md5/md5cmp $(MD5_PPM_420M_ISLOW_2_1) testout_420m_islow_2_1.ppm |
| 345 | rm testout_420m_islow_2_1.ppm |
| 346 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 15x15 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 347 | ./djpeg -dct int -scale 15/8 -nosmooth -ppm -outfile testout_420m_islow_15_8.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 348 | md5/md5cmp $(MD5_PPM_420M_ISLOW_15_8) testout_420m_islow_15_8.ppm |
| 349 | rm testout_420m_islow_15_8.ppm |
| 350 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 13x13 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 351 | ./djpeg -dct int -scale 13/8 -nosmooth -ppm -outfile testout_420m_islow_13_8.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 352 | md5/md5cmp $(MD5_PPM_420M_ISLOW_13_8) testout_420m_islow_13_8.ppm |
| 353 | rm testout_420m_islow_13_8.ppm |
| 354 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 11x11 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 355 | ./djpeg -dct int -scale 11/8 -nosmooth -ppm -outfile testout_420m_islow_11_8.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 356 | md5/md5cmp $(MD5_PPM_420M_ISLOW_11_8) testout_420m_islow_11_8.ppm |
| 357 | rm testout_420m_islow_11_8.ppm |
| 358 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 9x9 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 359 | ./djpeg -dct int -scale 9/8 -nosmooth -ppm -outfile testout_420m_islow_9_8.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 360 | md5/md5cmp $(MD5_PPM_420M_ISLOW_9_8) testout_420m_islow_9_8.ppm |
| 361 | rm testout_420m_islow_9_8.ppm |
| 362 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 7x7 islow/14x14 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 363 | ./djpeg -dct int -scale 7/8 -nosmooth -ppm -outfile testout_420m_islow_7_8.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 364 | md5/md5cmp $(MD5_PPM_420M_ISLOW_7_8) testout_420m_islow_7_8.ppm |
| 365 | rm testout_420m_islow_7_8.ppm |
| 366 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 6x6 islow/12x12 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 367 | ./djpeg -dct int -scale 3/4 -nosmooth -ppm -outfile testout_420m_islow_3_4.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 368 | md5/md5cmp $(MD5_PPM_420M_ISLOW_3_4) testout_420m_islow_3_4.ppm |
| 369 | rm testout_420m_islow_3_4.ppm |
| 370 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 5x5 islow/10x10 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 371 | ./djpeg -dct int -scale 5/8 -nosmooth -ppm -outfile testout_420m_islow_5_8.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 372 | md5/md5cmp $(MD5_PPM_420M_ISLOW_5_8) testout_420m_islow_5_8.ppm |
| 373 | rm testout_420m_islow_5_8.ppm |
| 374 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 4x4 islow/8x8 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 375 | ./djpeg -dct int -scale 1/2 -nosmooth -ppm -outfile testout_420m_islow_1_2.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 376 | md5/md5cmp $(MD5_PPM_420M_ISLOW_1_2) testout_420m_islow_1_2.ppm |
| 377 | rm testout_420m_islow_1_2.ppm |
| 378 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 3x3 islow/6x6 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 379 | ./djpeg -dct int -scale 3/8 -nosmooth -ppm -outfile testout_420m_islow_3_8.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 380 | md5/md5cmp $(MD5_PPM_420M_ISLOW_3_8) testout_420m_islow_3_8.ppm |
| 381 | rm testout_420m_islow_3_8.ppm |
| 382 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 2x2 islow/4x4 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 383 | ./djpeg -dct int -scale 1/4 -nosmooth -ppm -outfile testout_420m_islow_1_4.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 384 | md5/md5cmp $(MD5_PPM_420M_ISLOW_1_4) testout_420m_islow_1_4.ppm |
| 385 | rm testout_420m_islow_1_4.ppm |
| 386 | # CC: YCC->RGB SAMP: h2v2 merged IDCT: 1x1 islow/2x2 islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 387 | ./djpeg -dct int -scale 1/8 -nosmooth -ppm -outfile testout_420m_islow_1_8.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 388 | md5/md5cmp $(MD5_PPM_420M_ISLOW_1_8) testout_420m_islow_1_8.ppm |
| 389 | rm testout_420m_islow_1_8.ppm |
| 390 | # CC: YCC->RGB (dithered) SAMP: h2v2 fancy IDCT: islow ENT: huff |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 391 | ./djpeg -dct int -colors 256 -bmp -outfile testout_420_islow_256.bmp $(srcdir)/testimages/testorig.jpg |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 392 | md5/md5cmp $(MD5_BMP_420_ISLOW_256) testout_420_islow_256.bmp |
| 393 | rm testout_420_islow_256.bmp |
DRC | 78df2e6 | 2014-05-12 09:23:57 +0000 | [diff] [blame] | 394 | # CC: YCC->RGB565 SAMP: h2v2 fancy IDCT: islow ENT: huff |
| 395 | ./djpeg -dct int -rgb565 -dither none -bmp -outfile testout_420_islow_565.bmp $(srcdir)/testimages/testorig.jpg |
| 396 | md5/md5cmp $(MD5_BMP_420_ISLOW_565) testout_420_islow_565.bmp |
| 397 | rm testout_420_islow_565.bmp |
| 398 | # CC: YCC->RGB565 (dithered) SAMP: h2v2 fancy IDCT: islow ENT: huff |
| 399 | ./djpeg -dct int -rgb565 -bmp -outfile testout_420_islow_565D.bmp $(srcdir)/testimages/testorig.jpg |
| 400 | md5/md5cmp $(MD5_BMP_420_ISLOW_565D) testout_420_islow_565D.bmp |
| 401 | rm testout_420_islow_565D.bmp |
| 402 | # CC: YCC->RGB565 SAMP: h2v2 merged IDCT: islow ENT: huff |
| 403 | ./djpeg -dct int -nosmooth -rgb565 -dither none -bmp -outfile testout_420m_islow_565.bmp $(srcdir)/testimages/testorig.jpg |
| 404 | md5/md5cmp $(MD5_BMP_420M_ISLOW_565) testout_420m_islow_565.bmp |
| 405 | rm testout_420m_islow_565.bmp |
| 406 | # CC: YCC->RGB565 (dithered) SAMP: h2v2 merged IDCT: islow ENT: huff |
| 407 | ./djpeg -dct int -nosmooth -rgb565 -bmp -outfile testout_420m_islow_565D.bmp $(srcdir)/testimages/testorig.jpg |
| 408 | md5/md5cmp $(MD5_BMP_420M_ISLOW_565D) testout_420m_islow_565D.bmp |
| 409 | rm testout_420m_islow_565D.bmp |
DRC | 66129dc | 2014-05-06 08:58:11 +0000 | [diff] [blame] | 410 | |
| 411 | ./jpegtran -crop 120x90+20+50 -transpose -perfect -outfile testout_crop.jpg $(srcdir)/testimages/testorig.jpg |
| 412 | md5/md5cmp $(MD5_JPEG_CROP) testout_crop.jpg |
| 413 | rm testout_crop.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 414 | |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 415 | |
DRC | 34d59e7 | 2010-02-12 06:27:34 +0000 | [diff] [blame] | 416 | testclean: |
DRC | 7b99172 | 2010-06-10 19:44:56 +0000 | [diff] [blame] | 417 | rm -f testout* |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 418 | rm -f *_GRAY_*.bmp |
| 419 | rm -f *_GRAY_*.png |
| 420 | rm -f *_GRAY_*.ppm |
| 421 | rm -f *_GRAY_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 422 | rm -f *_GRAY.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 423 | rm -f *_420_*.bmp |
| 424 | rm -f *_420_*.png |
| 425 | rm -f *_420_*.ppm |
| 426 | rm -f *_420_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 427 | rm -f *_420.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 428 | rm -f *_422_*.bmp |
| 429 | rm -f *_422_*.png |
| 430 | rm -f *_422_*.ppm |
| 431 | rm -f *_422_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 432 | rm -f *_422.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 433 | rm -f *_444_*.bmp |
| 434 | rm -f *_444_*.png |
| 435 | rm -f *_444_*.ppm |
| 436 | rm -f *_444_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 437 | rm -f *_444.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 438 | rm -f *_440_*.bmp |
| 439 | rm -f *_440_*.png |
| 440 | rm -f *_440_*.ppm |
| 441 | rm -f *_440_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 442 | rm -f *_440.yuv |
DRC | 1f3635c | 2013-08-18 10:19:00 +0000 | [diff] [blame] | 443 | rm -f *_411_*.bmp |
| 444 | rm -f *_411_*.png |
| 445 | rm -f *_411_*.ppm |
| 446 | rm -f *_411_*.jpg |
| 447 | rm -f *_411.yuv |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 448 | |
DRC | cb6157b | 2012-01-31 11:38:13 +0000 | [diff] [blame] | 449 | |
| 450 | tjtest: |
| 451 | sh ./tjbenchtest |
DRC | 823fbed | 2014-03-13 20:48:38 +0000 | [diff] [blame] | 452 | sh ./tjbenchtest -yuv |
DRC | cb6157b | 2012-01-31 11:38:13 +0000 | [diff] [blame] | 453 | if WITH_JAVA |
DRC | fac3bea | 2012-09-24 02:27:55 +0000 | [diff] [blame] | 454 | sh ./tjbenchtest.java |
DRC | 7a6ed07 | 2014-03-17 11:14:52 +0000 | [diff] [blame] | 455 | sh ./tjbenchtest.java -yuv |
DRC | cb6157b | 2012-01-31 11:38:13 +0000 | [diff] [blame] | 456 | endif |
| 457 | |
| 458 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 459 | pkgscripts/libjpeg-turbo.spec: pkgscripts/libjpeg-turbo.spec.tmpl |
| 460 | cat pkgscripts/libjpeg-turbo.spec.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
| 461 | sed s@%{__bindir}@$(bindir)@g | sed s@%{__datadir}@$(datadir)@g | \ |
| 462 | sed s@%{__docdir}@$(docdir)@g | sed s@%{__includedir}@$(includedir)@g | \ |
| 463 | sed s@%{__libdir}@$(libdir)@g | sed s@%{__mandir}@$(mandir)@g \ |
| 464 | > pkgscripts/libjpeg-turbo.spec |
DRC | d1c281a | 2010-11-17 22:44:40 +0000 | [diff] [blame] | 465 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 466 | rpm: all pkgscripts/libjpeg-turbo.spec |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 467 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 468 | mkdir -p $$TMPDIR/RPMS; \ |
| 469 | ln -fs `pwd` $$TMPDIR/BUILD; \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 470 | rm -f ${PKGNAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 471 | rpmbuild -bb --define "_blddir $$TMPDIR/buildroot" \ |
DRC | 57bd84f | 2012-02-10 01:40:29 +0000 | [diff] [blame] | 472 | --define "_topdir $$TMPDIR" \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 473 | --target ${RPMARCH} pkgscripts/libjpeg-turbo.spec; \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 474 | cp $$TMPDIR/RPMS/${RPMARCH}/${PKGNAME}-${VERSION}-${BUILD}.${RPMARCH}.rpm \ |
| 475 | ${PKGNAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 476 | rm -rf $$TMPDIR |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 477 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 478 | srpm: dist-gzip pkgscripts/libjpeg-turbo.spec |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 479 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 480 | mkdir -p $$TMPDIR/RPMS; \ |
| 481 | mkdir -p $$TMPDIR/SRPMS; \ |
| 482 | mkdir -p $$TMPDIR/BUILD; \ |
| 483 | mkdir -p $$TMPDIR/SOURCES; \ |
| 484 | mkdir -p $$TMPDIR/SPECS; \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 485 | rm -f ${PKGNAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 486 | cp ${PACKAGE_NAME}-${VERSION}.tar.gz $$TMPDIR/SOURCES; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 487 | cat pkgscripts/libjpeg-turbo.spec | sed s/%{_blddir}/%{_tmppath}/g \ |
DRC | 57bd84f | 2012-02-10 01:40:29 +0000 | [diff] [blame] | 488 | | sed s/#--\>//g \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 489 | > $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 490 | rpmbuild -bs --define "_topdir $$TMPDIR" $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 491 | cp $$TMPDIR/SRPMS/${PKGNAME}-${VERSION}-${BUILD}.src.rpm \ |
| 492 | ${PKGNAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 493 | rm -rf $$TMPDIR |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 494 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 495 | pkgscripts/makedpkg: pkgscripts/makedpkg.tmpl |
| 496 | cat pkgscripts/makedpkg.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 497 | sed s@%{__docdir}@$(docdir)@g | sed s@%{__libdir}@$(libdir)@g \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 498 | > pkgscripts/makedpkg |
| 499 | |
| 500 | deb: all pkgscripts/makedpkg |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 501 | sh pkgscripts/makedpkg |
DRC | 6533b6e | 2010-02-15 14:57:18 +0000 | [diff] [blame] | 502 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 503 | pkgscripts/uninstall: pkgscripts/uninstall.tmpl |
| 504 | cat pkgscripts/uninstall.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
| 505 | sed s@%{__bindir}@$(bindir)@g | sed s@%{__datadir}@$(datadir)@g | \ |
| 506 | sed s@%{__includedir}@$(includedir)@g | sed s@%{__libdir}@$(libdir)@g | \ |
| 507 | sed s@%{__mandir}@$(mandir)@g > pkgscripts/uninstall |
| 508 | |
| 509 | pkgscripts/makemacpkg: pkgscripts/makemacpkg.tmpl |
| 510 | cat pkgscripts/makemacpkg.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
| 511 | sed s@%{__bindir}@$(bindir)@g | sed s@%{__docdir}@$(docdir)@g | \ |
| 512 | sed s@%{__libdir}@$(libdir)@g > pkgscripts/makemacpkg |
| 513 | |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 514 | if X86_64 |
| 515 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 516 | udmg: all pkgscripts/makemacpkg pkgscripts/uninstall |
DRC | 7c6ae03 | 2012-03-23 00:51:56 +0000 | [diff] [blame] | 517 | sh pkgscripts/makemacpkg -build32 ${BUILDDIR32} |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 518 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 519 | iosdmg: all pkgscripts/makemacpkg pkgscripts/uninstall |
DRC | a2a2cd6 | 2013-02-04 22:29:57 +0000 | [diff] [blame] | 520 | sh pkgscripts/makemacpkg -build32 ${BUILDDIR32} -buildarmv6 ${BUILDDIRARMV6} -buildarmv7 ${BUILDDIRARMV7} -buildarmv7s ${BUILDDIRARMV7S} |
DRC | 166c5ec | 2012-02-10 01:07:59 +0000 | [diff] [blame] | 521 | |
| 522 | else |
| 523 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 524 | iosdmg: all pkgscripts/makemacpkg pkgscripts/uninstall |
DRC | a2a2cd6 | 2013-02-04 22:29:57 +0000 | [diff] [blame] | 525 | sh pkgscripts/makemacpkg -buildarmv6 ${BUILDDIRARMV6} -buildarmv7 ${BUILDDIRARMV7} -buildarmv7s ${BUILDDIRARMV7S} |
DRC | 1fbae84 | 2012-02-09 09:23:30 +0000 | [diff] [blame] | 526 | |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 527 | endif |
| 528 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 529 | dmg: all pkgscripts/makemacpkg pkgscripts/uninstall |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 530 | sh pkgscripts/makemacpkg |
DRC | b9b1ca3 | 2010-02-17 02:24:02 +0000 | [diff] [blame] | 531 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 532 | pkgscripts/makecygwinpkg: pkgscripts/makecygwinpkg.tmpl |
| 533 | cat pkgscripts/makecygwinpkg.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
| 534 | sed s@%{__docdir}@$(docdir)@g | sed s@%{__libdir}@$(libdir)@g \ |
| 535 | > pkgscripts/makecygwinpkg |
| 536 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 537 | cygwinpkg: all pkgscripts/makecygwinpkg |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 538 | sh pkgscripts/makecygwinpkg |