diff options
author | pixel <pixel> | 2007-04-09 14:22:05 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-04-09 14:22:05 +0000 |
commit | e4eae2a44dd10167e1ae6f7b57fb4ea6e1772612 (patch) | |
tree | 58803dd85a481ebf3f66521fd356ca807573fc55 /lib | |
parent | f140e3263d6dab396ece281ab888f29e69d89406 (diff) |
Removing libjpeg's debugging messages.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Image.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Image.cc b/lib/Image.cc index 8b973f6..f4d2ee0 100644 --- a/lib/Image.cc +++ b/lib/Image.cc @@ -26,7 +26,6 @@ typedef my_destination_mgr * my_dest_ptr; METHODDEF(void) init_destination (j_compress_ptr cinfo) { - Base::printm(M_INFO, "init_destination()\n"); my_dest_ptr dest = (my_dest_ptr) cinfo->dest; /* Allocate the output buffer --- it will be released when done with image */ @@ -41,7 +40,6 @@ init_destination (j_compress_ptr cinfo) METHODDEF(boolean) empty_output_buffer (j_compress_ptr cinfo) { - Base::printm(M_INFO, "empty_output_buffer()\n"); my_dest_ptr dest = (my_dest_ptr) cinfo->dest; if (dest->outfile->write(dest->buffer, OUTPUT_BUF_SIZE) != @@ -57,8 +55,6 @@ empty_output_buffer (j_compress_ptr cinfo) METHODDEF(void) term_destination (j_compress_ptr cinfo) { - Base::printm(M_INFO, "term_destination()\n"); - my_dest_ptr dest = (my_dest_ptr) cinfo->dest; size_t datacount = OUTPUT_BUF_SIZE - dest->pub.free_in_buffer; @@ -74,8 +70,6 @@ jpeg_handle_dest (j_compress_ptr cinfo, Handle * outfile) { my_dest_ptr dest; - Base::printm(M_INFO, "jpeg_handle_dest()\n"); - /* The destination object is made permanent so that multiple JPEG images * can be written to the same file without re-executing jpeg_stdio_dest. * This makes it dangerous to use this manager and a different destination @@ -213,7 +207,6 @@ bool Image::Prepare(unsigned int f) throw (GeneralException) { throw GeneralException("You can't create a jpeg image when the library libjpeg isn't linked in."); #else { - printm(M_INFO, "Converting image buffer to 24 bits - %ix%i.\n", x, y); char * rgb_buffer = (char *) malloc(x * y * 3); for (iy = 0; iy < y; iy++) { for (ix = 0; ix < x; ix++) { @@ -236,7 +229,6 @@ bool Image::Prepare(unsigned int f) throw (GeneralException) { cinfo.image_height = y; cinfo.input_components = 3; cinfo.in_color_space = JCS_RGB; - printm(M_INFO, "Starting jpeg stuff...\n"); jpeg_set_defaults(&cinfo); jpeg_set_quality(&cinfo, 85, TRUE /* limit to baseline-JPEG values */); @@ -245,7 +237,6 @@ bool Image::Prepare(unsigned int f) throw (GeneralException) { int row_stride = x * 3; while (cinfo.next_scanline < cinfo.image_height) { - printm(M_INFO, "Looping...\n"); row_pointer[0] = (JSAMPLE *) &rgb_buffer[cinfo.next_scanline * row_stride]; (void) jpeg_write_scanlines(&cinfo, row_pointer, 1); } |