Re: Rapid gfx display Qs




"Jim Mack" <jmack@xxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:OD8F23JuIHA.4736@xxxxxxxxxxxxxxxxxxxxxxx

I won't have the actual images for a couple of weeks, so I'm just
using a completely random set of images that I resized to 1280x720.
Some are rather surprising when they pop up, no matter what the
colors. (-:
<g>

I have in my library some very fast ASM code to swap red/blue
on entire bitmaps. At least it will be fast enough to do a one-time
swap-and-encode on the (now I'm told 85,000) images in my
final set.
If you look at the JPG-encoding-routine (sitting in Form_Load),
this routine already does the Color swapping directly in the
Intel-Lib, simply by telling the intel-routine, that the incoming
Raw-DIB (which has Win-conform 24BitBGR-Colors) is
encoded in 24BitRGB (which is of course wrong) - and the
resulting JPG is then internally encoded with swapped R and B,
because that's what we want, to ease the burden for the
decoding-routine, where each milisecond counts - a slightly
optimized VB-native-Code routine needs ca. 8msec for color-
swapping - maybe with ASM you can get this down to 2 or
3msec, but as said, this wouldn't be necessary, if your JPGs
already reside encoded with swapped Colors on your disk
(also a nice "visual encryption" - that's what I would tell
my customer about these weird coloring of these JPGs ;-).

I haven't tried the newer version yet, and if it's deliberately
slower, I probably won't.
It's not much on my faster system, only 0.5msec or so -
but the more "compatible" version - probably useful for
others, who want to distribute a solution to "unknown
customer-hardware".

It's my understanding that using a flipping chain with 2
backbuffers can eliminate the need to delay updates
while waiting for the VBlank to flip. I don't have the
display memory now to support that (I don't think),
but when I do, I'll give that a try too.
If you fiddled that out, then I would be interested in your
results (the "flipping-code") - haven't played around with
that DX-stuff yet.

Olaf


.



Relevant Pages

  • Re: Rapid gfx display Qs
    ... using a completely random set of images that I resized to 1280x720. ... I don't have the display memory now to support that (I don't ... target system will use a full-screen borderless form, ... should be more than fast enough for loading JPGs. ...
    (microsoft.public.vb.general.discussion)
  • Re: Canon 17 - 40mm F/4 L lens - Help PLEASE
    ... > They were JPGs! ... do you have another lens, ... > All images are un retouched exactly as they came from the camera. ... Realize that your Nikon applied in-camera sharpening to its images ...
    (rec.photo.digital.slr-systems)
  • Re: Pasting causing large problems....
    ... I do know that as of Word 2002 images are handled better than they ... How large are the *.jpgs? ... He is working on a Word 2000 text document in Windows 98 ... > *.Net account set up for my work e-mail address. ...
    (microsoft.public.word.application.errors)
  • Re: Eurocon 2007 Progress Report #2 out now
    ... Some browsers block some jpgs when their security settings are set to ... They're 76 DPI RGB images. ...
    (rec.arts.sf.fandom)
  • Re: Suddenly Cant Save JPGs
    ... | The strangest thing happened this morning --- I suddenly can't save images ... | as JPGs, only BMPs. ...
    (microsoft.public.windowsxp.photos)