Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: gaussian resize #186

Open
dnjulek opened this issue Nov 24, 2022 · 0 comments
Open

Feature request: gaussian resize #186

dnjulek opened this issue Nov 24, 2022 · 0 comments

Comments

@dnjulek
Copy link

dnjulek commented Nov 24, 2022

Very useful for GaussianBlur with large sigmas:

def gauss_fmtc(src: vs.VideoNode, sigma: float = 2) -> vs.VideoNode:
    wsrc, hsrc = src.width, src.height
    wdown, hdown = round(wsrc/sigma), round(hsrc/sigma)
    src = src.resize.Bilinear(wdown, hdown)
    return src.fmtc.resample(wsrc, hsrc, kernel='gauss', a1=9)

src = core.std.BlankClip(None, 1920, 1080, vs.GRAYS, 10000, keep=True)
gauss_fmtc(src, sigma=50).set_output()

# Output 10000 frames in 7.53 seconds (1328.10 fps)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant