[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gzz] 2nd
From: |
Tuomas Lukka |
Subject: |
Re: [Gzz] 2nd |
Date: |
Tue, 10 Sep 2002 11:36:25 +0300 |
User-agent: |
Mutt/1.4i |
> +----------------------------+
> |CachedImage.cxx |
> +----------------------------+
> |string urx |
> |int hits |
> |int locks |
> |GdkPixbuf pixels |
> |boolean loaded |
Loading at different resolutions?
> |GdkPixbufLoader loader |
> +----------------------------+
> |int getWidth() |
> |int getHeight() |
> |int[] getPixels() |
> |write(data,size) |
> +----------------------------+
>
> +-------------------------------+
> |ImageCache.cxx |
> +-------------------------------+
> |GdkPixbuf loader-image |
> |CachedImage images[] |
This should be a map, not an array
> +-------------------------------+
> |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) |
> +--------------------------+
>
Umm, how is the threading going to work here?
> +--------------+ +---------------------+
> |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.
>
>
- [Gzz] 2nd, Tero Mayranen, 2002/09/02
- Re: [Gzz] 2nd, Tuomas Lukka, 2002/09/06
- Re: [Gzz] 2nd, Tero Mayranen, 2002/09/09
- Re: [Gzz] 2nd,
Tuomas Lukka <=
- [Gzz] 911, Tero Mayranen, 2002/09/11
- [Gzz] Re: 911, Tuomas Lukka, 2002/09/11
- [Gzz] Imagecache, Tuomas Lukka, 2002/09/13
- [Gzz] Re: Imagecache, Tero Mayranen, 2002/09/13
- Re: [Gzz] Re: Imagecache, Benja Fallenstein, 2002/09/13
- Re: [Gzz] Re: Imagecache, Tero Mayranen, 2002/09/16
- [Gzz] Re: Imagecache, Tuomas Lukka, 2002/09/13
- [Gzz] Re: ImageCache, Tero Mayranen, 2002/09/17
- [Gzz] Re: ImageCache, Tuomas Lukka, 2002/09/18
- Re: [Gzz] 2nd, Tuomas Lukka, 2002/09/10