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. |
17th February 2019, 22:22 | #4501 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
IsRGB() - Returns true for all RGB color spaces IsRGB24(), IsRGB32, IsRGB48, IsRGB64 - Self-explanatory
__________________
Groucho's Avisynth Stuff |
|
17th February 2019, 23:35 | #4503 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,493
|
Quote:
Edit: oh, I think you meant if we already knew it was RGB. True, but IsRGB24() and IsRGB32() work as expected anyway, it's the wiki that's wrong. |
|
18th February 2019, 00:58 | #4504 | Link | ||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Quote:
Same thing for the IsYUV thing.
__________________
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; 18th February 2019 at 01:01. |
||
18th February 2019, 11:01 | #4505 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
since there are no way to get avs+ version I made AvsPlusVersionNumber() function to use it in avs scripting, the 1st one (IsAvsPlus) from the wiki but with some edit since there are no need for lower case and other things for all avs+ versions I seen
Code:
function IsAvsPlus() { FindStr(VersionString, "AviSynth+") != 0 } function AvsPlusVersionNumber() { IsAvsPlus ? eval(MidStr(VersionString(),17,4)) : 0 } Subtitle(String(AvsPlusVersionNumber)) tested with r1576 and above and all fine but let hope nothing will change to make it break in future
__________________
See My Avisynth Stuff |
18th February 2019, 11:24 | #4507 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
__________________
Groucho's Avisynth Stuff |
|
18th February 2019, 11:24 | #4508 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
same script and folder work ok with x264 alone
__________________
See My Avisynth Stuff Last edited by real.finder; 18th February 2019 at 11:29. |
|
18th February 2019, 11:28 | #4509 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
that can used too, but as I said those work already since the begin of avs+, and they look nicer than any other methods
__________________
See My Avisynth Stuff Last edited by real.finder; 18th February 2019 at 11:36. |
18th February 2019, 11:38 | #4510 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Out of curiosity - Under what circumstances would you need the revision number?
__________________
Groucho's Avisynth Stuff |
18th February 2019, 11:49 | #4511 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
A check with AddAutoloadDir whould detect Avisynth Neo also as Avisynth+ (it basically is avs+ with cuda stuff) while AvsPlusVersionNumber returns 0. VersionString() returns on avs neo: "Avisynth Neo 0.1 (r2882, Neo, i386)"
It this case a check with AddAutoloadDir would be prefered. https://github.com/nekopanda/AviSynthPlus/releases
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 18th February 2019 at 11:54. |
18th February 2019, 12:00 | #4512 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
same circumstances that old VersionNumber be used, like keep support for some older versions
__________________
See My Avisynth Stuff |
18th February 2019, 12:04 | #4513 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Arrrgh. Yet another version. Let's confuse the crap out of the average user.
__________________
Groucho's Avisynth Stuff |
18th February 2019, 12:05 | #4514 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
What support? Can you be more specific? Maybe a couple of examples?
__________________
Groucho's Avisynth Stuff |
18th February 2019, 12:10 | #4515 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
__________________
See My Avisynth Stuff |
|
18th February 2019, 12:15 | #4516 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
support older avs+ in some scripts, like the old 1576 and so, since there are new functions added every time in avs+
__________________
See My Avisynth Stuff |
18th February 2019, 12:19 | #4517 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
@pinterf See above. Edit: Or maybe a few simple utility functions which return true/false such as IsHighBitDepth() (HasHighBitDepth() ?), IsMultiThreaded(), etc. Just thinking out loud...
__________________
Groucho's Avisynth Stuff Last edited by Groucho2004; 18th February 2019 at 12:34. |
|
18th February 2019, 12:24 | #4518 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
maybe but I like use it like vanilla AviSynth VersionNumber(), with < or >, simple and nice
__________________
See My Avisynth Stuff |
18th February 2019, 12:24 | #4519 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
From RT_Stats function list thing,
Code:
AviSynth+_0.1_(r2772,_MT,_i386)_ORDERED_Function_List FunctionExists "s"
__________________
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; 18th February 2019 at 12:26. |
18th February 2019, 12:28 | #4520 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
__________________
Groucho's Avisynth Stuff |
Thread Tools | Search this Thread |
Display Modes | |
|
|