Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FillBorder(clip c, int cLeft, int cTop, int cRight, int cBottom)
- {
- c
- ConvertToYV24(chromaresample="point")
- MergeChroma(PointResize(width, height, 0, 1))
- cLeft > 0 ? StackHorizontal(Crop(cLeft, 0, cLeft, 0),Crop(cLeft, 0, 0, 0)) : last
- cTop > 0 ? StackVertical(Crop(0, cTop, 0, cTop),Crop(0, cTop, 0, 0)) : last
- cRight > 0 ? StackHorizontal(Crop(0, 0, width-cRight, 0),Crop(width-2*cRight, 0, cRight, 0)) : last
- cBottom > 0 ? StackVertical(Crop(0, 0, 0, height-cBottom),Crop(0, height-2*cBottom, 0, cBottom)).ConvertToYV12(chromaresample="point") : last.ConvertToYV12(chromaresample="point")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement