1769165661
1. Add a mutex between the Preview.Show() and the QWidget.update().
2. Speed up the Preview.Show() -- change the floating point to integer,
merge some plus and multiplying operation and remove some data copy.
Signed-off-by: zejian.su <zejian.su@starfivetech.com>