Author Topic: mViewer adds PNG support for all TI-Nspire!  (Read 11578 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 adds PNG support for all TI-Nspire!
« on: February 16, 2012, 09:35:27 am »
Today, you get the new mViewer CX 3.0, which adds compatibility with all TI-Nspire! ;D
Meaning that you can now view PNG and BMP images on both color and monochrome Nspire.

PNG support was enhanced and file associations ".png.tns" and ".bmp.tns" are now supported.


Enjoy!






Download:
http://tiplanet.org/forum/archives_voir.php?id=3900

Cross-posted from:
http://tiplanet.org/forum/viewtopic.php?t=8799
« Last Edit: February 16, 2012, 09:36:19 am by critor »
TI-Planet co-admin.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #1 on: February 16, 2012, 10:28:50 am »
Great ! :D
Now I don't have to put all my images in the same folder :)
(You'll say, you didn't have to, even before. I'll answer yes but it is much more convenient)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #2 on: February 16, 2012, 11:16:47 am »
Great news!  Excellent work critor! ;)


Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #3 on: February 16, 2012, 11:17:01 am »
Very nice and good work Critor :)

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #4 on: February 16, 2012, 02:38:56 pm »
great job ;) I'm really thankful for this!

Offline blauemauritius

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #5 on: July 26, 2013, 02:47:57 pm »
How does work mv() or mvl()?

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #6 on: July 26, 2013, 06:48:50 pm »
What do you mean?

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #7 on: July 26, 2013, 07:41:31 pm »
He's probably talking about a newer mViewer version that creates hooks so it's opened when you type mv() in a calc page.

French news on TI-Planet: https://tiplanet.org/forum/viewtopic.php?f=43&t=11994&hilit=mvl

It's explained how it works there.
« Last Edit: July 26, 2013, 07:42:27 pm by lkj »

Offline blauemauritius

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #8 on: July 29, 2013, 10:36:14 am »
Yes... It works now. Thanks.

I have one additional question. I want to open with mv() or mvl() a defined image (e.g. mv(/.../image.jpg)). Where are the functions mv() and mvl() defined? I have seen the code in mviewer.c. I understand the code, but i don't see where the functions mv() and mvl() are defined.

Could someone help me?

Thank you.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer adds PNG support for all TI-Nspire!
« Reply #9 on: July 29, 2013, 08:01:29 pm »
Hi,


The TSR code for now just checks with a memcmp if the input matches the "mv()" or "mvl()" strings.
Those strings are hard-coded in mviewer.c:

Code: [Select]
// mv()
const unsigned char mviewerstring1[] = {0x6D, 0x00, 0x76, 0x00, 0x28, 0x00, 0x29, 0x00, 0x00, 0x00};
// mvl()
const unsigned char mviewerstring2[] = {0x6D, 0x00, 0x76, 0x00, 0x6C, 0x00, 0x28, 0x00, 0x29, 0x00, 0x00, 0x00};

I'll be happy to read about your achievements.
« Last Edit: July 29, 2013, 08:02:36 pm by critor »
TI-Planet co-admin.