Author Topic: mViewer - Nspire BMP viewer  (Read 18196 times)

0 Members and 1 Guest are viewing this topic.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
mViewer - Nspire BMP viewer
« on: December 12, 2010, 09:53:27 pm »
mViewer is my BMP viewer for Ndless 1.7.



The code is based on the demo b JayTe that was published on TI-Bank for Goplat's emulator allmost a year ago.
It also includes some come from Levak (zoom).


Of course nothing very impressing... you allready have such a tool in another topic.


But if I tell you that:

* you can browse the whole filesystem (you can put the reader and the bitmaps in different folders)

* you can scroll while viewing the image (yes, you're not limited to the screen dimensions any more)

* you can zoom in/out on the image (keys: * / )

* you can set the constrat while viewing the image (keys: + -)

* you can open any BMP file:
- included support for 1/2/4/8/16/24/32 bits images
- included support of RGB/RGBA/RGBAX encoding (yes, 'Alpha' is supported - 'X' is ignored)
- included support for BITFIELD mode (specified RGBAX)
- included support for raw or RLE-compressed data


What do you say ?

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #1 on: December 12, 2010, 09:55:04 pm »
Very nice!  Dropping on calc right now.
Edit: Strike that.  No d/l link.
« Last Edit: December 12, 2010, 09:55:27 pm by SirCmpwn »

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #2 on: December 12, 2010, 09:57:42 pm »
No d/l link.

Wait a minute. I'm currently uploading the archive.
TI-Planet co-admin.

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #3 on: December 12, 2010, 09:59:36 pm »
* SirCmpwn prepares an image

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: mViewer - Nspire BMP viewer
« Reply #4 on: December 12, 2010, 10:02:58 pm »
Wow!  Looks very nice! :)


Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #5 on: December 12, 2010, 10:08:39 pm »
It's online.

http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=2014


Please, if you manage to find/generate a BMP file which is not displayed correctly, please send it to me without altering it (converting to GIF/JPEG to host the file online would be totally useless...).
Thank you very much.
« Last Edit: December 12, 2010, 10:09:40 pm by critor »
TI-Planet co-admin.

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #6 on: December 12, 2010, 10:12:59 pm »
First one I tried doesn't work.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #7 on: December 12, 2010, 10:15:41 pm »
First one I tried doesn't work.

Does the included example work?
(if not, there is some problem)


What did you get?
* bad display?
* error message?
* reboot?


I have generated more than a dozen different BMP formats  with Paint and The GIMP.
I had no problem with them.
« Last Edit: December 12, 2010, 10:16:18 pm by critor »
TI-Planet co-admin.

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #8 on: December 12, 2010, 10:23:58 pm »
Bad display.  I got the sample one to work, though.
I also threw a large resolution one on it to no avail.  (Reboot)
« Last Edit: December 12, 2010, 10:24:14 pm by SirCmpwn »

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #9 on: December 12, 2010, 10:27:51 pm »
Bad display.  I got the sample one to work, though.
I also threw a large resolution one on it to no avail.  (Reboot)

Thank you SirCmpwn for testing so quickly.

I've downloaded your attached file.
The display is bad.
I've tried to open the file with TheGIMP and just saved it again without changing anything.

The file size is exactly the same.
A hexadecimal editor is showing a little difference in the header.
(the image data is identic)

And the GIMP file is displayed properly.


I'm going to check that.
(could have been worse than some bytes in the header)


Did you download the file?
Did you generate it yourself? In this case, what software did you use?


Thank you very much!
« Last Edit: December 12, 2010, 10:29:07 pm by critor »
TI-Planet co-admin.

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #10 on: December 12, 2010, 10:28:45 pm »
I went to google and searched for "locat."  It was a jpeg, so I used Paint.NET to convert it to a .bmp.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #11 on: December 12, 2010, 10:37:28 pm »
I went to google and searched for "locat."  It was a jpeg, so I used Paint.NET to convert it to a .bmp.

I've found the difference.
The data size is supposed to be stored at offset 0x22h.

On my GIMP file this is ok.
On your file, the size is set to 0.

But it's not a problem beacause your BMP is not compressed: data size can be calculated easly.

I'm recompiling...
« Last Edit: December 12, 2010, 10:37:49 pm by critor »
TI-Planet co-admin.

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #12 on: December 12, 2010, 10:45:56 pm »
Sounds good :) I look forward to seeing the new version.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #13 on: December 12, 2010, 10:51:44 pm »
I've attached the new binary.


It opens your image, SirCmpwn.
Very nice in grayscale ;)

Thank you for helping me improving the BitMap support.


What were the size, width and height of your high res file?
TI-Planet co-admin.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55851
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: mViewer - Nspire BMP viewer
« Reply #14 on: December 12, 2010, 10:56:16 pm »
Awesome Critor! Is it based on Bwang's BMP viewer by the way? I don't think he ever updated his for OS 1.7 so I was curious. Nonetheless this looks like a great program. :)
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify