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 > Avisynth Development

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 26th April 2020, 13:02   #5521  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 9,001
Cleaned up and removed some earlier scripts.
YLevels script in post #5519 Updated, Added Levels originating source code:- https://forum.doom9.org/showthread.p...75#post1909075
Update, use scalef only if BitsPerComponent > 8 [and also avs+].
Made final clamp to colorspace range optional, uncomment a line to use explicit clamp, Masktools clamps anyway so not necessary, suggest leave in-situ [commented out] as documentation.
EDIT: Original Levels source code, and YLevels script do not include any dithering [was I think added to levels in avs 2.60 Std final]. [ Maybe something for RF to think about ]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 26th April 2020 at 13:45.
StainlessS is offline  
Old 26th April 2020, 15:23   #5522  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,134
Quote:
Originally Posted by StainlessS View Post
Cleaned up and removed some earlier scripts.
YLevels script in post #5519 Updated, Added Levels originating source code:- https://forum.doom9.org/showthread.p...75#post1909075
Update, use scalef only if BitsPerComponent > 8 [and also avs+].
Made final clamp to colorspace range optional, uncomment a line to use explicit clamp, Masktools clamps anyway so not necessary, suggest leave in-situ [commented out] as documentation.
EDIT: Original Levels source code, and YLevels script do not include any dithering [was I think added to levels in avs 2.60 Std final]. [ Maybe something for RF to think about ]
thank you both pinterf and StainlessS

I will add these changes as soon as possible

dithering in 2.60 Std? it mean using lsb or some hack, so it's unlikely, unless you made it dll here are the all functions https://github.com/realfinder/AVS-St...Levels_mt.avsi

edit: 255 scalef can be replaced with range_max
__________________
See My Avisynth Stuff

Last edited by real.finder; 26th April 2020 at 15:27.
real.finder is offline  
Old 26th April 2020, 16:11   #5523  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 9,001
Did not know if some clever stuff could be done for dithering using Expr (I aint really ever looked at Expr).
Quote:
255 scalef can be replaced with range_max
Very good to know, thanks. [Its your (adopted) baby, mod it as you suggested].
If you need asistance with the other Didee funcs, let me know [but not just now, bit busy].
EDIT:
I had thought about splitting the string into several parts wick1, wick2 etc,
so could provide line wrap for subtitle, and append parts for the actual functionality, maybe you add it.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 26th April 2020 at 16:17.
StainlessS is offline  
Old 26th April 2020, 18:02   #5524  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,134
Quote:
Originally Posted by StainlessS View Post
Did not know if some clever stuff could be done for dithering using Expr (I aint really ever looked at Expr).

Very good to know, thanks. [Its your (adopted) baby, mod it as you suggested].
If you need asistance with the other Didee funcs, let me know [but not just now, bit busy].
EDIT:
I had thought about splitting the string into several parts wick1, wick2 etc,
so could provide line wrap for subtitle, and append parts for the actual functionality, maybe you add it.
Expr is only for avs+, and dither need use nearby Pixels which mt_lut can't unless if dither parameter added for it

The only thing that can be done for now is add stacked hack for avs 2.6
__________________
See My Avisynth Stuff
real.finder is offline  
Old 26th April 2020, 18:04   #5525  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,134
speaking of expr()

pinterf, seems you forget about this https://forum.doom9.org/showthread.p...22#post1899122
__________________
See My Avisynth Stuff
real.finder is offline  
Old 26th April 2020, 19:34   #5526  |  Link
dREV
Registered User
 
dREV's Avatar
 
Join Date: Jan 2019
Location: Antarctica
Posts: 66
Quote:
Originally Posted by real.finder View Post
It's not that I missed it more like I haven't kept up with your thread. Made a post over at your page about your script https://forum.doom9.org/showthread.p...56#post1909256 It's not working out in 4:2:0 color depth in HEVC.

Last edited by dREV; 26th April 2020 at 19:35. Reason: stuff
dREV is offline  
Old 26th April 2020, 21:10   #5527  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,134
Quote:
Originally Posted by dREV View Post
It's not that I missed it more like I haven't kept up with your thread. Made a post over at your page about your script https://forum.doom9.org/showthread.p...56#post1909256 It's not working out in 4:2:0 color depth in HEVC.
you use input dimensions as native but anyway I fix it, but keep in mind it's 4:4:4 output, if you don't need 444 use resizer only

also I forgot to mention that it work in HBD if you want
__________________
See My Avisynth Stuff
real.finder is offline  
Old 26th April 2020, 21:15   #5528  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,850
Quote:
Originally Posted by real.finder View Post
speaking of expr()

