media-libs/vapoursynth: treeclean
This commit is contained in:
parent
8abbc63a32
commit
1858b4380e
|
@ -1,2 +0,0 @@
|
|||
DIST vapoursynth-63.tar.gz 1869415 BLAKE2B c900573aba25cc9823f440b60ef2f939ac8715648a76f2f722894f260ae86e9ed02b57801ea5979a27e85e06722152ac3bfaa6986da768fb3cefb87183c56a38 SHA512 301985de6ea87f077129b801422b000671e8a2139743beaa473db68b86fa80f08997fdac7be258c056fa5a3c9764c3920976fb8e51829361ebc2e8819b3a666a
|
||||
DIST vapoursynth-64.tar.gz 1870065 BLAKE2B 051e2f67b6e5f56e4af0583e447148a7d60d0db4eaa05719b3cefb1a27a979c4497688cd5117be4a065072d4b9580add3f5da499d9fca8af7dc3e32318dab785 SHA512 35e57a3e91aea88bd1f48c5bb8f3f83e23fdf0eb6fb52a12bc41ee71aea9cdd2501e4ea8df5eb998b7800b30de62f4f9a0548666f4e9f4029072b64b51f1459a
|
|
@ -1,34 +0,0 @@
|
|||
From 8c68f4d42349aa3ba87ec3700a12e7fb38867748 Mon Sep 17 00:00:00 2001
|
||||
From: Fredrik Mellbin <fredrik.mellbin@gmail.com>
|
||||
Date: Wed, 27 Sep 2023 18:37:08 +0200
|
||||
Subject: [PATCH] Fix SAR calculation for real
|
||||
|
||||
---
|
||||
ChangeLog | 3 +++
|
||||
src/core/vsresize.cpp | 2 +-
|
||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ChangeLog b/ChangeLog
|
||||
index cde13add..fa88776b 100644
|
||||
--- a/ChangeLog
|
||||
+++ b/ChangeLog
|
||||
@@ -1,3 +1,6 @@
|
||||
+r65:
|
||||
+fixed the sar adjustment for real this time
|
||||
+
|
||||
r64:
|
||||
fixed compilation on osx where the default standard library doesn't have a full implementation of std::from_chars
|
||||
fixed SAR adjustment in resizer when source cropping is used
|
||||
diff --git a/src/core/vsresize.cpp b/src/core/vsresize.cpp
|
||||
index b0962580..380f76a1 100644
|
||||
--- a/src/core/vsresize.cpp
|
||||
+++ b/src/core/vsresize.cpp
|
||||
@@ -336,7 +336,7 @@ void propagate_sar(const VSMap *src_props, VSMap *dst_props, const zimg_image_fo
|
||||
muldivRational(&sar_num, &sar_den, src_format.width, dst_format.width);
|
||||
|
||||
if (!std::isnan(src_format.active_region.height) && src_format.active_region.height != src_format.height)
|
||||
- muldivRational(&sar_num, &sar_den, std::llround(src_format.active_region.height * 16), static_cast<int64_t>(dst_format.height) * 16);
|
||||
+ muldivRational(&sar_num, &sar_den, static_cast<int64_t>(dst_format.height) * 16, std::llround(src_format.active_region.height * 16));
|
||||
else
|
||||
muldivRational(&sar_num, &sar_den, dst_format.height, src_format.height);
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>florianbadie@odrling.xyz</email>
|
||||
<name>odrling</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="debug">Enable compilation options required for debugging</flag>
|
||||
<flag name="doc">Install project documentation</flag>
|
||||
<flag name="guard">Adds 32 bytes on the left and the right sides of each frame, fills them with a certain value, and checks their integrity after each filter. It can be used to detect buggy filters that write a little outside the frame</flag>
|
||||
<flag name="vapoursynth_plugins_eedi3">Enable slow edge directed interpolation filterplugin</flag>
|
||||
<flag name="vapoursynth_plugins_imagemagick">Enable Image Reader/Writer plugin using <pkg>media-gfx/imagemagick</pkg></flag>
|
||||
<flag name="vapoursynth_plugins_miscfilters">Enable miscfilters plugin</flag>
|
||||
<flag name="vapoursynth_plugins_morpho">Enable simple morphological filters plugin</flag>
|
||||
<flag name="vapoursynth_plugins_ocr">Enable video frames Optical Character Recognition plugin using <pkg>app-text/tesseract</pkg></flag>
|
||||
<flag name="vapoursynth_plugins_removegrain">Enable Remove Grain plugin</flag>
|
||||
<flag name="vapoursynth_plugins_subtext">Enable SSA/ASS subtitles plugin using <pkg>media-libs/libass</pkg></flag>
|
||||
<flag name="vapoursynth_plugins_vinverse">Enable residual combing removal plugin</flag>
|
||||
<flag name="vapoursynth_plugins_vivtc">Enable Inverse Telecine and Decimation plugin</flag>
|
||||
<flag name="shared">Build shared libraries</flag>
|
||||
<flag name="static">Build static libraries</flag>
|
||||
<flag name="vspipe">Enable support for piping output</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
|
@ -1,68 +0,0 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit autotools python-single-r1
|
||||
|
||||
DESCRIPTION="VapourSynth is an library for video manipulation."
|
||||
HOMEPAGE="http://www.vapoursynth.com/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
inherit vcs-snapshot
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/R${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1 OFL-1.1"
|
||||
SLOT="0/4"
|
||||
IUSE="doc +vspipe -debug -guard +shared -static-libs cpu_flags_x86_sse2"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND+="${PYTHON_DEPS}
|
||||
>=media-libs/zimg-2.9.3
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/cython-0.29
|
||||
doc? (
|
||||
dev-python/sphinx
|
||||
dev-python/sphinx-rtd-theme
|
||||
)
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-core \
|
||||
--enable-python-module \
|
||||
--enable-vsscript \
|
||||
$( use_enable cpu_flags_x86_sse2 x86-asm ) \
|
||||
$( use_enable shared ) \
|
||||
$( use_enable static-libs static ) \
|
||||
$( use_enable debug ) \
|
||||
$( use_enable guard guard-pattern ) \
|
||||
$( use_enable vspipe )
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
use doc && emake -C "${S}/doc" html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
use doc && HTML_DOCS="${S}/doc/_build/html/" einstalldocs
|
||||
}
|
|
@ -1,70 +0,0 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit autotools python-single-r1
|
||||
|
||||
DESCRIPTION="VapourSynth is an library for video manipulation."
|
||||
HOMEPAGE="http://www.vapoursynth.com/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
inherit vcs-snapshot
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/R${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1 OFL-1.1"
|
||||
SLOT="0/4"
|
||||
IUSE="doc +vspipe -debug -guard +shared -static-libs cpu_flags_x86_sse2"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND+="${PYTHON_DEPS}
|
||||
>=media-libs/zimg-2.9.3
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/cython-0.29
|
||||
doc? (
|
||||
dev-python/sphinx
|
||||
dev-python/sphinx-rtd-theme
|
||||
)
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-sar.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-core \
|
||||
--enable-python-module \
|
||||
--enable-vsscript \
|
||||
$( use_enable cpu_flags_x86_sse2 x86-asm ) \
|
||||
$( use_enable shared ) \
|
||||
$( use_enable static-libs static ) \
|
||||
$( use_enable debug ) \
|
||||
$( use_enable guard guard-pattern ) \
|
||||
$( use_enable vspipe )
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
use doc && emake -C "${S}/doc" html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
use doc && HTML_DOCS="${S}/doc/_build/html/" einstalldocs
|
||||
}
|
|
@ -1,68 +0,0 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit autotools python-single-r1
|
||||
|
||||
DESCRIPTION="VapourSynth is an library for video manipulation."
|
||||
HOMEPAGE="http://www.vapoursynth.com/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
inherit vcs-snapshot
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/R${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1 OFL-1.1"
|
||||
SLOT="0/4"
|
||||
IUSE="doc +vspipe -debug -guard +shared -static-libs cpu_flags_x86_sse2"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND+="${PYTHON_DEPS}
|
||||
>=media-libs/zimg-2.9.3
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/cython-0.29
|
||||
doc? (
|
||||
dev-python/sphinx
|
||||
dev-python/sphinx-rtd-theme
|
||||
)
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-core \
|
||||
--enable-python-module \
|
||||
--enable-vsscript \
|
||||
$( use_enable cpu_flags_x86_sse2 x86-asm ) \
|
||||
$( use_enable shared ) \
|
||||
$( use_enable static-libs static ) \
|
||||
$( use_enable debug ) \
|
||||
$( use_enable guard guard-pattern ) \
|
||||
$( use_enable vspipe )
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
use doc && emake -C "${S}/doc" html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
use doc && HTML_DOCS="${S}/doc/_build/html/" einstalldocs
|
||||
}
|
Loading…
Reference in New Issue