[Y-devel] Tast List

Maurice van der Pot griffon26 at kfk4ever.com
Sun Feb 22 19:24:30 GMT 2004


On Sun, Feb 22, 2004 at 01:02:49PM -0600, James Harr wrote:
> 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.

Bandwidth would only be an issue if you convert it to something like a bitmap.

> 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.

How about exchanging information about supported image types just after 
setting up the connection? After this handshake both client and server
would have a list of image formats that are known to be supported by the
other side.

Better to exchange this information up front than require another exchange
for each image transfer. The client API would internally convert to the 
most suitable format.

Maurice.




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved