Thread: AviSynth Q&A
View Single Post
Old 12th April 2015, 16:26   #102  |  Link
creaothceann
Registered User
 
Join Date: Jul 2010
Location: Germany
Posts: 357
The first version is the short form of

Code:
last = Crop(last, 0, 10, 0, -10)
last = Spline64Resize(last, 1280, 720)
...and the second version is the short form of

Code:
last = Spline64Resize(Crop(last, 0, 10, 0, -10), 1280, 720)
The difference is that in the second version, the implied (hidden) variable "last" is not modified between the lines. Consider this example:

Code:
Version
PointResize(Width * 2, Height * 2)
PointResize(Width / 2, Height / 2)
Result_1 = last

Version
PointResize(Width * 2, Height * 2).PointResize(Width / 2, Height / 2)
Result_2 = last
Clip "Result_1" will have the same content as the result of "Version", but clip "Result_2" will be half the size of "Version" because "Width" and "Height" refer to clip "last" when not prefixed with a clip variable name.

Expanded to its full form the example looks like this:

Code:
a = Version
b = PointResize(a, a.Width * 2, a.Height * 2)
c = PointResize(b, b.Width / 2, b.Height / 2)
Result_1 = c

d = Version
e = PointResize(PointResize(d, d.Width * 2, d.Height * 2), d.Width / 2, d.Height / 2)
Result_2 = e
Btw. an easy way to add a blur effect would be this:

Code:
BilinearResize(int(Width * 0.75), int(Height * 0.75)).BilinearResize(Width, Height)

Last edited by creaothceann; 12th April 2015 at 16:41.
creaothceann is offline   Reply With Quote