hnn
4th June 2017, 22:33
AFAIK, when "chroma" is not matching with any of its valid text values, is converted then to float (or integer before high-bit-depth things). Perhaps "ignore" is not a valid floating point number (yes, I know, it should give human readable error message instead).
Reading the old_readme in Masktools2 2.2.8
chroma("") : allow to set the mode of both chroma channels in a more user-friendly way. Possible strings
are "process" ( u=v=3 ), "copy" or "copy first" ( u=v=1 ), "copy second" ( u=v=4 ), "copy third" ( u=v=5 ),
"none" ( u=v=1 ) and finally, a number "xxx" ( u=v=-xxx )
and in the readme
Avisynth+ high bit depth support (incl. planar RGB, color spaces with alpha plane are supported from v2.2.7)
All filters are now supporting 10, 12, 14, 16 bits and float
Threshold and sc_value parameters are scaled automatically to the current bit depth (v2.2.5-) from a default 8-bit value.
Y,U,V,A (and parameters chroma/alpha) negative (memset) values are scaled automatically to the current bit depth (v2.2.7-, chroma/alpha v.2.2.8) from a default 8-bit value.
Default range of such parameters can be overridden to 8-16 bits or float. Disable parameter scaling with scaleparams="none"
So I tried chroma="none" and work only with masktools2-vb1-26
chroma="1" work
GradFun2DBmod also give a problem with the new Masktools2 in Avisynth 2.6 MT total crash
Crash details (best guess as to cause)
An out-of-bounds memory access (access violation) occurred in module 'VirtualDub'
reading address 000000CC
In Avisynth+ gray screen
Error reading source frame 0: Avisynth read error: CAVIStreamSynth: System exception - Access Violation at 0X000000CC
SmoothDeblock3 don't work with Avisynth+
Avisynth open failure:
Script error: expected a variable name
(SmoothDeblock3.avs, line 38, column 6)
Last line
function Dim(string arr, int size, val initValue)
{
# create "base" string variable whose value is its name. every Eval in internal array functions
# needs this to build the element's name
Eval("global " + arr + "=" + chr(34) + arr + chr(34))
# store size so that Length() is O(1)
Eval("global " + arr + "Length = " + string(size))
# create each element
global DimThunkVal = initValue # thunk requires this in case it's a clip
for(0, "<="+string(size), "+1", arr + ".set(i, " + thunk(initValue, "DimThunkVal") + ")")
}
I have written all here, thanks of support!
Reading the old_readme in Masktools2 2.2.8
chroma("") : allow to set the mode of both chroma channels in a more user-friendly way. Possible strings
are "process" ( u=v=3 ), "copy" or "copy first" ( u=v=1 ), "copy second" ( u=v=4 ), "copy third" ( u=v=5 ),
"none" ( u=v=1 ) and finally, a number "xxx" ( u=v=-xxx )
and in the readme
Avisynth+ high bit depth support (incl. planar RGB, color spaces with alpha plane are supported from v2.2.7)
All filters are now supporting 10, 12, 14, 16 bits and float
Threshold and sc_value parameters are scaled automatically to the current bit depth (v2.2.5-) from a default 8-bit value.
Y,U,V,A (and parameters chroma/alpha) negative (memset) values are scaled automatically to the current bit depth (v2.2.7-, chroma/alpha v.2.2.8) from a default 8-bit value.
Default range of such parameters can be overridden to 8-16 bits or float. Disable parameter scaling with scaleparams="none"
So I tried chroma="none" and work only with masktools2-vb1-26
chroma="1" work
GradFun2DBmod also give a problem with the new Masktools2 in Avisynth 2.6 MT total crash
Crash details (best guess as to cause)
An out-of-bounds memory access (access violation) occurred in module 'VirtualDub'
reading address 000000CC
In Avisynth+ gray screen
Error reading source frame 0: Avisynth read error: CAVIStreamSynth: System exception - Access Violation at 0X000000CC
SmoothDeblock3 don't work with Avisynth+
Avisynth open failure:
Script error: expected a variable name
(SmoothDeblock3.avs, line 38, column 6)
Last line
function Dim(string arr, int size, val initValue)
{
# create "base" string variable whose value is its name. every Eval in internal array functions
# needs this to build the element's name
Eval("global " + arr + "=" + chr(34) + arr + chr(34))
# store size so that Length() is O(1)
Eval("global " + arr + "Length = " + string(size))
# create each element
global DimThunkVal = initValue # thunk requires this in case it's a clip
for(0, "<="+string(size), "+1", arr + ".set(i, " + thunk(initValue, "DimThunkVal") + ")")
}
I have written all here, thanks of support!