Prepare for encoder and camera preview mode.
Signed-off-by: Zhou Chang <achang.zhou@gmail.com>