Andreas Beck <[EMAIL PROTECTED]> writes:

> > Andreas Beck <[EMAIL PROTECTED]> writes:
> 
> > > while(write(handle,buffer,read(handle,buffer,bufsize))); 
> 
> > But there you use 'buffer' as temporary storage, which is exactly
> > what I want to avoid. Or do you intend some non-obvious magic?
> 
> I mean a _small_ buffer for that. We will need _some_ kind of buffer
> anyway, when we want to pass data around.

Not really.
 
> I think that is the best compromise between speed (single pixels would use
> less memory, but it would crawl) and memory usage.

Well, I don't like compromises when you can get both worlds. ;)
What I want (for the simple conversions like truecolor<->truecolor
at least) is:

convert(handle1, handle2);

which doesn't do any intermediate load stores.

But maybe we're talking about different things? I'm just talking
about conversions from one pixel-format to another. If you're
talking about reading an image file from disk and writing it out
in another image format you will ofcourse need some intermediate
buffer.

> Regarding LibGFP I can send you a draft for the external API that was made
> up by me and C.Egger in the meantime. Interested ?

Sure, send it over.

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan
 Royal Institute of Technology |       Phone: +46 707 295404
       Stockholm, Sweden       |   E-Mail: [EMAIL PROTECTED]

Reply via email to