Re: Once and for all! Fastest way to load large jpeg
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sun, 10 Dec 2006 18:17:49 GMT
On 10 Dec 2006 09:44:17 -0800, jimbo@xxxxxxxxxx wrote:
<snip>
Caching would make quite a difference if you are continuously showing
the same images - it might be a bit memory heavy.
Can Delphi do this?
Any language can - we are just manipulating bytes.
IME the really expensive thing about disk access is locating and
opening the File - if one can find a way of just having one open file,
partioned with a way of getting at individual 'records' then you
should get a massive jump in performance ( well I've always found so
in the past - but hardware is steadily improving ).
What does a TImageList do? I'm Delphi naive (6 months) but I got the
impression from the documentation that it does something like what
you've described but I'm scared to death of it. :(
It is a waste of time, it just stores a few identically sized bitmaps
- it is a childish control
I once wrote something like that, it stored 10,000 pages of HTML with
Images in just one file - even running from CD it was pretty snappy.
My program is a kiosk for viewing and ordering digital images and is
reading external drives so the program is always working from cd or usb
that's why the premium on loading large images. Cameras are producing
larger photos. Media can hold hundreds of photos. I have to display a
reasonable sized image for inspection so when the thumb is clicked I
load from the media.
Right, so the photos are all different, that rules out caching.
You could do a bit of profiling, say pre-loading images into an array
of Strings and getting at them via a TStringStream.
Sorry you've lost me there. Can I preload a whole bunch of images that
way? Do you have a piece of code? Does it achieve the same thing as
cacheing? Thanks for staying with me. Sorry about all the questions.
I've searched for delphi + cache but everything was .net or internet
related.
I can think of some devious ways of making things run faster.
A few questions :-
How do you know the names of the JPEGs that you want to display ?
Where exactly are those JPEGs coming from
How long do you want to keep the JPEGs
If you are doing a security camera control system then explain what
you want.
.
- Follow-Ups:
- References:
- Once and for all! Fastest way to load large jpeg
- From: jimbo
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Re: Once and for all! Fastest way to load large jpeg
- From: jimbo
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Re: Once and for all! Fastest way to load large jpeg
- From: jimbo
- Once and for all! Fastest way to load large jpeg
- Prev by Date: Re: Once and for all! Fastest way to load large jpeg
- Next by Date: Re: Manually adding range checking code ?
- Previous by thread: Re: Once and for all! Fastest way to load large jpeg
- Next by thread: Re: Once and for all! Fastest way to load large jpeg
- Index(es):
Relevant Pages
|