Installs callbacks and configures the codec with its media format, options, surface, and processing mode.