• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ChangeLogH A D05-Feb-20193 KiB9863

Makefile-filesH A D05-Feb-2019354 1511

README.sonixH A D05-Feb-20196 KiB12698

library.cH A D28-Aug-202017.7 KiB620540

sakar-avi-header.hH A D28-Aug-20203.4 KiB7767

sonix.cH A D28-Aug-202015.2 KiB640469

sonix.hH A D28-Aug-20202 KiB6031

README.sonix

1/* README for libgphoto2/camlibs/sonix camera library
2 *
3 * Copyright (C) 2005 Theodore Kilgore <kilgota@auburn.edu>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA  02110-1301  USA
19 */
20
21This library supports fully the still-camera functions of several cameras
22which use the sn9c2028 chip from Sonix (Vendor ID 0x0c45).
23
24
25Differences in the functions and features of the known cameras can be
26distinguished through the USB Product number, and also by a four-digit
27hexadecimal string passed by the camera during initialization -- apparently a
28firmware version number and/or an identification number for the video sensor.
29If you have a Sonix sn9c2028 camera which returns a number not listed in
30sonix.c, then your camera may or may not work with this code. How would I know?
31Please inform if you get a different ID number!
32
33Here we give a brief description both of currently-supported cameras and of the
34supported gphoto2 functions for each.
35
36
37Vivicam 3350b:
38
39Uses an OV7630 sensor. Produces a maximum resolution of 640x480 and an option
40to use 320x240. The photos are all compressed. The compression scheme is
41lossy. The decompression algorithm originates, I understand, in the work of
42Bertrik Sikkens for the sn9c102 cameras. In the macam project for MacOS-X
43camera support(webcam-osx project on Sourceforge), the decompression algorithm
44for the sn9c2028 cameras was developed by Mattias Krauss and adapted for use
45with the Vivitar Vivicam 3350B in particular by Harald Ruda
46<hrx at users.sourceforge.net>. Harald brought to my attention the work already
47done in the macam project, pointed out that it is GPL code, and invited me to
48have a look. Thanks, Harald. The decompression algorithm used here is similar
49to what is used in the macam driver, but is considerably streamlined and
50improved. It seems to work perfectly. Brightness and/or gamma do sometimes
51need to be adjusted with a photo editor such as Gimp, ImageMagick, or xv,
52especially for photos taken in dim light.
53
54Features of the camera include the ability to delete all photos. The "delete
55last" function and the "capture-image" function, which will work for some
56other Sonix sn9c2028 cameras and are thus supported in this library, do not
57seem to work with the my Vivicam 3350B and are therefore disabled for this
58camera. These cameras can all shoot "movie clips" which are saved as AVI files.
59Webcam functionality uses isochronous transfer; thus it lies outside the scope
60of libgphoto2 and is therefore not supported here.
61
62
63DC31VC:
64
65Yet another camera which the macam driver also supports has been listed here
66as a supported camera. It apparently uses 352x288 and 176x144 resolution
67settings. I know of it only second hand, have not personally tested it, and
68would appreciate any reports about it (I suspect it is similar to the Sakar
69Digital Keychain camera).
70
71
72Sakar Digital Keychain #11199:
73
74This camera does not use data compression. It will hold 18 photos at
75352x288 resolution, and 70 photos (or a clip containing at most 70 frames)
76at 176x144 resolution, or any combination of these which does not fill up the
77camera. Clips are processed as AVI files.
78
79This camera also supports gphoto2 --capture-image, which will cause a photo
80to be taken and stored among the photos on the camera for later download (the
81capture dimensions are always 352x288).
82
83The photo which one has just shot can of course be downloaded immediately
84using gphoto2 -p (its number, which will be the last taken) and, if desired,
85can be deleted immediately afterwards using gphoto2 -d (its number) which
86this camera also permits (unlike the Vivicam 3350b).
87
88Mini-Shotz ms350:
89
90This camera has 640x480 and 320x240 resolution settings. Its features are
91otherwise quite similar to those of the Sakar Digital Keychain #11199, except
92that it exclusively uses the compressed mode.
93
94Genius Smart 300:
95
96This camera has 640x480 and 320x240 resolution settings. Its features are
97otherwise quite similar to those of the Sakar Digital Keychain #11199 and the
98Mini-Shotz ms350, except that it uses compressed mode for multiframe shooting,
99but offers both compressed and uncompressed modes as options for still photos.
100It does not support gphoto2 --capture-image. It does support deletion of
101the last entry on the camera.
102
103GUI frontends:
104
105Libgphoto2 , of course, permits the use of a GUI frontend as well as the
106gphoto2 command-line utility. I have tested my two cameras with gtkam and with
107flphoto. Both of them work, with the following provisos:
108
109-- There is an unresolved problem with gtkam, when the Sakar Digital Keychain
110camera is hooked up and gtkam is started. The LED display starts to move
111immediately and keeps on. The LED activity does not stop when gtkam is exited,
112but only on camera disconnect from the computer. This phenomenon may be quite
113harmless, but who knows? It obviously means that some kind of background
114activity is taking place inside the camera. This LED activity does not occur
115if the gphoto2 command line or the gphoto2 shell or flphoto are used.
116(UPDATE: A workaround patch has been applied, which seems to fix this, as of
11708/17/06)
118
119
120-- flphoto will give a message when asked to save an AVI file, that it cannot
121put the AVI file into an "album." Well, perhaps not. But not to worry.
122It will save the AVI file anyway, even while protesting.
123
124
125(Most recent revision of this file is on  12/18/2007)
126