Changed static functions to be part of VideoEncoder