Giter Club home page Giter Club logo

Comments (4)

MonoS avatar MonoS commented on August 26, 2024 1

Hi @JustinTArthur, neither my fork has other than windows build, maybe it's simpler to build but i've never released Linux/Mac build.
Anyway, i've compiled the new build, hope you'll find it useful :)

from vs-continuityfixer.

MonoS avatar MonoS commented on August 26, 2024

Hi tvasenin, i don't understand why you want this version updated when sekrit-twc/EdgeFixer exists.
If you need a version that can fix all planes in a single call you can use this code

def ContinuityFixer(src, left=[0,0,0], top=[0,0,0], right=[0,0,0], bottom=[0,0,0], radius=[0,0,0]):
	core = vs.core
	
	Y = core.std.ShufflePlanes(src, [0], vs.GRAY)
	U = core.std.ShufflePlanes(src, [1], vs.GRAY)
	V = core.std.ShufflePlanes(src, [2], vs.GRAY)
	
	if (left[0] + top[0] + right[0] + bottom[0] > 0):
		Yfix = core.edgefixer.Continuity(Y, left[0], top[0], right[0], bottom[0], radius[0])
		
	if (left[1] + top[1] + right[1] + bottom[1] > 0):
		Ufix = core.edgefixer.Continuity(U, left[1], top[1], right[1], bottom[1], radius[1])
	
	if (left[2] + top[2] + right[2] + bottom[2] > 0):
		Vfix = core.edgefixer.Continuity(V, left[2], top[2], right[2], bottom[2], radius[2])
	
	YUV = core.std.ShufflePlanes([Yfix, Ufix, Vfix], [0,0,0], vs.YUV)
	
	return YUV
	
def ReferenceFixer(src, ref=None, left=[0,0,0], top=[0,0,0], right=[0,0,0], bottom=[0,0,0], radius=[0,0,0]):
	core = vs.core
	
	if ref is None:
		refc = core.std.BoxBlur(src, hradius=2, hpasses=2, vradius=2, vpasses=2)
	else:
		refc = ref
	
	Y = core.std.ShufflePlanes(src, [0], vs.GRAY)
	U = core.std.ShufflePlanes(src, [1], vs.GRAY)
	V = core.std.ShufflePlanes(src, [2], vs.GRAY)
	
	Yref = core.std.ShufflePlanes(refc, [0], vs.GRAY)
	Uref = core.std.ShufflePlanes(refc, [1], vs.GRAY)
	Vref = core.std.ShufflePlanes(refc, [2], vs.GRAY)
	
	if (left[0] + top[0] + right[0] + bottom[0] > 0):
		Yfix = core.edgefixer.Reference(Y, Yref, left[0], top[0], right[0], bottom[0], radius[0])
		
	if (left[1] + top[1] + right[1] + bottom[1] > 0):
		Ufix = core.edgefixer.Reference(U, Uref, left[1], top[1], right[1], bottom[1], radius[1])
		
	if (left[2] + top[2] + right[2] + bottom[2] > 0):
		Vfix = core.edgefixer.Reference(V, Vref, left[2], top[2], right[2], bottom[2], radius[2])
	
	YUV = core.std.ShufflePlanes([Yfix, Ufix, Vfix], [0,0,0], vs.YUV)
	
	return YUV

from vs-continuityfixer.

JustinTArthur avatar JustinTArthur commented on August 26, 2024

I'll give vsfieldkit an edgefixer.* option, though @MonoS your fork is still more widely used as @sekrit-twc's only has a Microsoft Windows build.

from vs-continuityfixer.

JustinTArthur avatar JustinTArthur commented on August 26, 2024

neither my fork has other than windows build

Maybe not, but your README instructions are cross-platform as long as you replace ".dll" with ".so" or ".dylib" accordingly. Building the @sekrit-twc branch isn't bad on the other platforms either, but is completely manual and without instruction at the moment.

Anyway, i've compiled the new build, hope you'll find it useful :)

That's great. Thank you! The new syntax had already been featured in the popular mdbook. I suspect many were building from HEAD.

from vs-continuityfixer.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.