View Full Version : Subpixel chromashift?
joshbm
17th March 2006, 00:01
I searched around and found you could abuse a resizer as a subpixel chroma shifter:
MergeChroma(LanczosResize(Width(), Height(), xshift, yshift, Width(), Height())
That script does not work (yes, xshift, and yshift are defined as 2.0).
-joshbm
DeathWolf
18th March 2006, 02:26
you could abuse a convolution matrix to do the sub pixel shifting on the chroma then merge it back
IanB
19th March 2006, 03:26
And the "Does not work" IS ?
i.e expected bahaviour versus actual behaviour or exact error message is
Didée
19th March 2006, 04:11
Error message is: none.
expected (promised) behaviour is: do_something.
actual behaviour is: input == output
at least as of Avisynth 2.56. Had a similar effect lately, with your geniously simple looking solution to the "padding" problem, per pointresize. It kinda worked, but somehow not correct ... result of horizontal padding IIRC was different to manual padding by other means, and result of vertical padding was NIL.
Have the resizers changed in AS 2.57b ?
IanB
19th March 2006, 07:29
Opps, there seems to be some sort of boundary snafu. Also the YUY2 routine seems to wander off the edge for some values. 2.56 grew the negative width and height syntax like in crop. I will look into it.
As a workaround add a small amount (eg. 0.001) to the last 2 parameters.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.