View Full Version : How do I use MT for chromaresample="Lanczos"?
Jeremy Duncan
25th February 2008, 04:37
This is my script:
SetMemoryMax(1024)
ConvertToRGB24
chromaresample="Lanczos"
MT("
LanczosResize(1920,last.height)
",4)
MT("
LanczosResize(last.width,1080)",4,splitvertical=true)
I want to multithread the chromaresample.
I've tried a few mt combinations, but it doesn't work.
So, I decided to ask you kind people for advice about this.
I read on the avisynth wiki, it goes like this:
ConvertToXXX(clip clip [, string matrix] [, boolean interlaced] [, string chromaplacement] [,string chromaresample])
But I don't know how to put mt on this. :script:
Wilbert
25th February 2008, 23:22
How do I use MT for chromaresample="Lanczos"?
This feature will be available in AviSynth v2.60. So, i don't know which version you use, but in the official builds it is not available yet.
Terranigma
26th February 2008, 03:42
This feature will be available in AviSynth v2.60
Can we expect version 2.60 anytime soon? Can't wait to try out sincresize. Maybe you could make it as a standalone plugin until then like how you did for spline36w in that spline36 vs lanczos thread. :cool:
themostestultimategenius
26th February 2008, 03:52
^ Will sincresize be better than spline?
Terranigma
26th February 2008, 04:49
^ Will sincresize be better than spline?
The worst image quality is obtained with nearest neighbor sampling which obviously is implemented in Picture Publisher. Bilinear interpolation leads to significant losses, but is usually acceptable if only one or two sampling steps are involved. The bicubic schemes vary depending on the number of input pixels. Usually 16 pixels are used. Depending on the choosen polynomial, either a very sharp image with some artefacts, or a somewhat softer, but more homogeneous image is obtained. The Photoshop polynomial has a distinct sharpening effect, as can be seen in the brightened edges of dark features. This leads to artefacts most pronounced in the structures of the line drawing. The interpolator 'poly 3' of Panorama Tools has been tuned to closely resemble that of Photoshop.It sharpens slightly more. 'Spline16' is equally fast, but much smoother, as can be seen in the line drawing. It is also somewhat softer, as judged from the rating using Ken's image. Spline36 is identical to Spline16, but uses 36 pixels instead of 16. This results in better resolution (see the 1pixel wide line in the line drwaing) without significant artefacts. The best results are obtained using the sinc-function. This not only is more involved than the cubic polynomials, but in the present case also requires 256 pixels to interpolate for each input pixel. The sinc-function is the theoretical optimum, and can only be improved by using even more pixels.
So of course. :)
Website (http://www.all-in-one.ee/~dersch/interpolator/interpolator.html)
Now Spline256, otoh, would probably be better. :P
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.