add RGB565 to YUV420P conveter function and encdoer update