Commit Graph

3596 Commits

Author SHA1 Message Date
Gus Hartmann
65bff38832 Added the first of the stuff required to check for snprintf. ALso changed
several lengths to sizeof()s.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1281 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-31 02:59:08 +00:00
Gus Hartmann
3d25244113 Added documentation for the thumbnail format and transformation.
Added sanity check to ensure that images can be deleted before trying to
actually delete one.
Trimmed some buffers that weren't really being used.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1273 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-29 21:12:39 +00:00
Gus Hartmann
1f1e0180e1 Modified #define for version information.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1272 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-29 02:35:29 +00:00
Gus Hartmann
c445641bbc Added a #define for version.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1271 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-29 02:32:27 +00:00
Gus Hartmann
256be64040 Fixed the naming of the preview thumbnail to correctly use the image number.
Since no frontends care what the thumbnails are named, this is a prevenative
rather than corrective bug fix.

Eliminated some old shotgun debugging statements, and will be deleting more.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1264 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-27 03:52:19 +00:00
Gus Hartmann
4f6cbf3b3a Put the camera libraries in alphabetical order in the --help message.
Added checks for snprintf, sprintf, strncpy, and strcpy. It never hurts
to check for these functions; it will improve portability.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1263 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-27 03:50:27 +00:00
Mariusz Zynel
199f695aba fixed problems with []
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1251 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-23 10:11:44 +00:00
Gus Hartmann
e3df867ad1 Fixed declaration of dimagev_ycbcr_to_ppm() to eliminate the size parameter.
This was an attempt to over-generalize code that should have been very
specific in its scope.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1242 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-22 20:27:05 +00:00
Gus Hartmann
8c568a64d7 Cleaned up explanation of preview thumbnails, having fixed the errors
previously documented in the README.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1240 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-22 07:13:47 +00:00
Gus Hartmann
567f52df12 Finally nailed down the last of the thumbnail conversion issues. Previews
now appear as valid, correct, accurate PPM "rawbits" files, without the odd
splatterings that were occuring before.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1239 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-22 07:10:41 +00:00
Gus Hartmann
f7f6a13a33 Re-increased a sleep() call to three seconds, because of some timeout errors.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1238 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-22 07:09:05 +00:00
Gus Hartmann
acef429516 Added the correct name and file type for preview thumbnails.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1237 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-22 04:10:46 +00:00
Gus Hartmann
42a529ab39 Added dimagev_ycbcr_to_ppm() function; this converts the data returned as
thumbnails into a portable format. This was not as easy as it sounds.

Reduced some sleep() calls.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1235 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-20 05:15:16 +00:00
Gus Hartmann
112d071421 Fixed camera_capture() so that the type of capture is checked before taking
a picture.

Removed a lot of shutgun debugging code (debugging across dynamic libraries
is hard).

Removed or reduced a lot of sleep() calls.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1234 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-20 05:12:23 +00:00
Gus Hartmann
54e51d6d46 Added the Y:Cb:Cr coefficients needed to convert the thumbnails.
Added the declaration of dimagev_ycbcr_to_ppm().


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1233 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-20 05:09:50 +00:00
Gus Hartmann
53c7d93fdf Fixed thumbnail section to reflect recent code improvements ;>
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1232 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-20 05:07:19 +00:00
Gus Hartmann
7af49e3bd3 Added CVS Id tags.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1220 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-14 22:32:38 +00:00
Gus Hartmann
e27ff3dbf8 Populated camera_get_file_preview(). At this point it returns a binary
file which is some sort of mystery image format. I'm working on converting
it into something useful.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1219 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-14 22:29:22 +00:00
Gus Hartmann
2f8793cbc7 Added declaration for dimagev_get_thumbnail.
Added Id tag.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1218 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-14 21:44:45 +00:00
Gus Hartmann
fe99e9b11b Added notes about thumbnail support.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1217 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-14 21:27:09 +00:00
Gus Hartmann
72906b9f0e Added EXIF support to dimagev_get_picture(), with correct preprocessor magic
to prevent compilation if the include file can't be found.

