I'm getting access violations when downsizing inside an
Animate call. Maybe it's just my system.
It does not happen in AVS 2.6.1, and it does not happen when "z_"
avsresize filters are substituted.
Code:
ColorbarsHD(width=640, height=400)
## optional - these do not change the test result
KillAudio
ConvertToYV12
Trim(0, length=150)
Animate(0, 120, "_MyBlur", 0.0, 60.0)
## optional - make the clip longer so AvsMeter can chew on it
R=Reverse
Last+Reverse
Loop(100)
return Last
function _MyBlur(clip C, float rad)
{
##
## HEART OF THE TEST:
## BilinearResize causes intermittent...
## | Exception 0xC0000005 [STATUS_ACCESS_VIOLATION]
## | Module: C:\Windows\system32\KERNELBASE.dll
## | Address: 0x00007FFF071D92FC
## (64-bit)
## or...
## | Exception 0xC0000005 [STATUS_ACCESS_VIOLATION]
## | Module: C:\Windows\SysWOW64\avisynth.DLL
## | Address: 0x618064ED
## (32-bit)
## but avsresize "z_BilinearResize" is OK
##
return (rad<0.1) ? C
\ : C.BilinearResize(
\ m4(Float(C.Width)/(rad+1.0)),
\ m4(FLoat(C.Height)/(rad+1.0)))
\ .GaussResize(
\ C.Width, C.Height, p=19)
}
### MOD-4-and-at-least-16 helper function
## @ Didée
function m4(float f)
{
(f<16) ? 16 : Int(Round(f/4.0)*4)
}