Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th October 2015, 19:50   #1  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 663
Sangnom2AA

Code:
import vapoursynth as vs

 ############
 #          #
 #Sangnom2AA#
 #          #
 ############
def sangnom2aa(clip, ss=2.0, aa=48, aac=None, threads=4):

    core = vs.get_core()

    if ss <= 0:
        raise ValueError("MAA2: Supersampling factor must be > 0")
	
    aac = aa-8 if (aac == None or aac >= 0) else 0
    
    width = clip.width
    height = clip.height
    ss_w = int(round(width*ss/4.0)*4)
    ss_h = int(round(height*ss/4.0)*4)

    last = core.resize.Spline(clip, ss_w, ss_h)
    last = core.std.Transpose(last)
    last = core.sangnom.SangNomMod(last, 1, aa, aac)
    last = core.std.Transpose(last)
    last = core.sangnom.SangNomMod(last, 1, aa, aac)
    last = core.resize.Spline(last, width, height)

    return last
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Nvidia GTX750 2GB DDR5 + SSD Vertex 4 256 GB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite

Last edited by Overdrive80; 14th October 2015 at 17:31.
Overdrive80 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.