Omnimaga

Omnimaga => News => Topic started by: critor on July 28, 2012, 11:10:09 pm

Title: New mViewer CX 3.2 adds JPEG support
Post by: critor on July 28, 2012, 11:10:09 pm
mViewer is an image reader for all TI-Nspire.
Unlike the OS, it lets you open images bigger than the screen, zoom in, zoom out, and scroll them.

(http://tiplanet.org/modules/archives/captures/1327260523mviewe13.jpg)



The latest main improvements were TI-Nspire CX support and PNG images support thanks to a port of zlib and libPNG libraries for the TI-Nspire by JayTe.



mViewer CX 3.2 now includes a port of the libJPEG library for the TI-Nspire by myself, adding JPEG images support. :thumbsup:

You can now open BMP, PNG and JPEG images. :thumbsup:



There has also been speed improvements and many memory improvements which should help you opening bigger images on non-CX TI-Nspire which are limited in RAM (32MB SDRAM, allmost filled by the OS). :thumbsup:






Source: http://tiplanet.org/forum/viewtopic.php?f=43&t=10171
Download: http://tiplanet.org/forum/archives_voir.php?id=6601
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: DJ Omnimaga on July 29, 2012, 12:05:12 am
That's great. JPEG is much smaller than PNGs (although less quality) so hopefully for some images it should be quite handy :D

Would GIF (along with animated GIF) support be feasible?
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: Hayleia on July 29, 2012, 02:14:46 am
This is great news :D
However, this still need Ndless, right ? So calling it mViewer 3.2 is not a good idea in my opinion. People could think it runs on OS 3.2
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: critor on July 29, 2012, 06:45:52 am
This is great news :D
However, this still need Ndless, right ? So calling it mViewer 3.2 is not a good idea in my opinion. People could think it runs on OS 3.2

I understand the problem, but last version was 3.1...
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: Reo on July 29, 2012, 06:48:36 am
This is great news :D
However, this still need Ndless, right ? So calling it mViewer 3.2 is not a good idea in my opinion. People could think it runs on OS 3.2

I understand the problem, but last version was 3.1...
Perhaps, until a version of ndless is released for 3.2, you could try something like 3.1x (so this might be "3.11")
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: Lionel Debroux on July 29, 2012, 06:53:43 am
Or 4.0, as this corresponds to feature level 4 ?
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: Hayleia on July 29, 2012, 12:23:07 pm
Or you just add revisions, like Ndless. This would be mViewer CX 3.1 r1.
Now that I think of it, it is the same as Reo's solution but a bit more ugly -.-
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: Lionel Debroux on July 29, 2012, 12:30:31 pm
Ndless revisions refer to a revision in SCM (namely, SVN), while I'm not aware that there's a SCM for mViewer ;)
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: critor on July 29, 2012, 09:38:52 pm
mViewer CX updated to version 3.21.

