Bloodevil / sony_camera_api

sony camera remote api
http://developer.sony.com/develop/cameras/
MIT License
245 stars 60 forks source link

Verify jpeg image format. #3

Open Bloodevil opened 9 years ago

Bloodevil commented 9 years ago

sometime jpeg image is broken. I don't know about the reason. but there are two point.

  1. wrong jpeg size.
  2. wrong jpeg data.

sony official app have similar act looks like broken image. then official app don't update latest image and show previous image. (looks like stopped)

there are two solution.

  1. Same as like official app
  2. fix wrong size or data. (if can....)
Bloodevil commented 9 years ago

there are not broken jpeg but not enough data from camera. so, should wait until get enough data size.

solution:

  1. calculate data size.
  2. wait until specific size (should know that data size).
  3. draw picture using that data.