simplify encoder interface --remove EncodeFrame2 in interface function