- disabled double buffering on CX because of a side bug (flickering screen) when changing screen base address (don't worry: no speed issue)

- improved scrolling on zoomed in images

- improved touchpad reactivity, espacially on zoomed in images



If you have a touchpad, try this version - you're going to love it! :D



Download:
http://tiplanet.org/forum/archives_voir.php?id=6601
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: DJ Omnimaga on July 29, 2012, 09:53:24 pm
I'Ll have to update my copy because I still got one of the first CX-compatible version XD
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: critor on July 29, 2012, 11:10:46 pm
mViewer CX updated again to version 3.22, and this time I'm very happy with this one :)

Double buffering is back on the CX, and the flickering screen side bug which had bothered me for 6 months is now fixed.

Double buffering needs 2 16-bits screen buffers.
For one of them, we can take the default OS screen buffer.
But the other has to be (m)allocated...

And the PL111 screen controller from the CX only want the screen address to be set double-word-aligned (divisible by 8 ).
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0293c/I899134.html

So when malloc was returning addresses not divisible by 8, the screen address used by the hardware was the nearest lower number divisible by 8, so lower than the address known to mviewer, making the screen shift.


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



A similar bug might be present in nDoom on CX, as it uses an 8-bits screen buffer non-CX handhelds had to (m)allocate, which is useless on CX but I think I didn't make a CX-specific version of this line.
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: critor on August 01, 2012, 01:42:37 pm
Updated mViewer to 3.3 with many RAM optimisations.



Just check the demo: I can open images with more than 16Mpixels! :crazy:
(TI-Nspire CX only - the 64MB SDRAM chip is needed)




Such images take something like 30-34MB in RAM when decompressed, meaning that the OS takes 30MB, and that it can't go on growing up like that on non-CX TI-Nspire (32MB RAM chip).



Source with more information:
http://tiplanet.org/forum/viewtopic.php?f=43&t=10181&p=127860#p127860

Download:
http://tiplanet.org/forum/archives_voir.php?id=6601
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: apcalc on August 02, 2012, 10:54:22 am
Looks good and quite handy! ;D
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: pojo on April 01, 2013, 10:22:38 pm
feature request : is it possible to have a feature that by pressing a forward/backward key allows the next/previous image to be shown while viewing the current image ? this would save a lot of time when searching through many images..(its slow to ESC from each image being viewed and then load another one)

thank you for all of your excellent work !
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: Sorunome on April 01, 2013, 10:23:32 pm
wow, that is a pretty high quality O.O
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: Spenceboy98 on April 01, 2013, 11:00:43 pm
Dang. That's amazing. :) I wish someone would make something this awesome for the Prizm. :P Makes me wanna get an Nspire.
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: sam_naqvi7 on May 14, 2013, 01:55:11 pm
how to add the jpg and png or bmp images i get a error pls help i am using the student software
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: AlexisVieira on May 14, 2013, 02:11:40 pm
explains in detail your problem
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: sam_naqvi7 on May 14, 2013, 02:40:15 pm
i am using the student software to connect to the calculator. i installed the mviewer and it works fine on the cal
now i am trying to add jpg images to the cal and when i do so i get the error saying file not supported, that it needs to be in .tns.
so i converted the image to .tns but the mviewer wont open it (i dont want .tns i want jpg so i can zoom in)
pls help
thanx
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: AlexisVieira on May 14, 2013, 03:27:53 pm
well, i'm not sure that i understood all that you said...
you have a JPEG file called "xxx.jpg", you rename the image to "xxx.jpg.tns" and send to your nspire using the student software...
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: sam_naqvi7 on May 14, 2013, 04:06:27 pm
yes but is wont let me transfer the file
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: AlexisVieira on May 14, 2013, 04:18:09 pm
if you renamed the file you will be abble to transfer it... your file must be named with the two extensions ".jpg" and ".tns" and the extension ".tns" must be the last one on the name...
wright ---> "xxx.jpg.tns"
wrong---> "xxx.tns.jpg" or "xxx.jpg.tns.jpg" or another names
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: sam_naqvi7 on May 14, 2013, 04:41:16 pm
i cant make the image xxx.jpg.tns because by default the .jpg is add to the image
so when i rename the image it turns out to xxx.jpg.tns.jpg
so what should i do
i m sorry for being a little slow
thank you for the help
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: AlexisVieira on May 14, 2013, 04:48:32 pm
well, i'm portuguesese and that will be dificult to explain because my Windows is in portuguese xD but i will try
1-open the control panel
2- search for "folder options" and open it
3-change to the "view" tab
4- search for a option like "hide extensions for known file types" and unselect it
5- click "aply" and "ok"

now you can change the name of the image correcly
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: sam_naqvi7 on May 14, 2013, 04:53:49 pm
thank you so much you r awesome and a great help :)
Title: Re: New mViewer CX 3.2 adds JPEG support
Post by: AlexisVieira on May 14, 2013, 04:55:05 pm
yw :)