Re: Speeding up Bitmaps Loading

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Perlom (perlom_at_no_spam_hotmail.com)
Date: 06/18/04


Date: Fri, 18 Jun 2004 11:25:25 -0400


Thanks Phillip for the Info. Can you direct me to where I can find few
samples about the method you suggested, or to which forum I should ask?

kind regards.

"Philip Taylor [ATI]" <ptaylor@online.newsgroup-poster.ati.com> wrote in
message news:OA7uIZIVEHA.1048@tk2msftngp13.phx.gbl...
> load it as a DirectX texture, and access it that way, since GDI based
access
> are usually slower than DX accesses.
>
> this requires you to understand the texture format to such a level of
detail
> you dont have to depend on GDIs format conversion, which is usually the
slow
> part.
>
> if its really just the file access thats the bottleneck, than DX cant help
> you much and this forum isnt the right place to ask.
>
> "Perlom" <perlom@no_spam_hotmail.com> wrote in message
> news:e0sc$4HVEHA.1472@TK2MSFTNGP09.phx.gbl...
> > I am trying to load a sequence of large bitmaps (720*486) and then loop
> thru
> > each pixel and convert its color space form RGB to YCbCr which is used
in
> TV
> > broadcasting. I'm using VB.NET. Unfortunately, the overall process came
> up
> > to be real slow specially when running this on 300 frames (around 3
> > minutes). The steps are:
> >
> > - Loop thru al files to load each bitmap:
> > Dim mBitmap as Bitmap = Bitmap.FromFile(FileName(i))
> >
> > - Loop thru each pixel, get the color, and apply mathematical
conversion
> > For J = 0 to mBitmapHeight
> > For K = 0 to mBitmapWidth
> > mColor = mBitmap.GetPixel(K,J)
> > Y = (Some math function involving R,G,B Values)
> > Cb= (Some math function involving R,G,B Values)
> > Cr= (Some math function involving R,G,B Values)
> > mFile.Write( values)
> > Next
> > Next
> >
> > After doing some analysis, I found that the bottle nock is loading the
> > Bitmap step. I am wondering if there any faster way to load a Bitmap. I
> > read on the MSDN site about Cashed Bitmaps, but I wasn't able to find an
> > example. Anybody has a suggestion? Thanks in advance.
> >
> > Kind Regards.
> >
> >
>
>



Relevant Pages

  • Re: Any way to log an individual users traffic?
    ... > Thanks for the suggestion about logging the gateway traffic but the problem ... > Perhaps one of the networking forums would be a better place for this. ... you if their solution is portable to Solaris. ... comp.unix.admin (and/or a Solaris admin forum) in another reponse since ...
    (comp.unix.questions)
  • Re: Can I sell pictures of landmarks??
    ... damn mouth shut Mons!! ... said that my suggestion to Mark was not the best idea (which you ... So far you have not suggested anything useful in the forum! ...
    (alt.photography)
  • Re: Any known health risks associated with drinking expresso?
    ... Try to ask a serious question in this forum and you can count on all ... Loosely speaking one could be late to the monthly meeting of ... membership in the Losers Club. ... So my suggestion to you is to loosen up or lose yourself in another ...
    (alt.coffee)
  • Re: This Newsgroup. Isn t it time.............
    ... Brenda Ann wrote: ... <SNIP> ... Some problems with your suggestion: ... Some of the most knowledgeable SWL's in this forum, ...
    (rec.radio.shortwave)
  • Re: Can I sell pictures of landmarks??
    ... Instead of attacking someone you ... > that my suggestion to Mark was not the best idea (which you ... > So far you have not suggested anything useful in the forum! ... My intent was never to impress you, nor your friends, so I don't care ...
    (alt.photography)