projects
/
libam7xxx.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CMakeLists.txt: disable -Wsign-conversion warnings
[libam7xxx.git]
/
examples
/
picoproj.c
diff --git
a/examples/picoproj.c
b/examples/picoproj.c
index
610e148
..
5d95b3a
100644
(file)
--- a/
examples/picoproj.c
+++ b/
examples/picoproj.c
@@
-68,8
+68,8
@@
int main(int argc, char *argv[])
am7xxx_device *dev;
int log_level = AM7XXX_LOG_INFO;
int device_index = 0;
am7xxx_device *dev;
int log_level = AM7XXX_LOG_INFO;
int device_index = 0;
-
am7xxx_power_mode
power_mode = AM7XXX_POWER_LOW;
-
am7xxx_zoom_mode
zoom = AM7XXX_ZOOM_ORIGINAL;
+
int
power_mode = AM7XXX_POWER_LOW;
+
int
zoom = AM7XXX_ZOOM_ORIGINAL;
int format = AM7XXX_IMAGE_FORMAT_JPEG;
int width = 800;
int height = 480;
int format = AM7XXX_IMAGE_FORMAT_JPEG;
int width = 800;
int height = 480;
@@
-160,7
+160,6
@@
int main(int argc, char *argv[])
case 'h':
usage(argv[0]);
exit(EXIT_SUCCESS);
case 'h':
usage(argv[0]);
exit(EXIT_SUCCESS);
- break;
default: /* '?' */
usage(argv[0]);
exit(EXIT_FAILURE);
default: /* '?' */
usage(argv[0]);
exit(EXIT_FAILURE);
@@
-265,7
+264,6
@@
int main(int argc, char *argv[])
goto cleanup;
}
goto cleanup;
}
-
if ((unsigned int)width > device_info.native_width ||
(unsigned int)height > device_info.native_height)
fprintf(stderr,
if ((unsigned int)width > device_info.native_width ||
(unsigned int)height > device_info.native_height)
fprintf(stderr,