Rebase onto dlib.core.stream. Hooray!