Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- By Cretindesaples
- ### Modify this:
- vidfile = "random_garbage.mkv"
- ###
- c1 = FFVideoSource (vidfile, enable10bithack=false)
- c2 = FFVideoSource (vidfile, enable10bithack=true, varprefix="c1_")
- w = c1.Width ()
- h = c1.Height ()
- wm4 = (w + 3) / 4 * 4
- hm4 = (h + 3) / 4 * 4
- b10 = (c2.Height () > c1.Height ())
- matrix = (c1_FFCOLOR_SPACE == 1) ? "709"
- \ : (c1_FFCOLOR_SPACE >= 5) ? "601" : Dither_undef ()
- par = (c1_FFSAR_NUM > 0 && c1_FFSAR_DEN > 0)
- \ ? Float (c1_FFSAR_NUM) / Float (c1_FFSAR_DEN)
- \ : Dither_undef ()
- tv_range = (c1_FFCOLOR_RANGE != 2)
- (b10) ? c2 : c1
- (VersionNumber () >= 2.6) ? last
- \ : (b10) ? Dither_addborders16 (0, 0, wm4 - w, hm4 - h)
- \ : AddBorders (0, 0, wm4 - w, hm4 - h)
- Dither_srgb_display (lsb_in=b10, matrix=matrix, par=par, tv_range=tv_ran
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement