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 21st August 2014, 17:29   #1  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 755
AddGrain

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

Last edited by HolyWu; 31st May 2018 at 11:30.
HolyWu is offline   Reply With Quote
Old 21st August 2014, 20:24   #2  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,529
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.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order.
foxyshadis is offline   Reply With Quote
Old 24th August 2014, 16:41   #3  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,177
@HolyWu

Thanks for all you efforts! I guess is now possible for a native GrainFactory3
Reel.Deel is offline   Reply With Quote
Old 9th June 2015, 18:29   #4  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 755
Update r5.
  • Support 32-bit float input.
HolyWu is offline   Reply With Quote
Old 19th June 2020, 14:47   #5  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 755
Update r8.
  • Fix pixel rounding issue in integer formats.
  • Add SSE2, AVX2 and AVX512 optimizations.
HolyWu is offline   Reply With Quote
Old 19th June 2020, 19:34   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,117
Thanks
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
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: 393
Did anyone think about using grain applied with motion-compensated vectors, it could improve perceptual resolution.
Cary Knoop is online now   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 02:54.


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