[Encoder ME] Adjust function interface

and add void function for further coworking
and adjust test accordingly