[Y-devel] Tast List
James Harr james at grickle.org
Sun Feb 22 19:02:49 GMT 2004
From what I see there's 3 ways of supporting image formats.
1. Have the client convert it before passing it to the API.
2. Have the client's API convert it to bitmap before passing it to the server.
3. Have the server convert/interpret the image natively.
#1: Pros
The server/client doesn't have to worry about the format. Don't have to worry
about older Y servers not supporting an image format.
#1: Cons
Bandwidth issues over slow connections, adds burdon on the end programmer.
#2: Pros
Don't have to worry about older Y servers not supporting an image format.
Programmer doesn't have to convert image before passing it to the api.
#2: Cons
Bandwidth issues again. The client API might be compiled with out an image
format breaking some applications.
#3: Pros
Lots of bandwidth is saved. Programmers don't have to worry about converting
(simpler code).
#3: Cons
If you're connecting to an older Y, or one compiled to not support an image
format, the application will essentially be broken.
There's another option which I like, but might be a bit messy. It combines 2 &
3. The API would message the server asking if it supports a specific image
format, if ti does, send it as that format. If not, the client API will
change it to a format that is supported. Some lossless format, bitmap would
be very bandwidth intensive, however a png would take a lot of CPU to convert
if it's big.
Comments/Ideas?
Thanks,
James Harr
> I've had trouble finding a good image library, but was recently
> recommended DevIL ( https://openil.sourceforge.net/ ). It looks
> promising, although I've yet to use it. I would think that we'd want an
> image library if we want to support a wide range of image formats, but
> the problem is that even DevIL itself requires a nice set of libraries,
> such as libpng, and libjpg. They list 6 external libraries on the
> site. This would make the installation of Y more cumbersome.
> If we want to only natively support Icon and Bitmap, those are easy
> enough to do without a library. In fact, I've already written a C++
> bitmap class, albeit one that's not quite fully-featured, but could
> easily be finished. I only wrote it to handle the specific bitmap
> format I was using at the time.
>
> I'm just kind of thinking aloud here... .
>
> Keith
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved