Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify jpeg image format. #3

Open
Bloodevil opened this issue Oct 24, 2014 · 1 comment
Open

Verify jpeg image format. #3

Bloodevil opened this issue Oct 24, 2014 · 1 comment

Comments

@Bloodevil
Copy link
Owner

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
Copy link
Owner Author

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.

Bloodevil added a commit that referenced this issue Jan 21, 2015
 #6 add parse payload def to SonyAPI class.
 - before move payload def, SonyAPI clasee have liveview function that return file pointer.

 #3 Verify jpeg image format
 - add todo list on example code.
 - add try except routine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant