Sorry, it's in the nnedi3_resize16 function.
Code:
# 1920x1080 input
Dither_convert_8_to_16()
nnedi3_resize16(lsb_in=true, lsb=true, output="RGB48Y")
nnedi3_resize16(1920, 1080, lsb_in=True, lsb=True, Y=3, U=1, V=1)
Dither_convert_rgb_to_yuv(SelectEvery(3, 0), SelectEvery(3, 1), SelectEvery(3, 2), lsb=True, output="YV24")
DitherPost()