Article View: borland.public.cppbuilder.multimedia
Article #331Re: jpg to bmp from FrameCallbackProc without fileio
From: Hans Galema
Date: Wed, 19 Jan 2005 12:44
Date: Wed, 19 Jan 2005 12:44
17 lines
2113 bytes
2113 bytes
Peter Fagerbrant wrote: > BYTE* pLine = (BYTE*) > ((THackJPEGImage*)JPEGImage)->Bitmap->ScanLine[y]; > It drops to 15fps. > It looks like the ScanLine[y]; is the big thief here. Try to call it only twice. Determine the difference of the two values for pLine. Then further use that difference to add to the previous start value of pLine to get the value for the next line. Well if Scanline[] was an array that would work. But if [] is an operator it would fail. You could just give it a try. Hans.
Technical Details
Message-ID:
<41ee5665$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!news-mue1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41ebb760@newsgroups.borland.com> <41ebbf15$1@newsgroups.borland.com> <41ebc6d3$1@newsgroups.borland.com> <41ebcb8c$1@newsgroups.borland.com> <41ebce5b$1@newsgroups.borland.com> <41ebd086$1@newsgroups.borland.com> <41ebd7a4@newsgroups.borland.com> <41ebdb02@newsgroups.borland.com> <41ee20a3$1@newsgroups.borland.com> <41ee3744$1@newsgroups.borland.com> <41ee3e3f$1@newsgroups.borland.com> <41ee43e8$1@newsgroups.borland.com> <41ee4f26$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,e7775a35dcf064b6 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 19 Jan 2005 13:44:25 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: jpg to bmp from FrameCallbackProc without fileio References: <41ebb760@newsgroups.borland.com> <41ebbf15$1@newsgroups.borland.com> <41ebc6d3$1@newsgroups.borland.com> <41ebcb8c$1@newsgroups.borland.com> <41ebce5b$1@newsgroups.borland.com> <41ebd086$1@newsgroups.borland.com> <41ebd7a4@newsgroups.borland.com> <41ebdb02@newsgroups.borland.com> <41ee20a3$1@newsgroups.borland.com> <41ee3744$1@newsgroups.borland.com> <41ee3e3f$1@newsgroups.borland.com> <41ee43e8$1@newsgroups.borland.com> <41ee4f26$1@newsgroups.borland.com> In-Reply-To: <41ee4f26$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <41ee5665$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106138725 129.125.201.248 (19 Jan 2005 04:45:25 -0800) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!news-mue1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail