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. |
8th May 2020, 12:37 | #1 | Link |
Registered User
Join Date: Feb 2020
Posts: 6
|
JincResize - Jinc (EWA Lanczos) Resampler
Port jinc-resize to VapourSynth (cpu optimizations only have AVX2), some codes references to EWA-Resampling-VS.
Github: https://github.com/Kiyamou/VapourSynth-JincResize Usage Code:
core.jinc.JincResize(clip clip, int width, int height[, int tap, float src_left, float src_top, float src_width, float src_height, int quant_x, int quant_y, float blur]) 720p -> 1080p tap=3 Code:
16bit (i5-4260U 1.4Ghz 2 Core) GCC pure c 10.328 FPS GCC avx2 9.949 FPS 32bit (i5-4260U 1.4Ghz 2 Core) GCC pure c 10.998 FPS GCC avx2 10.499 FPS 16bit (2700x 3.7Ghz 8 Core) GCC pure c 72.287 FPS GCC avx2 69.891 FPS
__________________
a C++ beginner | My Github Last edited by Sakura; 24th June 2020 at 09:05. |
8th May 2020, 13:19 | #2 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,821
|
Added to vsrepo: vsrepo install jinc
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
8th May 2020, 14:31 | #3 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
1. Why do you even bother with an avx2 version if it's slower? Just let the compiler optimize things.
2. This line looks very suspicious: https://github.com/Kiyamou/VapourSyn...sizer.hpp#L327 You're loading integer types as float if I'm not mistaken. Didn't actually try it to verify.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
8th May 2020, 15:38 | #4 | Link | |
Registered User
Join Date: Feb 2020
Posts: 6
|
Quote:
I cancel the macro definition for using avx2. Do not use avx2 by default. 2. There is indeed a problem with this line. I give up this function now, until I come up with a suitable method. Thanks.
__________________
a C++ beginner | My Github Last edited by Sakura; 8th May 2020 at 16:01. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|