Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Spline36ResizeMod(clip c, int target_width, int target_height, float "src_left", float "src_top", float "src_width", float "src_height"){
- src_left = Default(src_left,0)
- src_top = Default(src_top,0)
- src_width = Default(src_width,0)
- src_height = Default(src_height,0)
- src_width = Max(src_width, Width(c) - src_left - Sign(src_width)*src_width) # Convert to equivalent positive src_width when src_width <= 0
- MergeChroma(Spline36Resize(c,target_width,target_height,src_left,src_top,src_width,src_height),\
- Spline36Resize(c,target_width,target_height,-0.5*((src_width/target_width)-1)+src_left,src_top,src_width,src_height) )
- }
Add Comment
Please, Sign In to add comment