gzz-dev
[Top][All Lists]
Advanced

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

Re: [Gzz] 2nd


From: Tero Mayranen
Subject: Re: [Gzz] 2nd
Date: Mon, 9 Sep 2002 21:43:09 +0300 (EEST)

> Tero: how's the imagecache stuff?

there's about a million "little things" about it... =/ I'll try to list
them or think them out, but for now I hope these "UML"'s work as some kind
of overview (I hope everyone has fixed width fonts =)):

+----------------------------+
|CachedImage.cxx             |
+----------------------------+
|string urx                  |
|int hits                    |
|int locks                   |
|GdkPixbuf pixels            |
|boolean loaded              |
|GdkPixbufLoader loader      |
+----------------------------+
|int getWidth()              |
|int getHeight()             |
|int[] getPixels()           |
|write(data,size)            |
+----------------------------+

+-------------------------------+
|ImageCache.cxx                 |
+-------------------------------+
|GdkPixbuf loader-image         |
|CachedImage images[]           |
+-------------------------------+
|GdkPixbuf getAsPixbuf(urx,lod) |
|                               |
|int getWidth(urx,lod)          |
|int getHeight(urx,lod)         |
|int[] getPixels(urx,lod)       |
|                               |
|free(urx,lod)                  |
|                               |
|write(urx,data[],size)         |
+-------------------------------+

+--------------------------+
|ImageCache.java           |
+--------------------------+
|Image getAsImage(urx,lod) |
|free(urx,lod)             |
+--------------------------+

+--------------------------+
|BackgroundLoader.java     |
+--------------------------+
|startLoading(urx)         |
+--------------------------+


             +--------------+   +---------------------+
             |ImageCache.cxx|   |BackgroundLoader.java|
             +--------------+   +---------------------+
getAsPixbuf(urx,lod)||                      :
------------------->||                      :       +---------------+
                    ||------------------------------|CachedImage.cxx|
                    ||                      :       +---------------+
                    ||startLoading(urx)     :              :
        loader-image||--------------------->||             :
<-------------------||                      ||             :
                    :                       ||             :
                    : write(urx,data[],size)||             :
                    ||<---------------------||             :
                    ||                      ||             :
                    || write(data,size)     ||             :
                    ||----------------------++------------>||
                    :                       ||             :
                    : write(urx,data[],size)||             :
                    ||<---------------------||             :
                    ||                      ||             :
                    || write(data,size)     ||             :
                    ||----------------------++------------>||
                    etc.

           +---------------+ +--------------+ +---------------------+
           |ImageCache.java| |ImageCache.cxx| |BackgroundLoader.java|
           +---------------+ +--------------+ +---------------------+
getAsImage(urx,lod) ||                    :                   :
------------------->|| getWidth(urx,lod)  :                   :
                    ||------------------->||startLoading(urx) :
                    ||                    ||----------------->||
                    || loader-image.width ||                  ||
                    ||<-------------------||                  ||
                    ||                    :                   ||
                    || getHeight(urx,lod) :                   ||
                    ||------------------->||                  ||
                    ||                    ||                  ||
                    || loader-image.height||                  ||
                    ||<-------------------||                  ||
                    ||                    :                   ||
                    || getPixels(urx,lod) :                   ||
                    ||------------------->||                  ||
                    ||                    ||                  ||
                    || loader-image.pixels||                  ||
                    ||<-------------------||                  ||
  loader-image      ||                    :  write(data,size) ||
<-------------------||                    ||<-----------------||
                                          etc.







reply via email to

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