30 Commits

Author SHA1 Message Date
Justin Maggard
347aafa6d7 Fix some build warnings when building with musl 2020-11-18 14:45:11 -08:00
Fabrice Fontaine
b5e75ff7d1 fix build with gcc 10
Define setjmp_buffer as static to avoid the following build failure with
gcc 10 (which defaults to -fno-common):

/home/buildroot/autobuild/instance-1/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: image_utils.o:(.bss+0x0): multiple definition of `setjmp_buffer'; metadata.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status

Fixes:
 - http://autobuild.buildroot.org/results/8754bb4f7d749f999d5f8ddfec587470ceec4476

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-11-18 14:45:11 -08:00
Justin Maggard
46c692fc59 metadata: Reduce stack usage in nfo parsing
64KB is a bit much for a stack buffer.  Use dynamic allocation instead.
2017-05-17 13:55:13 -07:00
Justin Maggard
c29a9cf52b image: Support rotation of monochrome JPEGs.
Extends the existing 90°-increment rotation support
(i.e. /Resized/ID?rotation=DEG) to monochrome JPEGs.

SF Patch #135 (Thanks R.L. Horn).
2015-07-30 15:53:15 -07:00
Justin Maggard
6630671af0 images: Set DCT method to JDCT_IFAST. 2015-04-10 15:32:32 -07:00
Justin Maggard
f18c3cee6f image: Improve resize quality at the edges.
get_pix() returns opaque black pixels for out-of-bounds coordinates, resulting
in spurious averages at the edges. The attached patch appears to fix the
problem, at least for the floating-point resizers.

From SF user R.L. Horn.
2015-02-09 18:01:54 -08:00
Justin Maggard
820b5857a5 Fix a few memory leaks in some error conditions during image manipulation. 2014-04-29 10:44:34 -07:00
Justin Maggard
be5f4a50eb Type data pointer variables as uint8_t. 2014-04-25 14:30:38 -07:00
Justin Maggard
9eec5b8cac Fix possible memory leak in error conditions when saving resized album art. 2014-01-16 16:07:53 -08:00
Justin Maggard
f0c7768533 * Add a flag to tell ParseNameValue() to store empty XML elements. 2012-07-10 21:12:10 +00:00
Justin Maggard
c5bb5c84b3 * Add image rotation support during resize. (mostly useful for TiVo) 2012-01-22 00:33:55 +00:00
Justin Maggard
875f0e2351 * Fix some unused result warnings.
* Handle folder art a little differently than file album art.
2011-11-19 08:26:10 +00:00
Justin Maggard
773e1f6566 * Add support for other operating systems (kFreeBSD, FreeBSD, and OSX for now).
* Switch to autoconf from genconfig.sh.
2011-09-16 23:39:58 +00:00
Justin Maggard
1fc5f599f1 * Fix a crash when scanning images without read access. (SF bug #3395670) 2011-08-22 18:24:19 +00:00
Justin Maggard
9a9270cecf * Fix some issues reported by cppcheck. 2011-05-02 23:50:52 +00:00
Justin Maggard
14a0d1ac98 * Don't expose album art images in the content directory.
* Support album art name wildcards.
2011-02-14 23:52:10 +00:00
Justin Maggard
8e0fcd56f9 * Complete/clarify license information. 2010-11-11 23:48:14 +00:00
Justin Maggard
3ce1f12d04 * Fix potential infinite loop with some bad JPEGs. 2010-07-21 20:19:39 +00:00
Justin Maggard
c779eab4de * Optimize JPEG scaling by downscaling as much as possible during decompression. 2010-06-08 17:34:29 +00:00
Justin Maggard
310f928fab * Fix memory leak in cases where XMP parsing fails. 2010-06-03 21:56:00 +00:00
Justin Maggard
516b025eca * Make JPEG resolution parsing work properly on big-endian systems. 2009-11-06 19:03:56 +00:00
Justin Maggard
a26802539f * Fall back to rudimentary XMP parsing when getting image dates from EXIF fails. 2009-11-05 23:15:29 +00:00
Justin Maggard
e685e0be3c * Use faster (lower quality) JPEG scaling methods on all non-x86 machines. 2009-10-28 20:52:59 +00:00
Justin Maggard
1ef627ac3c * Don't trust EXIF to tell us the accurate resolution; instead, parse the JPEG data ourselves.
* Add on-the-fly downscaling for JPEGs too large to fit the JPEG_LRG DLNA profile.
2009-10-13 01:20:19 +00:00
Justin Maggard
cf48b38485 * Fix a memory leak when encountering problems at a certain stage of compressing image data. 2009-06-18 02:00:05 +00:00
Justin Maggard
41fdd7f88e * Fix scanner crash due to another type of malformed embedded JPEG data. 2009-05-13 08:49:02 +00:00
Justin Maggard
0a415861e7 * Fix bug with bad album art. 2009-03-27 22:22:23 +00:00
Justin Maggard
c4d180f80d * Some image scaling tweaks for different platforms. 2009-03-20 19:33:34 +00:00
Justin Maggard
06784a31ca * Initialize some variables. 2009-03-19 21:42:13 +00:00
Justin Maggard
ac5a37b27a * Get rid of all depenence on libgd, and use libjpeg directly. 2009-03-19 08:06:27 +00:00