Package Details: vapoursynth-plugin-dotkill-git 2.4.g0894899-1

Git Clone URL: https://aur.archlinux.org/vapoursynth-plugin-dotkill-git.git (read-only, click to copy)
Package Base: vapoursynth-plugin-dotkill-git
Description: Plugin for Vapoursynth: dotkill (GIT version)
Upstream URL: https://forum.doom9.org/showthread.php?t=173029
Licenses: GPL
Conflicts: vapoursynth-plugin-dotkill
Provides: vapoursynth-plugin-dotkill
Submitter: sl1pkn07
Maintainer: sl1pkn07
Last Packager: sl1pkn07
Votes: 1
Popularity: 0.000000
First Submitted: 2018-01-09 20:03 (UTC)
Last Updated: 2022-03-13 22:48 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

dubster commented on 2020-09-18 05:27 (UTC)

Changing -std=gnu++11 to -std=gnu++17 did the trick for me.

dubster commented on 2020-09-18 05:25 (UTC)

Failing to build, looks like author added usage of C++17 "std::clamp" function recently.

make: Entering directory '/home/adub/.cache/yay/vapoursynth-plugin-dotkill-git/src/dotkill'
g++ -c -std=gnu++11 -fPIC -march=native -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -I. -I/usr/include/vapoursynth  -o dotkill1.o dotkill1.cpp
dotkill1.cpp: In function ‘void applyMask(const int16_t*, uint8_t*, int, int, int, uint8_t*)’:
dotkill1.cpp:89:43: error: ‘clamp’ is not a member of ‘std’
   89 |             int16_t t = maskPtr[x] - std::clamp(maskPtr[x], lower, upper);
      |                                           ^~~~~
dotkill1.cpp:99:52: error: ‘clamp’ is not a member of ‘std’
   99 |                 dst[x] = static_cast<uint8_t>(std::clamp(dst[x] - t, 16, 235));
      |                                                    ^~~~~
dotkill1.cpp:100:56: error: ‘clamp’ is not a member of ‘std’
  100 |                 dst[x + 1] = static_cast<uint8_t>(std::clamp(dst[x + 1] - t, 16, 235));
      |                                                        ^~~~~
dotkill1.cpp:101:64: error: ‘clamp’ is not a member of ‘std’
  101 |                 dst[x + dstStride] = static_cast<uint8_t>(std::clamp(dst[x + dstStride] - t, 16, 235));
      |                                                                ^~~~~
dotkill1.cpp:102:68: error: ‘clamp’ is not a member of ‘std’
  102 |                 dst[x + 1 + dstStride] = static_cast<uint8_t>(std::clamp(dst[x + 1 + dstStride] - t, 16, 235));
      |                                                                    ^~~~~
dotkill1.cpp: In function ‘void applyDotcrawInverse(const VSFrameRef*, const VSFrameRef*, VSFrameRef*, int, VSCore*, const VSAPI*)’:
dotkill1.cpp:232:49: error: ‘clamp’ is not a member of ‘std’
  232 |                         dstp[w - stride] = std::clamp(srccp[w - stride] + (order ? l0diff : l2diff), 16, 235);
      |                                                 ^~~~~
make: *** [Makefile:2: all] Error 1