GraphicsMagick: 2 new changesets
GraphicsMagick Commits <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.38437.1672618572.1567.graphicsmagick-commit@lists.sourceforge.net> |
changeset 7bd9db3d5f7b in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=7bd9db3d5f7b summary: JP2 codec must be extra enabled in libjasper, now it works. Deffect in jas_init() fixed. changeset e35f6fcc084c in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=e35f6fcc084c summary: merge heads diffstat: ChangeLog | 8 ++++++-- coders/pcd.c | 6 +++--- jp2/src/libjasper/base/jas_init.c | 4 ++-- jp2/src/libjasper/include/jasper/jas_config.h | 5 +++++ tests/rwfile.tap | 9 +++++---- www/Changelog.html | 15 +++++++++++++++ 6 files changed, 36 insertions(+), 11 deletions(-) diffs (127 lines): diff -r ddaea7fc4a5e -r e35f6fcc084c ChangeLog --- a/ChangeLog Mon Jan 02 00:29:01 2023 +0100 +++ b/ChangeLog Mon Jan 02 01:15:43 2023 +0100 @@ -1,10 +1,14 @@ +2023-01-01 Bob Friesenhahn <[email protected]> + + * coders/pcd.c (WritePCDTile): Handle writing image with a + dimension of 1. + 2023-01-02 Fojtik Jaroslav <[email protected]> - * jp2/* Update lib jasper to 2.0.33. Code cleanly compilles, but + * jp2/* Update lib jasper to 2.0.33. Code cleanly compilles, but there is still some problem. Will be solved later. - jp2/src/lib/jasper/include/jasper/stdbool2.h No longer needed. - 2023-01-01 Bob Friesenhahn <[email protected]> * magick/utility.c (GetMagickGeometry): Assure that width and diff -r ddaea7fc4a5e -r e35f6fcc084c coders/pcd.c --- a/coders/pcd.c Mon Jan 02 00:29:01 2023 +0100 +++ b/coders/pcd.c Mon Jan 02 01:15:43 2023 +0100 @@ -1050,11 +1050,11 @@ (void) GetMagickGeometry(page_geometry,&geometry.x,&geometry.y, &geometry.width,&geometry.height); if ((geometry.width % 2) != 0) - geometry.width--; + geometry.width = geometry.width > 1 ? geometry.width-1 : geometry.width+1 ; if ((geometry.height % 2) != 0) - geometry.height--; + geometry.height = geometry.height > 1 ? geometry.height-1 : geometry.height+1; tile_image=ResizeImage(image,geometry.width,geometry.height,TriangleFilter, - 1.0,&image->exception); + 1.0,&image->exception); if (tile_image == (Image *) NULL) return(False); (void) sscanf(page_geometry,"%lux%lu",&geometry.width,&geometry.height); diff -r ddaea7fc4a5e -r e35f6fcc084c jp2/src/libjasper/base/jas_init.c --- a/jp2/src/libjasper/base/jas_init.c Mon Jan 02 00:29:01 2023 +0100 +++ b/jp2/src/libjasper/base/jas_init.c Mon Jan 02 01:15:43 2023 +0100 @@ -76,9 +76,9 @@ JAS_DLLEXPORT int jas_init() { -#if defined(JAS_INCLUDE_MIF_CODEC) && defined(JAS_ENABLE_MIF_CODEC) +//#if defined(JAS_INCLUDE_MIF_CODEC) && defined(JAS_ENABLE_MIF_CODEC) jas_image_fmtops_t fmtops; -#endif +//#endif int fmtid; fmtid = 0; diff -r ddaea7fc4a5e -r e35f6fcc084c jp2/src/libjasper/include/jasper/jas_config.h --- a/jp2/src/libjasper/include/jasper/jas_config.h Mon Jan 02 00:29:01 2023 +0100 +++ b/jp2/src/libjasper/include/jasper/jas_config.h Mon Jan 02 01:15:43 2023 +0100 @@ -12,6 +12,11 @@ at this point in the configuration header file. */ +#define JAS_INCLUDE_JP2_CODEC 1 +#define JAS_INCLUDE_JPC_CODEC 1 +/* #define JAS_INCLUDE_JPG_CODEC 1 */ +/* #define JAS_INCLUDE_PGX_CODEC 1 */ + /* The preprocessor symbol JAS_WIN_MSVC_BUILD should not be defined unless the JasPer software is being built under Microsoft Windows diff -r ddaea7fc4a5e -r e35f6fcc084c tests/rwfile.tap --- a/tests/rwfile.tap Mon Jan 02 00:29:01 2023 +0100 +++ b/tests/rwfile.tap Mon Jan 02 01:15:43 2023 +0100 @@ -1,6 +1,6 @@ #!/bin/sh # -*- shell-script -*- -# Copyright (C) 2004-2017 GraphicsMagick Group +# Copyright (C) 2004-2023 GraphicsMagick Group . ./common.shi . ${top_srcdir}/tests/common.shi @@ -8,10 +8,11 @@ rwfile=./rwfile # Types we will test -check_types='bilevel gray pallette truecolor' # truecolor_1x266 +check_types='bilevel gray pallette truecolor truecolor_1x266' +check_types_noone='bilevel gray pallette truecolor' # Number of tests we plan to run -test_plan_fn 656 +test_plan_fn 818 # 820 # ART format for type in ${check_types} @@ -331,7 +332,7 @@ done # PICT format -for type in ${check_types} +for type in ${check_types_noone} do test_command_fn "PICT ${type}" ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" PICT test_command_fn "PICT ${type} (stdio)" ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" PICT diff -r ddaea7fc4a5e -r e35f6fcc084c www/Changelog.html --- a/www/Changelog.html Mon Jan 02 00:29:01 2023 +0100 +++ b/www/Changelog.html Mon Jan 02 01:15:43 2023 +0100 @@ -40,6 +40,21 @@ <p>2023-01-01 Bob Friesenhahn <<a class="reference external" href="mailto:bfriesen%40simple.dallas.tx.us">bfriesen<span>@</span>simple<span>.</span>dallas<span>.</span>tx<span>.</span>us</a>></p> <blockquote> <ul class="simple"> +<li><p>coders/pcd.c (WritePCDTile): Handle writing image with a +dimension of 1.</p></li> +</ul> +</blockquote> +<p>2023-01-02 Fojtik Jaroslav <<a class="reference external" href="mailto:JaFojtik%40yandex.com">JaFojtik<span>@</span>yandex<span>.</span>com</a>></p> +<blockquote> +<ul class="simple"> +<li><p>jp2/* Update lib jasper to 2.0.33. Code cleanly compilles, but +there is still some problem. Will be solved later. +- jp2/src/lib/jasper/include/jasper/stdbool2.h No longer needed.</p></li> +</ul> +</blockquote> +<p>2023-01-01 Bob Friesenhahn <<a class="reference external" href="mailto:bfriesen%40simple.dallas.tx.us">bfriesen<span>@</span>simple<span>.</span>dallas<span>.</span>tx<span>.</span>us</a>></p> +<blockquote> +<ul class="simple"> <li><p>magick/utility.c (GetMagickGeometry): Assure that width and height are not scaled down to zero since it is an invalid value.</p></li> <li><p>coders/sun.c (ReadSUNImage): Enlarge RLE output buffer in order