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: 641
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,413
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,115
@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: 641
Update r5.
  • Support 32-bit float input.
HolyWu 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 18:32.


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