Add some interfaces for camera and encoder

add some functions