Finish the camera control part. Didn't complete the pre positions setting part.
Sleep 10 milliseconds every time after get a packet from stream. So the cpu can decode the frame in time.