c to VB6
Merge https://github.com/cxp1991/jpeg_encoder