#AdjustY - Generic Y-Channel mapping

# AdjustY (clip, string "Y", bool "eval_frame")

# Y: the formula for the new Y value.
#    the variable input parameters are Y and N (the current frame)
# eval_frame: true=the formula is evaluated every frame. Slow, but you can use N

# for RGB colorspace each channel is treated as separate Y value,
#   so there will be colour shifts if the channel values are above 255 and have to be clipped.
# for YUY2 colorspace only the Y is changed, but remember that even Y=0 is not completely black for some UV-values

LoadPlugin("c:\myprojects\adjust\release\adjust.dll")
Version()
#ConvertToYUY2

#Example 1
#adjustY("Y+100*sin(N/2)", true)

#Example 2
adjustY("spline(Y, -1,0, N,0, N+1,240, N+16,240, N+17,0, 1000,0, true)", true)
