Guest User

Untitled

a guest
Mar 26th, 2018
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function FillBorder(clip c, int cLeft, int cTop, int cRight, int cBottom)
  2. {
  3. c
  4. ConvertToYV24(chromaresample="point")
  5. MergeChroma(PointResize(width, height, 0, 1))
  6. cLeft > 0 ? StackHorizontal(Crop(cLeft, 0, cLeft, 0),Crop(cLeft, 0, 0, 0)) : last
  7. cTop > 0 ? StackVertical(Crop(0, cTop, 0, cTop),Crop(0, cTop, 0, 0)) : last
  8. cRight > 0 ? StackHorizontal(Crop(0, 0, width-cRight, 0),Crop(width-2*cRight, 0, cRight, 0)) : last
  9. cBottom > 0 ? StackVertical(Crop(0, 0, 0, height-cBottom),Crop(0, height-2*cBottom, 0, cBottom)).ConvertToYV12(chromaresample="point") : last.ConvertToYV12(chromaresample="point")
  10. }
RAW Paste Data