jpeg files - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

jpeg files

DaKillerDaKiller Posts: 5Member
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?

Comments

  • KDivad LeahcimKDivad Leahcim Posts: 3,948Member
    : 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...
  • KDivad LeahcimKDivad Leahcim Posts: 3,948Member
    : 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!
    : [size=1][blue]RuntimeTerror[/blue][/size]
    :
    :
    www.wotsit.org

    Contains formats for quite a few file types. I believe it contains code or theory on jpegs as well.
Sign In or Register to comment.