pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/x265 x265: Use std::log(), fixes build on S...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8402ce5ba1e2
branches: trunk
changeset: 339877:8402ce5ba1e2
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Wed Sep 18 10:04:51 2019 +0000
description:
x265: Use std::log(), fixes build on SunOS.
diffstat:
multimedia/x265/distinfo | 3 ++-
multimedia/x265/patches/patch-encoder_analysis.cpp | 15 +++++++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 9834c4c1a8ac -r 8402ce5ba1e2 multimedia/x265/distinfo
--- a/multimedia/x265/distinfo Wed Sep 18 09:47:56 2019 +0000
+++ b/multimedia/x265/distinfo Wed Sep 18 10:04:51 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.29 2019/07/10 09:00:57 adam Exp $
+$NetBSD: distinfo,v 1.30 2019/09/18 10:04:51 jperkin Exp $
SHA1 (x265_3.1.1.tar.gz) = f777e15d34b13b24e959a1469b61bf393a6d6e4d
RMD160 (x265_3.1.1.tar.gz) = 680fdd3eedc00a8a10ffbd71b21c942bd4cfb809
@@ -8,4 +8,5 @@
SHA1 (patch-common_cpu.cpp) = 86dd8d4a3f9cf51312cd93695beace4c4becb8c6
SHA1 (patch-common_cpu.h) = 33e3bb9bc9cb60735aa09efa185c474ebd3e6af5
SHA1 (patch-common_quant.cpp) = 810ba9af4ec6a767af18fe59a10feb0bca626777
+SHA1 (patch-encoder_analysis.cpp) = 28b23506e7ffbb3e019eb2ae9f749054cc865c9f
SHA1 (patch-encoder_encoder.cpp) = 907db18c8e9afd51684ed886da70c23ac3d3652a
diff -r 9834c4c1a8ac -r 8402ce5ba1e2 multimedia/x265/patches/patch-encoder_analysis.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/x265/patches/patch-encoder_analysis.cpp Wed Sep 18 10:04:51 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-encoder_analysis.cpp,v 1.1 2019/09/18 10:04:51 jperkin Exp $
+
+Ensure std::log() is used.
+
+--- encoder/analysis.cpp.orig 2019-07-08 11:10:19.000000000 +0000
++++ encoder/analysis.cpp
+@@ -3702,7 +3702,7 @@ void Analysis::normFactor(const pixel* s
+
+ // 2. Calculate ac component
+ uint64_t z_k = 0;
+- int block = (int)(((log(blockSize) / log(2)) - 2) + 0.5);
++ int block = (int)(((std::log(blockSize) / std::log(2)) - 2) + 0.5);
+ primitives.cu[block].normFact(src, blockSize, shift, &z_k);
+
+ // Remove the DC part
Home |
Main Index |
Thread Index |
Old Index