Angus Leeming <[EMAIL PROTECTED]> writes:
 
| Yes they could, and that is probably a good thing to do. In that case 
| the 'default" format if no grfx::Converter::isReachable(from, to) is 
| defined becomes the first format in the list.
| 
| Nice idea, Jean-Marc. Thank you.

This seems very similar to the idea I had about conversion
reachability in beginning of the graphics work (before any real work
was begun)..


Create an acyclic graph and have empirical numbers for the edges
(giving translation speed)...

Of course if you know that some of the directly useable nodes are
slower or faster than others you use that as a modifer on the shortest
path algorithm.

We could even check these tranlations speeds upon configure or upon
install.

xform support only ppm:

gif-- 4 -->ppm
jpg-- 4 -->ppm
eps-- 3 -->pnm
eps-- 5 -->ppm
pnm-- 1 -->ppm
png-- 2 -->ppm

so if we build the graph whith this data ans want to translate eps to
ppm, we find that the fastest way is not to do it directy, but to do
it by using pnm as intermediate format.

By doing it this way, we do not have to supply only one way of going
from one format to another, we supply a lot, do some (perhaps a bit
more) testing to get data on how fast all the convers are and then use
the graph to find the quickest way on that computer/distribution with
this/that set of available converters and with the given gui toolkit.

Also one nice thing is that the cpu hungry task in this is done once
after that we just have the result in a file.

-- 
        Lgb

Reply via email to