Re: fast image display [message #30726] |
Wed, 15 May 2002 16:48  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Dan Larson (drl16@cornell.edu) writes:
> I'm not using a 486 :). However, I have tried the approach that
> several people suggested, Xinteranimate. This routine works fine
> for about 100 image frames. Larger number of frames leads to the
> following error message:
>
> "%window: unable to open pixmap" OR
> "unable to allocate memory for backing store. Window closing."
>
> This is a problem I have encountered before with Xinteranimate.
> Changing the backing store (RETAIN) doesn't really alleviate
> the problem. In addition, I don't know how to add color with
> Xinteranimate.
>
> It could be I'm asking for too much to use pixmaps on such
> large arrays...
Allocating pixmap memory is always an interesting
proposition. Pixmap memory is allocated against
the video driver. It is up to the video driver what
is done when more memory is asked for than it has
available. Many drivers can use system memory to
store extra pixmaps. Others can page virtual
memory. With these drivers you can create absolutely
huge pixmap files. Some drivers are extremely limited.
For example, Windows NT drivers cannot page virtual
memory, so you are strictly limited to system
memory.
In any case, it is probably more a hardware problem
than it is an IDL problem.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|
|
|
|
|
Re: fast image display [message #30738 is a reply to message #30737] |
Wed, 15 May 2002 13:30   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Mark Hadfield (m.hadfield@niwa.co.nz) writes:
> I think you're wrong there, Rick. (Gee I never thought I'd get to say
> that!) XINTERANIMATE generates off-screen pixmaps and then brings them
> onto the screen with DEVICE, COPY=... and this is faster than calling
> TV for every frame.
>
> So, as Reimar suggested, Dan should definitely check out
> XINTERANIMATE.
I agree that pixmaps are the way to go. But, if you
find RSI-written code as daunting as I do, I have
a simplified version that was written specifically
to be understood:
http://www.dfanning.com/programs/xmovie.pro
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|
|
|
Re: fast image display [message #30863 is a reply to message #30728] |
Wed, 15 May 2002 17:27  |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
"Dan Larson" <drl16@cornell.edu> wrote in message
news:MPG.174cba3ac610598c98968e@newsstand.cit.cornell.edu...
> I'm not using a 486 :). However, I have tried the approach that
> several people suggested, Xinteranimate. This routine works fine
> for about 100 image frames. Larger number of frames leads to the
> following error message:
>
> "%window: unable to open pixmap" OR
> "unable to allocate memory for backing store. Window closing."
Well in that case you may find it worth your while to look at the
image-sequence animator object in my MGH_Motley libray. It should do
everything you want provided you have enough RAM (and IDL 5.5). The
library is now available from either of these URLs...
ftp://ftp.niwa.cri.nz/incoming/m.hadfield/MGH_MOTLEY.tar.gz
ftp://ftp.niwa.cri.nz/incoming/m.hadfield/MGH_MOTLEY.zip
...(same code, different archive format). Take a look at...
mgh_example_image_sequence.pro
mgh_imagator__define.pro
> ...In addition, I don't know how to add color with
> Xinteranimate.
Me neither. With the mgh_imagator object you just select the "Edit
Palette" item in the Tools menu.
--
Mark Hadfield "Ka puwaha et tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|