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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.