support customize decoder for pipeline.