View Single Post
Old 26th February 2011, 14:11   #4  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by jmac698 View Post
Code:
splitlines(1)
mt_lutf(last,last,mode="avg",yexpr="x")
Catch 22!
Single lines are only possible with RGB, but mt_lutf requires YV12 (or planar).

However, you could do this:
Code:
h = height
PointResize(width, h*2).ConvertToYV12()
splitlines(2)
mt_lutf(last,last,mode="avg",yexpr="x")
MergeLines(h)
ConvertToRGB().PointResize(width, h)
# or use PointResize(1, h) to get 1-pixel wide result
__________________
GScript and GRunT - complex Avisynth scripting made easier

Last edited by Gavino; 26th February 2011 at 15:47.
Gavino is offline   Reply With Quote