pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/babl Update to 0.1.66
details: https://anonhg.NetBSD.org/pkgsrc/rev/a19727d8f3d5
branches: trunk
changeset: 397210:a19727d8f3d5
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Tue Jun 18 14:24:02 2019 +0000
description:
Update to 0.1.66
Changelog:
2019-06-12 babl-0.1.66
Added API call, babl_space_get_rgb_luminance,
Make most SIMD code-paths optional again on i686.
2019-05-25 babl-0.1.64
Support for Hygon Dhyana, and Y~aA formats for symmetric completeness.
Code consistency, gitlab CI, autotools and meson build improvements.
diffstat:
graphics/babl/Makefile | 4 +-
graphics/babl/distinfo | 12 ++--
graphics/babl/patches/patch-extensions_gggl.c | 78 +++++++++++++-------------
3 files changed, 47 insertions(+), 47 deletions(-)
diffs (truncated from 330 to 300 lines):
diff -r c4d0f13985b4 -r a19727d8f3d5 graphics/babl/Makefile
--- a/graphics/babl/Makefile Tue Jun 18 13:31:22 2019 +0000
+++ b/graphics/babl/Makefile Tue Jun 18 14:24:02 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2019/04/09 13:08:00 ryoon Exp $
+# $NetBSD: Makefile,v 1.25 2019/06/18 14:24:02 ryoon Exp $
-DISTNAME= babl-0.1.62
+DISTNAME= babl-0.1.66
CATEGORIES= graphics
MASTER_SITES= http://download.gimp.org/pub/babl/0.1/
EXTRACT_SUFX= .tar.bz2
diff -r c4d0f13985b4 -r a19727d8f3d5 graphics/babl/distinfo
--- a/graphics/babl/distinfo Tue Jun 18 13:31:22 2019 +0000
+++ b/graphics/babl/distinfo Tue Jun 18 14:24:02 2019 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.21 2019/04/09 13:08:00 ryoon Exp $
+$NetBSD: distinfo,v 1.22 2019/06/18 14:24:02 ryoon Exp $
-SHA1 (babl-0.1.62.tar.bz2) = aed2d7c093174a76179b4916f09da2769070dc2b
-RMD160 (babl-0.1.62.tar.bz2) = 58cb4dbd495251c598281ef801be62c0f1b9520f
-SHA512 (babl-0.1.62.tar.bz2) = 4d2ba25e39b8dcb122913731861fa04cafd97388a1c354afb2188e8582ac78e9e32f838e2be8e9f41ee9ac582081fdee1d79accb60e824b8b2c12995f96a8293
-Size (babl-0.1.62.tar.bz2) = 698161 bytes
-SHA1 (patch-extensions_gggl.c) = fd0c5258436ebacfc0e866a236fb863b0dfd9bc0
+SHA1 (babl-0.1.66.tar.bz2) = 21404fc852770643d830833f138b256a7ac3bcb5
+RMD160 (babl-0.1.66.tar.bz2) = c57889951538f3aedcd3b25d6f4fd4e45e778eef
+SHA512 (babl-0.1.66.tar.bz2) = 41534eea6cad21eae704af3fdce4857e9dc2b0efa48a7cfd7f98b23428198e95fc9ca2f30e522abf2fa06e907eaf4f7bbafc048b356cb5890fabcb9be21001b3
+Size (babl-0.1.66.tar.bz2) = 706100 bytes
+SHA1 (patch-extensions_gggl.c) = 4981d58c145a84a8b4f579127221e6289f13c036
diff -r c4d0f13985b4 -r a19727d8f3d5 graphics/babl/patches/patch-extensions_gggl.c
--- a/graphics/babl/patches/patch-extensions_gggl.c Tue Jun 18 13:31:22 2019 +0000
+++ b/graphics/babl/patches/patch-extensions_gggl.c Tue Jun 18 14:24:02 2019 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-extensions_gggl.c,v 1.2 2018/11/22 12:59:07 ryoon Exp $
+$NetBSD: patch-extensions_gggl.c,v 1.3 2019/06/18 14:24:03 ryoon Exp $
Patch also submitted upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=795726
Fixes crashes on alignment critical architectures.
---- extensions/gggl.c.orig 2018-10-22 16:57:44.000000000 +0000
+--- extensions/gggl.c.orig 2019-03-21 11:34:40.000000000 +0000
+++ extensions/gggl.c
-@@ -56,12 +56,15 @@ conv_F_8 (const Babl *conversion,unsigne
+@@ -59,12 +59,15 @@ conv_F_8 (const Babl *conversion,
while (n--)
{
@@ -26,8 +26,8 @@
dst += 1;
src += 4;
-@@ -72,21 +75,26 @@ static void
- conv_F_16 (const Babl *conversion,unsigned char *src, unsigned char *dst, long samples)
+@@ -78,21 +81,26 @@ conv_F_16 (const Babl *conversion,
+ long samples)
{
long n = samples;
+ unsigned short v;
@@ -40,24 +40,24 @@
if (f < 0.0)
{
- *(unsigned short *) dst = 0;
-+ v = 0;
-+ memcpy(dst, &v, sizeof(v));
++ v = 0;
++ memcpy(dst, &v, sizeof(v));
}
else if (f > 1.0)
{
- *(unsigned short *) dst = 65535;
+ v = 65535;
-+ memcpy(dst, &v, sizeof(v));
++ memcpy(dst, &v, sizeof(v));
}
else
{
- *(unsigned short *) dst = lrint (f * 65535.0);
+ v = lrint (f * 65535.0);
-+ memcpy(dst, &v, sizeof(v));
++ memcpy(dst, &v, sizeof(v));
}
dst += 2;
src += 4;
-@@ -100,7 +108,9 @@ conv_8_F (const Babl *conversion,unsigne
+@@ -109,7 +117,9 @@ conv_8_F (const Babl *conversion,
while (n--)
{
@@ -68,7 +68,7 @@
dst += 4;
src += 1;
}
-@@ -113,7 +123,8 @@ conv_16_F (const Babl *conversion,unsign
+@@ -125,7 +135,8 @@ conv_16_F (const Babl *conversion,
while (n--)
{
@@ -78,7 +78,7 @@
dst += 4;
src += 2;
}
-@@ -130,13 +141,18 @@ conv_rgbaF_rgb8 (const Babl *conversion,
+@@ -145,13 +156,18 @@ conv_rgbaF_rgb8 (const Babl *conversi
for (c = 0; c < 3; c++)
{
@@ -101,7 +101,7 @@
dst += 1;
src += 4;
}
-@@ -151,7 +167,11 @@ conv_F_D (const Babl *conversion,unsigne
+@@ -169,7 +185,11 @@ conv_F_D (const Babl *conversion,
while (n--)
{
@@ -114,7 +114,7 @@
dst += 8;
src += 4;
}
-@@ -164,7 +184,11 @@ conv_D_F (const Babl *conversion,unsigne
+@@ -185,7 +205,11 @@ conv_D_F (const Babl *conversion,
while (n--)
{
@@ -127,7 +127,7 @@
dst += 4;
src += 8;
}
-@@ -189,7 +213,9 @@ conv_16_8 (const Babl *conversion,unsign
+@@ -213,7 +237,9 @@ conv_16_8 (const Babl *conversion,
while (n--)
{
@@ -138,7 +138,7 @@
dst += 1;
src += 2;
}
-@@ -201,7 +227,8 @@ conv_8_16 (const Babl *conversion,unsign
+@@ -228,7 +254,8 @@ conv_8_16 (const Babl *conversion,
long n = samples;
while (n--)
{
@@ -148,7 +148,7 @@
dst += 2;
src += 1;
}
-@@ -363,12 +390,14 @@ conv_gaF_gAF (const Babl *conversion,uns
+@@ -453,12 +480,14 @@ conv_gaF_gAF (const Babl *conversion,
while (n--)
{
@@ -167,7 +167,7 @@
dst += 4;
src += 4;
}
-@@ -381,15 +410,19 @@ conv_gAF_gaF (const Babl *conversion,uns
+@@ -474,15 +503,19 @@ conv_gAF_gaF (const Babl *conversion,
while (n--)
{
@@ -192,7 +192,7 @@
dst += 4;
src += 4;
}
-@@ -404,16 +437,9 @@ conv_rgbaF_rgbF (const Babl *conversion,
+@@ -500,16 +533,9 @@ conv_rgbaF_rgbF (const Babl *conversi
while (n--)
{
@@ -212,8 +212,8 @@
}
}
-@@ -421,15 +447,12 @@ static void
- conv_rgbF_rgbaF (const Babl *conversion,unsigned char *src, unsigned char *dst, long samples)
+@@ -520,15 +546,12 @@ conv_rgbF_rgbaF (const Babl *conversi
+ long samples)
{
long n = samples;
- float *fsrc = (void*) src;
@@ -231,7 +231,7 @@
}
}
-@@ -443,7 +466,7 @@ conv_gaF_gF (const Babl *conversion,unsi
+@@ -545,7 +568,7 @@ conv_gaF_gF (const Babl *conversion,
while (n--)
{
@@ -240,8 +240,8 @@
dst += 4;
src += 4;
src += 4;
-@@ -454,13 +477,14 @@ static void
- conv_gF_gaF (const Babl *conversion,unsigned char *src, unsigned char *dst, long samples)
+@@ -559,13 +582,14 @@ conv_gF_gaF (const Babl *conversion,
+ long samples)
{
long n = samples;
+ float one = 1.0f;
@@ -257,7 +257,7 @@
dst += 4;
}
}
-@@ -482,7 +506,7 @@ conv_gF_rgbF (const Babl *conversion,uns
+@@ -590,7 +614,7 @@ conv_gF_rgbF (const Babl *conversion,
for (c = 0; c < 3; c++)
{
@@ -266,7 +266,7 @@
dst += 4;
}
src += 4;
-@@ -531,11 +555,11 @@ conv_gaF_rgbaF (const Babl *conversion,u
+@@ -648,11 +672,11 @@ conv_gaF_rgbaF (const Babl *conversio
for (c = 0; c < 3; c++)
{
@@ -280,7 +280,7 @@
dst += 4;
src += 4;
}
-@@ -553,16 +577,20 @@ conv_rgbaF_rgbA8 (const Babl *conversion
+@@ -673,16 +697,20 @@ conv_rgbaF_rgbA8 (const Babl *convers
while (n--)
{
@@ -304,7 +304,7 @@
dst++;
src += 4;
}
-@@ -579,12 +607,17 @@ conv_rgbaF_rgb16 (const Babl *conversion
+@@ -702,12 +730,17 @@ conv_rgbaF_rgb16 (const Babl *convers
for (c = 0; c < 3; c++)
{
@@ -327,7 +327,7 @@
dst += 2;
src += 4;
}
-@@ -599,10 +632,14 @@ conv_rgbA16_rgbaF (const Babl *conversio
+@@ -725,10 +758,14 @@ conv_rgbA16_rgbaF (const Babl *conver
while (n--)
{
@@ -343,7 +343,7 @@
if (alpha == 0.0f)
recip_alpha = 10000.0;
else
-@@ -610,11 +647,15 @@ conv_rgbA16_rgbaF (const Babl *conversio
+@@ -736,11 +773,15 @@ conv_rgbA16_rgbaF (const Babl *conver
for (c = 0; c < 3; c++)
{
@@ -361,8 +361,8 @@
dst += 4;
src += 2;
}
-@@ -624,16 +665,13 @@ static void
- conv_gF_rgbaF (const Babl *conversion,unsigned char *src, unsigned char *dst, long samples)
+@@ -753,16 +794,13 @@ conv_gF_rgbaF (const Babl *conversion
+ long samples)
{
long n = samples;
+ float one = 1.0f;
@@ -382,7 +382,7 @@
dst += 4;
src += 4;
}
-@@ -648,15 +686,18 @@ conv_gF_rgbaF (const Babl *conversion,un
+@@ -777,15 +815,18 @@ conv_gF_rgbaF (const Babl *conversion
int samples)
{
long n=samples;
@@ -403,7 +403,7 @@
dst += 4;
}
}
-@@ -667,15 +708,18 @@ conv_gF_rgbaF (const Babl *conversion,un
+@@ -796,15 +837,18 @@ conv_gF_rgbaF (const Babl *conversion
int samples)
{
long n=samples;
@@ -424,7 +424,7 @@
dst += 4;
}
}
-@@ -686,15 +730,21 @@ conv_gF_rgbaF (const Babl *conversion,un
+@@ -815,15 +859,21 @@ conv_gF_rgbaF (const Babl *conversion
int samples)
{
long n=samples;
@@ -448,7 +448,7 @@
src += 2;
dst += 4;
}
-@@ -706,14 +756,12 @@ conv_gF_rgbaF (const Babl *conversion,un
+@@ -835,14 +885,12 @@ conv_gF_rgbaF (const Babl *conversion
Home |
Main Index |
Thread Index |
Old Index