View Single Post
Old 27th June 2011, 20:37   #9  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by jmac698 View Post
Code:
mt_lut(yexpr="v 4 / y 2 / + u 4 / +",uexpr="v 2 / u 2 / + 128 +",vexpr="v -4 / y 2 / + u -4 / 128 +")
That won't work. The only variable you can use in mt_lut is "x", which refers to Y in yexpr, U in uexpr and V in vexpr.
To combine values from all three channels, you have to use mt_lutxyz, with each channel in a separate clip.
I'm not sure negative constants (-4) are recognised either.

Quote:
Code:
select (slice, \
    crop(0,0,0,-3*blockheight), \
    crop(0,blockheight,0,-2*blockheight), \
    crop(0,2*blockheight,0,blockheight), \
    crop(0,3*blockheight,0,0))
This can be written more simply as
crop(0,slice*blockheight,0,blockheight)
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote