summaryrefslogtreecommitdiff
path: root/camlibs/sq905
diff options
context:
space:
mode:
authorLutz Mueller <lutz@users.sourceforge.net>2003-10-29 06:14:22 +0000
committerLutz Mueller <lutz@users.sourceforge.net>2003-10-29 06:14:22 +0000
commiteb1ebf98d3916a6cd6a63ee0d3c727121d0bd3ac (patch)
tree41dd011d680e75e4db544a4a3317caa98f24a82b /camlibs/sq905
parentfd08ba0e3c9c5b8bb3019bbfac527384f1599e6b (diff)
downloadlibgphoto2-eb1ebf98d3916a6cd6a63ee0d3c727121d0bd3ac.tar.gz
2003-10-29 Lutz Mueller <lutz@users.sourceforge.net>
* sq905.[c.h]: Patch by Thodore Kilgore <kilgota@banach.math.auburn.edu>: Introduce new SQ_MODEL_PRECISION. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6901 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/sq905')
-rw-r--r--camlibs/sq905/ChangeLog5
-rw-r--r--camlibs/sq905/library.c7
-rw-r--r--camlibs/sq905/sq905.c2
-rw-r--r--camlibs/sq905/sq905.h1
4 files changed, 13 insertions, 2 deletions
diff --git a/camlibs/sq905/ChangeLog b/camlibs/sq905/ChangeLog
index ea6e60666..ae8cc9306 100644
--- a/camlibs/sq905/ChangeLog
+++ b/camlibs/sq905/ChangeLog
@@ -1,5 +1,10 @@
2003-10-29 Lutz Mueller <lutz@users.sourceforge.net>
+ * sq905.[c.h]: Patch by Thodore Kilgore
+ <kilgota@banach.math.auburn.edu>: Introduce new SQ_MODEL_PRECISION.
+
+2003-10-29 Lutz Mueller <lutz@users.sourceforge.net>
+
* library.c: Patch by Theodore Kilgore
<kilgota@banach.math.auburn.edu>: Fix postprocessing of files
where comp_ration != 2.
diff --git a/camlibs/sq905/library.c b/camlibs/sq905/library.c
index 83c452fb8..a4713edd8 100644
--- a/camlibs/sq905/library.c
+++ b/camlibs/sq905/library.c
@@ -65,12 +65,14 @@ struct {
{"Gear to go", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
{"Mitek CD10" , GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
{"Mitek CD30P", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
- {"Magpix B350", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
- {"Jenoptik JDC 350", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
{"GTW Electronics", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
{"Concord Eye-Q Easy",GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
{"Che-ez Snap", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
{"PockCam", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
+ {"Magpix B350", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
+ {"Jenoptik JDC 350", GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 0x9120},
+ {"Precision Mini Digital Camera",
+ GP_DRIVER_STATUS_PRODUCTION , 0x2770 , 0x9120},
{NULL,0,0}
};
@@ -285,6 +287,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
gp_bayer_decode (p_data, w , h , ptr, BAYER_TILE_GBRG);
break;
case SQ_MODEL_ARGUS:
+ case SQ_MODEL_PRECISION:
default:
gp_bayer_decode (p_data, w , h , ptr, BAYER_TILE_BGGR);
break;
diff --git a/camlibs/sq905/sq905.c b/camlibs/sq905/sq905.c
index c23ebea20..413ac15f4 100644
--- a/camlibs/sq905/sq905.c
+++ b/camlibs/sq905/sq905.c
@@ -73,6 +73,8 @@ sq_init (GPPort *port, SQModel *m, SQData *data)
*m = SQ_MODEL_ARGUS;
else if (!memcmp (c, "\x09\x05\x01\x19", 4))
*m = SQ_MODEL_POCK_CAM;
+ else if (!memcmp (c, "\x50\x05\x00\x26", 4))
+ *m = SQ_MODEL_PRECISION;
else
*m = SQ_MODEL_UNKNOWN;
}
diff --git a/camlibs/sq905/sq905.h b/camlibs/sq905/sq905.h
index 64560130a..1c0addabc 100644
--- a/camlibs/sq905/sq905.h
+++ b/camlibs/sq905/sq905.h
@@ -8,6 +8,7 @@ typedef unsigned char SQData;
typedef enum {
SQ_MODEL_ARGUS,
SQ_MODEL_POCK_CAM,
+ SQ_MODEL_PRECISION,
SQ_MODEL_UNKNOWN
} SQModel;