summaryrefslogtreecommitdiff
path: root/camlibs/jl2005c
diff options
context:
space:
mode:
authorTheodore Kilgore <kilgota@auburn.edu>2010-04-24 18:22:19 +0000
committerTheodore Kilgore <kilgota@auburn.edu>2010-04-24 18:22:19 +0000
commit5da21f0cdc068b5d3509dcfc89b957efe4ca00f1 (patch)
tree84012461b9d1e6f21020fa8766b0b3644e139b32 /camlibs/jl2005c
parent94a3cb9d56644819e7cae769f8db48e8603023aa (diff)
downloadlibgphoto2-5da21f0cdc068b5d3509dcfc89b957efe4ca00f1.tar.gz
jl2005bcd_decompress.c: GP_DEBUG() replaces printf()
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13023 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/jl2005c')
-rw-r--r--camlibs/jl2005c/ChangeLog3
-rw-r--r--camlibs/jl2005c/jl2005bcd_decompress.c12
2 files changed, 9 insertions, 6 deletions
diff --git a/camlibs/jl2005c/ChangeLog b/camlibs/jl2005c/ChangeLog
index b564b5568..77e74b98b 100644
--- a/camlibs/jl2005c/ChangeLog
+++ b/camlibs/jl2005c/ChangeLog
@@ -1,3 +1,6 @@
+2010-04-24 Theodore Kilgore <kilgota@auburn.edu>
+ * jl2005bcd_decompress.c: GP_DEBUG() replaces printf()
+
2010-04-19 Theodore Kilgore <kilgota@auburn.edu>
* README.jl2005c: revised.
* README.jl2005bcd-compression: added.
diff --git a/camlibs/jl2005c/jl2005bcd_decompress.c b/camlibs/jl2005c/jl2005bcd_decompress.c
index 37444537c..57159a377 100644
--- a/camlibs/jl2005c/jl2005bcd_decompress.c
+++ b/camlibs/jl2005c/jl2005bcd_decompress.c
@@ -53,8 +53,8 @@ find_eoi (uint8_t *jpeg_data, int jpeg_data_idx, int jpeg_data_size)
break;
if (i >= (jpeg_data_size - 1)) {
- printf("AAI\n");
- return -1;
+ GP_DEBUG("AAI\n");
+ return GP_ERROR;
}
return i + 2; /* + 2 -> Point to after EOI marker */
@@ -87,8 +87,8 @@ jl2005bcd_decompress (unsigned char *output, unsigned char *input,
q = header[3] & 0x7f;
height = header[4] * 8;
width = header[5] * 8;
- printf("quality is %d\n", q);
- printf("size: %dx%d\n", width, height);
+ GP_DEBUG("quality is %d\n", q);
+ GP_DEBUG("size: %dx%d\n", width, height);
switch (header[9] & 0xf0) {
case 0xf0:
thumbnail_width = 128;
@@ -221,7 +221,7 @@ jl2005bcd_decompress (unsigned char *output, unsigned char *input,
size = eoi - jpeg_data_idx;
if ((JPEG_HEADER_SIZE + size) > sizeof(jpeg_stripe)) {
- printf("AAAIIIIII\n");
+ GP_DEBUG("AAAIIIIII\n");
return 1;
}
memcpy (jpeg_stripe + JPEG_HEADER_SIZE,
@@ -262,7 +262,7 @@ jl2005bcd_decompress (unsigned char *output, unsigned char *input,
ret = gp_ahd_interpolate(out, width, height, BAYER_TILE_BGGR);
if (ret < 0) {
- printf("HEUH?\n");
+ GP_DEBUG("HEUH?\n");
return ret;
}
white_balance (out, width*height, 1.6);