Added dimagev_get_thumbnail(), which at this point does return a thumbnail
image, but in a file format described solely as Y:Cr:Cb (4:2:2). I am looking
into the conversion process at this time.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1216 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-14 20:51:44 +00:00
Gus Hartmann
eff93dab66 Added the include for EXIF support.
Hopefully, this will move into the standard include path, and the string
of "../../../" can be replaced with a nice set of angle braces.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1215 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-14 20:49:13 +00:00
Lutz Mueller
a5204888b1 Forgot a '&'.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1204 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-13 20:10:34 +00:00
Scott Fritzinger
afe030cac5 updated value_set/get to use char* references and strdup
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1202 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-13 18:50:34 +00:00
Lutz Mueller
e8bfff8413 gp_widget_unref instead of gp_widget_free.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1201 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-13 17:34:15 +00:00
Lutz Mueller
bf786798cf Fixed setting of date.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1198 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-13 15:49:53 +00:00
Philippe Marzouk
66d25338c5 upload fixes
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1195 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-13 12:31:14 +00:00
Lutz Mueller
2478a261e1 Syntax of gp_widget_value_get/set has changed. Updated.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1192 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-12 08:08:18 +00:00
Scott Fritzinger
e7f8142079 added ref/unref for camera and file
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1188 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-11 23:30:51 +00:00
Lutz Mueller
116bec693d gp_widget_unref instead of gp_widget_free
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1185 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-11 21:29:27 +00:00
Lutz Mueller
786aabe3ab At least it compiles now. Don't have the camera with me to check if it works.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1184 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-11 21:03:51 +00:00
Scott Fritzinger
c139e5308a added camerafile ref/unref
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1182 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-11 19:16:38 +00:00
Scott Fritzinger
a5f243e0fe added widget refs and widget value changes
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1181 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-11 18:29:04 +00:00
Lutz Mueller
eb80abf145 Added ref_count to CameraFile struct.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1180 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-11 17:47:13 +00:00
Gus Hartmann
153162706a Added correct preprocessor magic for <sys/time.h> based on findings of configure.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1160 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-11 04:50:37 +00:00
Gus Hartmann
3755048899 Added notes about setting time.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1157 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-10 00:25:25 +00:00
Gus Hartmann
a27c0a6f0d Added dimagev_set_date(), which sets the camera clock to system time.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1156 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-10 00:25:03 +00:00
Gus Hartmann
94ec2bb7b7 Aded declaration of dimagev_set_date() and include for time.h. This include
should be checked for by configure.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1155 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-10 00:23:51 +00:00
Gus Hartmann
6b5f925386 Added dimagev_set_date() to camera_init(), with non-fatal results if it
should fail.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1154 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-10 00:23:04 +00:00
Gus Hartmann
c20e3faeb0 Fixed an awful bug in dimagev_decimal_to_bcd() that was found while fixing
dimagev_set_date(). Also added some documentation on packet format.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1153 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-10 00:15:44 +00:00
Gus Hartmann
5a5950a18c Improved documentation.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1152 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-09 03:35:47 +00:00
Gus Hartmann
8fcff13087 Added myself to AUTHORS.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1151 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-09 01:50:22 +00:00
Gus Hartmann
b7a4f219d8 Added the GNU GPL boilerplate header and copyright information.
Added conditionals for including only header files found by configure.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1150 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-09 01:46:04 +00:00
Gus Hartmann
8d76139e3c Added copyright information, as well as the GNU GPL boilerplate.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1149 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-09 01:45:13 +00:00
Gus Hartmann
65f08671a4 Added more headers to the include search, so that correct values for
HAVE_*_H will be included in config.h


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1148 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-09 01:44:30 +00:00
Gus Hartmann
e5a0476552 Added some more notes.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1147 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-08 22:13:08 +00:00
Gus Hartmann
4656e8e5ba Added some better notes in README about image capture function.
Eliminated function dimagev_host_mode(). Created more general function
dimagev_send_data() which sets the camera with the current value of
dimagev->data .

Added some status messages to camera_capture() - it always works in debug mode,
but failed frequently in normal mode. The small messages ("Preparing to
retrieve image") were enough to fix this; the other tack I tried of using
small sleep loops did not.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1146 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-08 22:11:23 +00:00
Lutz Mueller
48ed5e9cdd Last printfs changed to gp_debug_printf.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1145 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-08 14:48:24 +00:00
Lutz Mueller
87992d1d70 beep is guint.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1138 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-07 18:24:20 +00:00
Philippe Marzouk
0eb0b11639 fixed some bugs (see Changelog)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1128 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-10-07 13:22:05 +00:00