Re: MMX speedup for Floyd Steinberg error diffusion



Huh?

I guess you intend that each frame should be visible a fraction of a
second, otherwise it cannot take part in the visual center averaging, right?

The problem with this idea is that color displays are digital devices,
with a granularity of 60/70/80 Hz, or whatever your refresh rate happens
to be. Writing two images between frame updates wil simply lose the
first one. :-(


No, not that way...

The GIF standard allows each animation frame to render contents on top
of the earlier one ( it has a "retain previous frame contents" flag ).
Each frame can have its own palette and in theory a frame delay of 0
means render each frame as fast as possible. So one true color image
can be broken up into several 256 color pieces and overlapped into a
"collage". So depending on the speed of the system it would appear as
a kind of progressive image which coalesces to the final true color
result.

The problem with this is that no browser acknowledges a delay of <
3/100 of a second ( thats definitely not due to the complexity of the
decoding algorithm, the windows directshow framework is able to render
GIFs at 400 fps when I test )
Of course in the worst case, it may take several 1000's of frames to
get all the colors in the image.

In theory at least, 24 bit color GIFS are possible and could be
practical for static images...

Best Regards
Vivek

.



Relevant Pages

  • Re: Tearing in Direct3D with TFT/LCD-Display
    ... render a frame faster then the monitor refresh. ... In short if you run at 60hz, you will need to have a scene that can render ... > Enabled and disabled VSYNC for Direct3D (and yes, ... > // Get the owner window ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: "Direct3D9: (ERROR) :Error trying to lock driver surface" error when using VMR9
    ... I have to use a separate render loop (not presenting in AP's ... This error comes out even when not using the texture! ... while the 3d render engine doesnt ask for a frame: ... texture from the buffer and signal a new texture in the buffer ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Fixed Framerate
    ... > second frame and still maintain a 36 fps framerate on a standard monitor. ... Note that presentation intervals of two or higher require that the driver ... render every refresh to begin with). ... After EndScene() has been called, there will be some period of time ...
    (microsoft.public.win32.programmer.directx.managed)
  • Play Video without Blank while Rendering.
    ... How to Play Video Files without Black Frames, ... i am using DirectShow to play video files in VB6 ... i could render 2 files together and switch one by one, ... capturing last frame of previous video and show it till we render Next ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: my opengl progs - ZX & nonZX themed
    ... It takes ages for them to render one frame! ... Modern computer outlets are boring and cheap. ... expensive in meanings of time and really cheap in meanings of electric ...
    (comp.sys.sinclair)