[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] imlib2 egg without X
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] imlib2 egg without X |
Date: |
Sat, 20 May 2006 14:11:21 +0200 |
User-agent: |
Mutt/1.4.2.1i |
On Fri, May 19, 2006 at 09:33:43PM +0100, Ashish Shrestha wrote:
> On 5/19/06, Peter Bex <address@hidden> wrote:
> >
> > Maybe you can try
> >
> > ldd /usr/lib/libImlib2.so
> linux-gate.so.1 => (0xffffe000)
> libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e09000)
> libz.so.1 => /lib/libz.so.1 (0xb7df0000)
> libdl.so.2 => /lib/libdl.so.2 (0xb7dec000)
> libm.so.6 => /lib/libm.so.6 (0xb7dc9000)
> libc.so.6 => /lib/libc.so.6 (0xb7c9c000)
> /lib/ld-linux.so.2 (0x80000000)
Looks like it doesn't depend on X. I'll see if I can find the time to make
the imlib2 egg to compile without X. (and implement a GC hook for destroying
imlib2 data while I'm at it)
> > Doesn't imlib2 handle exif? If not, maybe it's a better idea to write a
> > loader
> > for exif for imlib2. That way everybody wins.
> No imlib2 doesn't handle exif. Don't understand you comment on
> creating a loader for exif for imlib2. Do you mean imlib2 egg or
> imlib2 the c library? I would rather use libexif if you mean the c
> library, however if you mean the a scheme version of exif library to
> include in imlib2 egg, yes I would be interested in doing that.
I meant creating a so-called "loader" for imlib2, the C library. Loaders
are like "plugins". All file formats imlib2 supports are implemented
through a loader. Most loaders are quite simple interfaces
to existing image libraries (like libjpeg, libpng, libtiff etc)
Most of these are just a few hundred lines. Check out src/modules/loaders
in the imlib2 source distribution.
Creating a new loader means all imlib2 programs automatically (without
ANY additional code) benefit from it, including Chicken programs which
utilize the imlib2 egg. The egg doesn't even need to be updated!
I hope you agree this is the superior way to do this.
If you create a libexif egg, it means you have to conditionally use either
libexif calls for exif images or imlib2 calls for any other image format
in your program.
Regards,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
pgpbucyThYyzh.pgp
Description: PGP signature
Re: [Chicken-users] imlib2 egg without X, felix winkelmann, 2006/05/19