Nathan Stenzel
af765c855c
Set the timeout to 3 seconds (I think)
...
Commented out the delete command test code.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2265 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-17 00:04:01 +00:00
Nathan Stenzel
9afdcbe3e0
Put in delete command test code to help with the Polaroid 640SE.
...
That should help figure out how much bytes to read and what the response will be
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2264 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-16 23:33:19 +00:00
Nathan Stenzel
99a5f9351e
Updated Polaroid 640SE portion of code.
...
Now ready for --get-all-images test.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2254 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-16 22:04:49 +00:00
Nathan Stenzel
2886d87861
Updated Polaroid 640SE portion of code.
...
Now ready to test --get-all-images.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2253 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-16 22:03:24 +00:00
Nathan Stenzel
9387032be7
Corrected the buffer size for the Polaroid 640SE.
...
It was 213, but after looking at test results, I changed to to 528.
Evidentally, the portmon log on Peter Desnoyer's webpage was flawed.
Portmon seems to clamp the output to x bytes per read unless you say otherwise
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2252 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-16 06:40:34 +00:00
Lutz Mueller
e28c49071c
2001-09-14 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
Patch from Fredrik <fredrik@krixor.xy.org >:
* usb/libusb.c: Only set configuration stuff on gp_port_usb_update
(instead of gp_port_usb_open).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2251 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-14 15:28:22 +00:00
Lutz Mueller
37dd31bb11
Small typo.
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2250 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-14 11:05:46 +00:00
Lutz Mueller
0eed4f8f13
2001-09-14 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* libgphoto2_port/gp_port.c: Set some default settings in case of
GP_PORT_USB, too.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2249 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-14 10:51:48 +00:00
Philippe Marzouk
2c61c60ff5
patch from fredrik@krixor.xy.org to call usb_set_configuration() and usb_set_altinterface() only the first time the camera is accessed
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2248 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-14 05:12:29 +00:00
Nathan Stenzel
f82fa6df05
Changed "struct" to "typedef struct".
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2245 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-13 13:55:53 +00:00
Nathan Stenzel
1bad288574
Added GPL lines.
...
Some format fixes.
Still need to use "typdef struct" instead of "struct".
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2244 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-13 13:42:15 +00:00
Nathan Stenzel
2dc34461a6
Fixing bugs.
...
Adding features.
I tried adding this once but had to restart when the file got messed up.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2239 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-13 05:49:10 +00:00
Nathan Stenzel
e6fae1d4ed
Updated to reflect changes in jpeg.c
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2238 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-13 05:01:53 +00:00
Nathan Stenzel
5b09854774
I still need to work on this header.
...
I need to make sure the right thing is in the header and the right thing is in
the main file.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2237 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-13 00:56:55 +00:00
Nathan Stenzel
2ce637cbca
Finished the parser.
...
Did full testing.
Need to work on the new features next.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2236 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-13 00:38:14 +00:00
Lutz Mueller
baf0fe15ff
*** empty log message ***
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2235 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-12 06:52:47 +00:00
Lutz Mueller
0aab0d14ab
2001-09-12 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* libgphoto2/core.c: Add some CHECK_INITs.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2234 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-12 06:34:35 +00:00
Nathan Stenzel
0eea028792
Created a chunk_new for jpeg.c
...
Fixed some formatting.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2233 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-12 02:46:26 +00:00
Nathan Stenzel
e54c8b5feb
Completed more of the code.
...
Fixed some problems.
Added debugging output via a printf and a commented out gp_debug_printf
This should be safe enough to be put in the Makefile now
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2232 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-12 02:36:12 +00:00
Nathan Stenzel
5f631fb8df
I added jpeg.c file to bring jpeg parsing to gphoto2.
...
I have hopes that this will match exif.c in quality.
I plan on having jpeg.c be able to fill in missing data or let you fill it in manually.
I plan on giving it the ability to decode and write jpeg files too.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2231 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-11 23:34:35 +00:00
Philippe Marzouk
b5a60eff30
- added $Header$ to all .c files
...
- changed back thumbnail extraction to old (pre-exif) method for the
Powershot Pro 70 which stores images as JFIF file and not EXIF.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2230 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-11 20:35:52 +00:00
Lutz Mueller
1abd1fb9da
Some basic instructions...
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2229 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-11 06:27:59 +00:00
Lutz Mueller
b8ad0699bb
Cruft.
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2228 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-11 06:12:36 +00:00
Lutz Mueller
896cb2eeaf
Added comment about positive return values.
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2227 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-11 06:02:27 +00:00
Gus Hartmann
e8151659cc
Added 'sending NAK' to debug message to differentiate.
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2226 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-11 04:55:23 +00:00
Dan Fandrich
4ce28a3426
Added missing types for Solaris
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2225 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 20:25:44 +00:00
Hubert Figuiere
6f0a88afa7
* libgphoto2_port/usb/libusb.c (gp_port_usb_find_device_lib): if
...
device and vendor IDs are 0, return not found.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2224 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 17:00:03 +00:00
Lutz Mueller
2536cce23f
2001-09-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* camlibs/kodak/dc240/dc240.c (camera_init): Don't open/close the port.
This is done by libgphoto2.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2223 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 16:40:41 +00:00
Lutz Mueller
9c7eff54fe
2001-09-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* libgphoto2/camera.c
(gp_camera_init): Do a simple CHECK_RESULT_OPEN_CLOSE on the init_func
(gp_camera_set_port): Set the path if the port is a serial one.
* camlibs/template/template.c:
* camlibs/sierra/sierra.c:
* camlibs/samsung/samsung.c:
* camlibs/polaroid/pdc700.c:
* camlibs/polaroid/pdc320.c:
* camlibs/panasonic/coolshot/coolshot.c:
* camlibs/konica/library.c:
* camlibs/dimera/mesalib.c:
* camlibs/digita/usb.c:
* camlibs/digita/serial.c:
* camlibs/casio/casio-qv.c:
* camlibs/canon/serial.c:
* camlibs/barbie/barbie.c:
* camlibs/agfa-cl18/agfa.c: Don't open the port. This is always done
by libgphoto2.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2222 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 16:32:38 +00:00
Lutz Mueller
24b4cb93b5
2001-09-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* libgphoto2/camera.c (gp_camera_list_folders), (gp_camera_list_files): Return the result instead of GP_OK if anything goes wrong
* libgphoto2/filesys.c: Check if path to folder is absolute. If not,
return GP_ERROR_PATH_NOT_ABSOLUTE.
* libgphoto2/result.c:
* include/gphoto2-result.h: GP_ERROR_PATH_NOT_ABSOLUTE: New error.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2221 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 15:40:07 +00:00
Lutz Mueller
0ee6e9ef6b
2001-09-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* camlibs/sierra/sierra.c (get_info_func): Fix copy & paste bug.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2220 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 12:00:17 +00:00
Lutz Mueller
96c8e614ad
2001-09-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* libgphoto2/core.c: Additional debugging stuff.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2219 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 11:47:24 +00:00
Nathan Stenzel
c19eefa2a0
Making sure this is up to date.
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2218 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 00:43:29 +00:00
Nathan Stenzel
a3fdfad1c3
Putting this update into cvs like I thought I already did.
...
I was told by Lutz that it broke cvs.
Sorry about that folks.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2217 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-09 23:14:17 +00:00
Nathan Stenzel
00eb45c208
I noticed I forgot to adjust the code to read different sized chunks for the
...
Polaroid Fun! 320 and Polaroid 640SE cameras.
I figured some more things out.
I fixed some things.
Polaroid 640SE users would not have been able to download raw data before.
They should be able to now......I hope.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2216 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-09 22:59:33 +00:00
Lutz Mueller
37177dd782
2001-09-09 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* libgphoto2/core.c: Use "... == GP_OK" instead of "!...". That should
prevent that every USB camera shows up on gp_autodetect...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2215 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-09 20:06:24 +00:00
Nathan Stenzel
c4a449443d
I put the code from Karl Grill's email onto the end of the file.
...
I believe that is the code for turning the raw camera data into an image.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2214 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-09 18:55:18 +00:00
Nathan Stenzel
97d5da3e40
Found out more info about the jpeg header.
...
Figured the 16x8 block after the normal image (320x120) data is for color fix.
Modified the three files to reflect this.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2213 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-09 18:48:52 +00:00
Lutz Mueller
9d3690462b
Another USB Mass Storage camera.
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2212 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-09 15:33:00 +00:00
Philippe Marzouk
934f8bc2fd
patch from Keith Wall to allow a get without a previous ls in shell mode
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2211 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-09 08:49:24 +00:00
Philippe Marzouk
854602ca10
corrected typo PowerShot Pro90 is IS not SI
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2210 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-08 15:29:15 +00:00
Gus Hartmann
e033c1842d
Made a failure to reset the camera into "play" mode non-fatal, since the
...
image capture was otherwise successful.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2209 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-08 09:40:30 +00:00
Gus Hartmann
347f4f395d
Added retry attempts when packets fail to read correctly. Protocol allows
...
for sending a NAK to get the camera to resend the missing packet.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2208 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-08 09:15:57 +00:00
bvl
95e1767b78
bvl: OS/2 Updates
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2207 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-07 20:02:33 +00:00
Hubert Figuiere
d6628785ae
* libgphoto2_port/usb/libusb.c (gp_port_usb_close): Fixed a
...
segfault when passed device handle was NULL.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2206 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-07 17:00:11 +00:00
Lutz Mueller
e8fb3015ab
2001-09-07 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* libgphoto2/filesys.c (gp_filesystem_format): Don't request any
listings here.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2205 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-07 13:16:09 +00:00
Lutz Mueller
056fddc0b6
2001-09-07 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
...
* camlibs/polaroid/pdc640.c: New
* camlibs/polaroid/Makefile.am: Added pdc640
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2204 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-07 10:25:17 +00:00
Nathan Stenzel
257de76653
This file should help people understand the jpeg header.
...
I will document it better when I get more figured out.
This file should be extremely useful to make the jpeg header we need.
(the jpeg header we have does not work to well)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2203 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-07 06:33:52 +00:00
Nathan Stenzel
7af770bbb6
Fixed some minor typos that would not let it compile.
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2202 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-07 06:28:14 +00:00
Nathan Stenzel
0c7238eb0c
Modified the jpegheader variable to be an array of strings.
...
Divided it up so that the markers ( "FF XX" ) starts each string
This should be easier to read now.
If anyone would like to give me some help understanding jpeg, email me
nathanstenzel@users.sourceforge.net
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2201 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-07 02:21:32 +00:00