]> Pileus Git - ~andy/gtk/commitdiff
Removed erroneous comments.
authorMichael Fulbright <drmike@src.gnome.org>
Fri, 29 Oct 1999 22:54:02 +0000 (22:54 +0000)
committerMichael Fulbright <drmike@src.gnome.org>
Fri, 29 Oct 1999 22:54:02 +0000 (22:54 +0000)
Dr Mike <drmike@redhat.com>

gdk-pixbuf/io-jpeg.c

index c06a2634951ffb84b295ebeb02949636cf724e8b..598d38f778e706a70b1a9ac89c890ead08af57f0 100644 (file)
@@ -318,7 +318,6 @@ image_stop_load (gpointer data)
        JpegProgContext *context = (JpegProgContext *) data;
        g_return_if_fail (context != NULL);
 
-       /* XXXX - is this all I have to do to cleanup? */
        if (context->pixbuf)
                gdk_pixbuf_unref (context->pixbuf);
 
@@ -395,9 +394,6 @@ image_load_increment (gpointer data, guchar *buf, guint size)
                num_left -= num_copy;
 
                /* try to load jpeg header */
-               /* XXXX - bad - assume we always have enough data */
-               /*              to determine header info in first */
-               /*              invocation of this function       */
                if (!context->got_header) {
                        int rc;
 
@@ -425,8 +421,7 @@ image_load_increment (gpointer data, guchar *buf, guint size)
                                g_assert ("Couldn't allocate gdkpixbuf\n");
                        }
 
-                       /* Use pixbuf pixel buffer - BUT NOT SURE */
-                       /* we handle rowstride correctly!!!!      */
+                       /* Use pixbuf buffer to store decompressed data */
                        context->dptr = context->pixbuf->art_pixbuf->pixels;
 
                        /* Notify the client that we are ready to go */
@@ -456,10 +451,7 @@ image_load_increment (gpointer data, guchar *buf, guint size)
                        gint   nlines, i;
                        gint   start_scanline;
 
-                       /* THIS COULD BE BROKEN */
-                       /* Assumes rowstride of gdkpixbuf pixel buffer */
-                       /* is same as incoming jpeg data!              */
-
+                       /* keep going until we've done all scanlines */
                        while (cinfo->output_scanline < cinfo->output_height) {
                                start_scanline = cinfo->output_scanline;
                                lptr = lines;