[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [Patch] implement imageio SPI for gdk-pixbuf

From: Michael Koch
Subject: [cp-patches] [Patch] implement imageio SPI for gdk-pixbuf
Date: Tue, 11 Jan 2005 23:17:16 +0100
User-agent: Mutt/1.5.6+20040907i

Hi list,

I merged the attached patch from java-gui-branch. It introduces an
ImageIO provider using gdk-pixbuf. This extension is available when the
GTK peer gets built.

This patch enhances the ImageIO API too. Writing images by using the
ImageIO API (javax.imageio.ImageIO.write()) should work, reading
( is still a bit buggy. I will fix it
with one of my next patches.


2005-01-11  Graydon Hoare  <address@hidden>

        * gnu/java/awt/
        (registerImageIOSpis): New method.
        * gnu/java/awt/image/
        (imageDecoder): New constructor using InputStream
        (startProduction): Handle existing InputStream.
        * gnu/java/awt/peer/gtk/
        (findSimpleIntegerArray): Make public and static.
        (updateBufferedImage): Set each pixel, in a loop.
        * gnu/java/awt/peer/gtk/
        Implement ImageIO SPI classes.
        (createBufferedImage): Rewrite in terms of SPI classes.
        * gnu/java/awt/peer/gtk/
        (registerImageIOSpis): New method.
        * java/lang/reflect/
        (_Jv_CallAnyMethodA): Borrow a patch from aph, applied to trunk,
        which lets JNI call interface methods properly.
        * javax/imageio/
        (WriterFormatFilter.filter): Fix copy-and-paste typos.
        (WriterMIMETypeFilter.filter): Likewise.
        (ImageReaderIterator): Pass extension argument through to SPI.
        (getReadersByFilter): Likewise.
        (getWritersByFilter): Likewise.
        (getImageReadersByFormatName): Likewise.
        (getImageReadersByMIMEType): Likewise.
        (getImageReadersBySuffix): Likewise.
        (getImageWritersByFormatName): Likewise.
        (getImageWritersByMIMEType): Likewise.
        (getImageWritersBySuffix): Likewise.
        (read): Implement.
        (write): Implement.
        * javax/imageio/
        (progressListeners): Initialize.
        (setInput): Implement.
        * javax/imageio/
        (progressListeners): Initialize.
        (warningListeners): Likewise.
        (warningLocales): Likewise.
        (setOutput): Test "isInstance" rather than class equality.
        * javax/imageio/spi/
        (static): Add reader and writer SPIs.
        (IIORegistry): Call ClasspathToolkit.registerImageIOSpis.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
        (query_formats): New function.
        (save_to_stream): Likewise.
        (Java_gnu_java_awt_peer_gtk_GdkPixbufDecoder_streamImage): Likewise.

2005-01-11  Michael Koch  <address@hidden>

        * include/gnu_java_awt_peer_gtk_GdkPixbufDecoder.h: Regenerated.

Attachment: imageio.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]