From 8840e94544f8ff93de2df07602cf22ed05ca930f Mon Sep 17 00:00:00 2001 From: Theodore Kilgore Date: Mon, 11 Jul 2005 19:34:19 +0000 Subject: [PATCH] * library.c: Several improvements for SQ_MODEL_POCK_CAM * postprocess.c: Several improvements for SQ_MODEL_POCK_CAM * sq905.c: Several improvements for SQ_MODEL_POCK_CAM, thanks to Julius Schwartzenberg for exhaustive testing! git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8174 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/sq905/ChangeLog | 9 +++++++++ camlibs/sq905/library.c | 5 +++-- camlibs/sq905/postprocess.c | 1 + camlibs/sq905/sq905.c | 40 ++++++++++++++++--------------------- 4 files changed, 30 insertions(+), 25 deletions(-) diff --git a/camlibs/sq905/ChangeLog b/camlibs/sq905/ChangeLog index a9e4ef124..97822f4ed 100644 --- a/camlibs/sq905/ChangeLog +++ b/camlibs/sq905/ChangeLog @@ -1,3 +1,12 @@ +2005-05-18 Theodore Kilgore + + * library.c: Several improvements for SQ_MODEL_POCK_CAM + * postprocess.c: Several improvements for SQ_MODEL_POCK_CAM + * sq905.c: Several improvements for SQ_MODEL_POCK_CAM, thanks to + Julius Schwartzenberg for exhaustive testing! + + + 2005-05-18 Theodore Kilgore * library.c: bug in compressed photo routine fixed, found by Cedric Cellier. diff --git a/camlibs/sq905/library.c b/camlibs/sq905/library.c index 1975de39c..6e8a3af15 100644 --- a/camlibs/sq905/library.c +++ b/camlibs/sq905/library.c @@ -250,6 +250,8 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, unsigned char gtable[256]; int size; + if (GP_FILE_TYPE_EXIF ==type) return GP_ERROR_FILE_EXISTS; + if (GP_FILE_TYPE_RAW!=type && GP_FILE_TYPE_NORMAL !=type && GP_FILE_TYPE_PREVIEW!=type) { @@ -320,7 +322,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, default: h = 288; break; } b = nb_frames * w * h / comp_ratio; - + do_preprocess = 1; if (camera->pl->last_fetched_data) break; camera->pl->last_fetched_data = malloc (nb_frames*w*h); @@ -331,7 +333,6 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, GP_DEBUG("Fetch entry %i\n", to_fetch); sq_read_picture_data (camera->port, camera->pl->last_fetched_data, b); - do_preprocess = 1; camera->pl->last_fetched_entry = to_fetch; } while (camera->pl->last_fetched_entry