Omnimaga

Omnimaga => News => Topic started by: critor on February 16, 2012, 09:35:27 am

Title: mViewer adds PNG support for all TI-Nspire!
Post by: critor 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(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)
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
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: Hayleia 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)
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: apcalc on February 16, 2012, 11:16:47 am
Great news!  Excellent work critor! ;)
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: Jim Bauwens on February 16, 2012, 11:17:01 am
Very nice and good work Critor :)
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: renatose on February 16, 2012, 02:38:56 pm
great job ;) I'm really thankful for this!
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: blauemauritius on July 26, 2013, 02:47:57 pm
How does work mv() or mvl()?
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: Legimet on July 26, 2013, 06:48:50 pm
What do you mean?
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: lkj 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 (https://tiplanet.org/forum/viewtopic.php?f=43&t=11994&hilit=mvl)

It's explained how it works there.
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: blauemauritius 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.
Title: Re: mViewer adds PNG support for all TI-Nspire!
Post by: critor 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.