pinterf, seems you forget about this https://forum.doom9.org/showthread.p...22#post1899122
I won't do that. We had already had AVX2 and the fma (mul and add in a single step) optimizations were already backported.
It has a more futureproof coding style with even more in-Expr optimizations.
But I think it would offer not real speed benefit at the moment. And since sekrit-twc is thinking about replacing the whole engine let's wait what magic can he do. It won't be a one-week job.
pinterf is offline  
Old 26th April 2020, 21:24   #5529  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,850
@real.finder, what about a mode25 test instead? Check rgtools site. This took one week's time including my earlier attempts on it, I do hope there are no other unavoidable modes.
pinterf is offline  
Old 26th April 2020, 21:34   #5530  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,134
Quote:
Originally Posted by pinterf View Post
@real.finder, what about a mode25 test instead? Check rgtools site. This took one week's time including my earlier attempts on it, I do hope there are no other unavoidable modes.
thanks and why not?

Code:
ColorBars(width=640, height=480, pixel_type="yv12")
SoftSharpen


SoftSharpen need mode 27, I will test mode 25 later
__________________
See My Avisynth Stuff

Last edited by real.finder; 26th April 2020 at 21:44.
real.finder is offline  
Old 26th April 2020, 21:57   #5531  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,850
Prove it that it cannot be replaced. Just because someone has put there mode 27 twenty years ago (o.k I'm probably exaggerating, but I hope you understand what I am trying to say in general) Experiment with new, maybe the replacements are even better.
pinterf is offline  
Old 26th April 2020, 22:23   #5532  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,134
Quote:
Originally Posted by pinterf View Post
Prove it that it cannot be replaced. Just because someone has put there mode 27 twenty years ago (o.k I'm probably exaggerating, but I hope you understand what I am trying to say in general) Experiment with new, maybe the replacements are even better.
I don’t know, I don’t have enough knowledge and experience

Quote:
26 = medianblur. Based off mode 17, but preserves corners, but not thin lines.
27 = medianblur. Same as mode 26 but preserves thin lines.
don't know how 26 preserves corners, and 27 use 26 as a base

and isn't using 17 with mask (if it can be done) to get 26 then 26 with another mask to get 27 will make it slower?
__________________
See My Avisynth Stuff
real.finder is offline  
Old 26th April 2020, 23:04   #5533  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 1,691
Quote:
Originally Posted by pinterf View Post
Check rgtools site.
I saw you just released RGTools 0.99.

In the release note, you specify support for SSE2, SSE4.1 and AVX2.

I still have Sandy Bridge, that supports AVX but not AVX2. Can you include this specific optimization too into your releases?

Thanks!
__________________
@turment on Telegram
tormento is offline  
Old 27th April 2020, 00:55   #5534  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,267
Ask for a hand, get an ARM instead.
qyot27 is offline  
Old 27th April 2020, 01:08   #5535  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,134
Quote:
Originally Posted by qyot27 View Post
Ask for a hand, get an ARM instead.
https://i.imgur.com/OCNAx9K.jpg
I don't use an ARM PC but this is cool

it should work even on RISC-V right?
__________________
See My Avisynth Stuff
real.finder is offline  
Old 27th April 2020, 01:28   #5536  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,267
It'd need the correct CPU defines in config.h so it could build, but otherwise, maybe? The actual thing you're looking at there is the ability to build a plain C version (with the right toggle in avs/config.h so that it can build on ARM), with the Intel intrinsics disabled. So hypothetically, in the state it's in, if it can be built, it should be able to run so long as it's under an OS it can already handle. But it'll be slow until intrinsics/asm for those platforms get added. And probably due to the reliance on some of the cpuid stuff, Prefetch will segfault, so right now it's single threaded and no asm assist on non-x86.
qyot27 is offline  
Old 27th April 2020, 03:09   #5537  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 9,001
Impressive, Raspberry Pi yum yum.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline  
Old 27th April 2020, 05:50   #5538  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,850
Quote:
Originally Posted by tormento View Post
I saw you just released RGTools 0.99.

In the release note, you specify support for SSE2, SSE4.1 and AVX2.

I still have Sandy Bridge, that supports AVX but not AVX2. Can you include this specific optimization too into your releases?

Thanks!
Unfortunately not.
AVX is not for integer data.
pinterf is offline  
Old 27th April 2020, 08:15   #5539  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,191
Over 100 x64 plugins, and counting!!!

Hi everyone, I just want to say thanks to all responsible for the continued work on AviSynth+. There are now over 100+ 64-bit plugins available to use and still a handful missing.

http://avisynth.nl/index.php/Category:Plugins_x64

Reel.Deel is offline  
Old 27th April 2020, 08:29   #5540  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 1,691
Quote:
Originally Posted by pinterf View Post
Unfortunately not. AVX is not for integer data.
Understood. And why not the complete set of SSE, i.e. 4.2, but 4.1 only?
__________________
@turment on Telegram
tormento 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 16:22.


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