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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 21st August 2014, 17:29   #1  |  Link
HolyWu
Registered User
 
Join Date: Aug 2006
Location: Taiwan
Posts: 392
AddGrain

https://github.com/HomeOfVapourSynth...Synth-AddGrain

Last edited by HolyWu; 31st May 2018 at 11:30.
HolyWu is offline  
Old 21st August 2014, 20:24   #2  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
AddGrain is destructive enough that it probably wouldn't matter if you just zeroed the LSB out or replaced it with the output of the linear congruential generator already built into the filter, unless you have a very, very tiny variance. For future optimization work, you can generate the noise pattern to match the bitdepth, so that you can ignore bitdepth entirely during the getframe and just add them together directly like the Avisynth version. Getting into whether to destroy LSB entirely is a bit trickier, but it'd be even faster.

Looks like it should work as-is though.
foxyshadis is offline  
Old 24th August 2014, 16:41   #3  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
@HolyWu

Thanks for all you efforts! I guess is now possible for a native GrainFactory3
Reel.Deel is offline  
Old 9th June 2015, 18:29   #4  |  Link
HolyWu
Registered User
 
Join Date: Aug 2006
Location: Taiwan
Posts: 392
Update r5.
  • Support 32-bit float input.
HolyWu is offline  
Old 19th June 2020, 14:47   #5  |  Link
HolyWu
Registered User
 
Join Date: Aug 2006
Location: Taiwan
Posts: 392
Update r8.
  • Fix pixel rounding issue in integer formats.
  • Add SSE2, AVX2 and AVX512 optimizations.
HolyWu is offline  
Old 19th June 2020, 19:34   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Thanks
__________________
Hybrid here in the forum, homepage
Selur is offline  
Old 7th July 2020, 07:04   #7  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 397
Did anyone think about using grain applied with motion-compensated vectors, it could improve perceptual resolution.
Cary Knoop is offline  
Closed Thread

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 14:01.


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