summaryrefslogtreecommitdiff
path: root/lib/Image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Image.cc')
-rw-r--r--lib/Image.cc9
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);
}