C language writing to achieve image jitter