Page 12 of 17 FirstFirst ... 28910111213141516 ... LastLast
Results 111 to 120 of 161

Thread: GPSFS Utility Program

                  
   
  1. #111
    DCEmu Rookie
    Join Date
    Dec 2005
    Posts
    242
    Rep Power
    71

    Default

    Quote Originally Posted by Codaz View Post
    How long do you need to fix it do you think ?
    I've isolated and separated the png read part and decoupled from write. It still is crashing in zlib... After I manage to fix it, I am rewriting the PNG handler, so that there is no "Analysis" phase, as there is no need for it... When a map is PNG based, it will "simply" generate a 16 color reduced map... I really want to finish this as I'd love to work on something else as well, so the motivation is really high on finishing it asap....

    I'll keep you posted...

  2. #112
    DCEmu Rookie
    Join Date
    Dec 2005
    Posts
    242
    Rep Power
    71

    Default v0.3 is here... ( with PNG 16 color compression )

    All right, I finally had 4 hours of uninterrupted coding time... Found the bug ( needless to say, it was in my code, but it was so elusive, that it crashed zlib and by debugging libpng which led to debugging zlib gave me the hints for fixing it... *sigh* )

    Anyways, if you open a map which is PNG based, it will offer a "Q-Create" button. This bypasses the analyze part and starts creating the 16 color reduced map. Since this uses only a guesstimate on the final size, GPSFS4 might be a bit out of sync with the rest, but it should still work...
    If you want really nice evenly spaced GPSFS files, run the "Analyze" before the "Create".

    zlib and libpng is not needed as they are linked in statically...

    The 16 color PNGs reduce the maps to 45%~65% of the original sizes...

    Cheers,
    MIB.42

    PS: I haven't tested it extensively, so let me know if you find "bugs"... Also, there is a minor memory leak ( ~20KB/1000 tiles) I will track down as soon as I have time...

    PS2: I have found a minor bug in the size computations, thus the rev1 attachment update

  3. #113
    PSP Coder deniska's Avatar
    Join Date
    Jul 2005
    Posts
    1,557
    Rep Power
    80

    Default

    cool!
    I'll give it a try and let you know!

  4. #114
    PSP Coder deniska's Avatar
    Join Date
    Jul 2005
    Posts
    1,557
    Rep Power
    80

    Default

    I tried it on a few, relatively small maps and I must say - I am impressed!
    IMHO, the quality is much better than via ->jpeg conversion. The compression artifacts are hardly visible on the most detailed zoom levels..
    Good job!

  5. #115
    DCEmu Newbie
    Join Date
    Sep 2007
    Posts
    40
    Rep Power
    0

    Default

    hi MIB.42
    it's working great for me
    but there is 1 thing i'm on a old monitor 800/600
    and when i use it it doesn't fit to the screen
    can u make it fitting the screen by pressing the square button???

    thnx for the progr.johoo

  6. #116
    DCEmu Rookie
    Join Date
    Dec 2005
    Posts
    242
    Rep Power
    71

    Default

    Quote Originally Posted by deniska View Post
    I tried it on a few, relatively small maps and I must say - I am impressed!
    IMHO, the quality is much better than via ->jpeg conversion. The compression artifacts are hardly visible on the most detailed zoom levels..
    Good job!
    Glad it works. Any "burning" issues I can help with?

  7. #117
    DCEmu Rookie
    Join Date
    Dec 2005
    Posts
    242
    Rep Power
    71

    Default

    Quote Originally Posted by johoo View Post
    hi MIB.42
    it's working great for me
    but there is 1 thing i'm on a old monitor 800/600
    and when i use it it doesn't fit to the screen
    can u make it fitting the screen by pressing the square button???

    thnx for the progr.johoo
    That's a bit tough, since 3 tiles are already 768 pixels and there is no menu or anything just yet... Hmmm, I may put together a single-tile version...

  8. #118
    PSP Coder deniska's Avatar
    Join Date
    Jul 2005
    Posts
    1,557
    Rep Power
    80

    Default

    Quote Originally Posted by MIB.42 View Post
    Glad it works. Any "burning" issues I can help with?
    I may need some help with Vector maps implementation.. and gu routines..
    I'll post the latest code snapshot once I clean it up a bit...
    basically, I already re-wrote most of that stuff,but it has some minor issues...

  9. #119
    DCEmu Regular
    Join Date
    Feb 2007
    Posts
    448
    Rep Power
    68

    Default

    Beautiful that coders ask eachothers help.

    MIB i will try the program out in a few seconds !

    I'll report ASAP.

    What's on stake for version 0.4 ?

    ========

    Report:

    Program is working VERY well, BUT i can't set the image quality of PNG maps with a slider or something.
    On JPEG maps i can set the end size with the slider.

    Also the Qcreate doesn't give an estimate of the size it will be.

    A bit confusing is it now. It would be better if there was a build in comparison chart that says:

    Process the map now and you get:

    JPEG normal = 50 mb.
    JPEG max = 20 mb
    PNG normal (current) = 50 mb.
    PNG max (16bit) = 18 mb.

    Or something like that.

    =====

    I analyzed a 54,1 mb PNG map which gives with no compression a 82 mb JPEG map. WOW ! How does that come ?

    If i say compress it to jpeg max compression it will look much worse (64 mb) than png 16 bit color which is only 28,1 mb.

    So great job done, map is from 54 mb to 28. With png > jpeg on max it will only go from 54 to 64 and it looks blocky.

    Why is the estimate size on jpeg conversion not right ? It says with max jpeg compression (slider set) it will be 46 mb. But i viewed the folder and it was 64,6 !

  10. #120
    DCEmu Regular
    Join Date
    Feb 2007
    Posts
    448
    Rep Power
    68

    Default

    I tried some things out with photoshop on several tiles and other images. Wouldn't it be good to do a 8 color GIF addon because it will give good viewable results.

    8 bit diffused with restriction (216 web colors).

Page 12 of 17 FirstFirst ... 28910111213141516 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •