Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
V4L2_PIX_FMT_YUV420
V4L2_PIX_FMT_YUYV
V4L2_PIX_FMT_RGB24
V4L2_PIX_FMT_SBGGR8
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
--- indidriver.c 2013-12-29 06:50:14.673736000 +0000
+++ indidriver.c 2013-12-29 12:41:16.340970285 +0000
@@ -1458,7 +1458,9 @@
ISwitch *sp = &s->sp[i];
printf (" <defSwitch\n");
printf (" name='%s'\n", sp->name);
- printf (" label='%s'>\n", sp->label);
+ char *escapedXML = escapeXML(sp->label);
+ printf (" label='%s'>\n", escapedXML);
+ free(escapedXML);
printf (" %s\n", sstateStr(sp->s));
printf (" </defSwitch>\n");
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
--- gphoto_driver.c 2013-12-19 05:06:29.275890000 +0000
+++ gphoto_driver.c 2013-12-30 14:54:36.644634231 +0000
@@ -292,12 +292,14 @@
return NULL;
exposure = calloc(sizeof(double), count);
for(i = 0; i < count; i++) {
- if (sscanf(choices[i], "%d/%d", &num, &denom) == 2) {
+ if (strncmp(choices[i], "bulb", 4) == 0) {
+ exposure[i] = -1;
+ } else if (strncmp(choices[i], "429496.7295s", 4) == 0) {
+ exposure[i] = -1;
+ } else if (sscanf(choices[i], "%d/%d", &num, &denom) == 2) {
exposure[i] = 1.0 * num / (double)denom;
} else if ((val = strtod(choices[i], NULL))) {
exposure[i] = val;
- } else if (strncmp(choices[i], "bulb", 4) == 0) {
- exposure[i] = -1;
} else {
// unknown
exposure[i] = -2;
$ gphoto2 --get-config shutterspeed
Label: Shutter Speed
Type: RADIO
Current: 4.0000s
Choice: 0 0.0002s
Choice: 1 0.0003s
...
Choice: 50 25.0000s
Choice: 51 30.0000s
Choice: 52 429496.7295s
Please Log in or Create an account to join the conversation.