Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 1677
Number of posts: 4766

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
jpeg files Posted by DaKiller on 26 Jun 2002 at 5:58 AM
i am opening an img.jpg in qbasic but it is very slow...
how can i optimize the program in order to open images faster?
Report
Re: jpeg files Posted by KDivad Leahcim on 27 Jun 2002 at 7:31 AM
: i am opening an img.jpg in qbasic but it is very slow...
: how can i optimize the program in order to open images faster?
:

Optimizing has to do with the way your code is structured. Removing Gotos, Gosubs, function calls, Ifs, etc. anything that modifies the control flow (sends code execution to a different place) will accelerate execution, but that's not always possible. I don't remember if it does, but if QB supports Variant data types (unspecified type) and you use any of them, it will slow code down considerably. Using the proper data types is also important since conversions take time.

I can't think of anything else, especially without code to look at. Then again, I don't know that I could help more even with code to look at...
Report
Re: jpeg files Posted by RuntimeTerror on 17 Jul 2002 at 12:16 PM
Is it possible to get the source code for reading jpegs? Also I'm interested in the algorithm used for decompression. Maybe I'm able to optimize it in runtime.

let me know
thx in advance

Errors show that you've tried it!
RuntimeTerror

Report
Re: jpeg files Posted by KDivad Leahcim on 18 Jul 2002 at 8:13 PM
: Is it possible to get the source code for reading jpegs? Also I'm interested in the algorithm used for decompression. Maybe I'm able to optimize it in runtime.
:
: let me know
: thx in advance
:
: Errors show that you've tried it!
: RuntimeTerror
:
:
www.wotsit.org

Contains formats for quite a few file types. I believe it contains code or theory on jpegs as well.
Report
Re: jpeg files Posted by RuntimeTerror on 19 Jul 2002 at 2:37 AM
Hey, great stuff...

thanks!

Errors show that you've tried it!
RuntimeTerror




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.