Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - critor

Pages: 1 ... 116 117 [118] 119 120 ... 137
1756
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 14, 2010, 06:18:29 pm »
Forget about mViewer and its 16 grayscale levels (4-bits).

The last build of mViewer is now able to display your bitmaps in not less than 31 different grayscale levels! (8-bits)

And guess what? While viewing the image, it as fast as the last public binary.


It was quite hard to take a photo.



Note: it looks much better without an APN.

1757
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 14, 2010, 06:00:48 am »
Thank you calc84maniac.
I'm going to try.

Edit: got another idea to speed up things even more (although speed doesn't seem to be a problem here).

1758
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 13, 2010, 10:39:00 pm »
That could make it more speedy, I guess.

What do you want to be faster?
My code is allready telling the Nspire to wait! :p

Remember we have 90MHz. ;)



No, it isn't. The palette is used to look up color values, of which there are still only 15.

Ok, the palette may be limited to 15/16 entries.

But... it seems there is a 16bpp mode.
And in this mode, each pixel is supposed to contain directly a 16-bit RGB/BGR color value and not a palette index.

Which would mean we can have 256-level grayscale ? . . . ;)

1759
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 13, 2010, 09:58:47 pm »
Updated:
http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=2014

Fixed severall little bugs:
- the text console was loosing 1 character when reaching the bottom of the screen
- the browser scrolling was bad if there were more than 2 pages of files
- RLE compressed bitmaps were not read correctly if the 0x00FF escape command was found

Remaining bug:
- if the image has been scrolled (top-left corner offset is not null), the zoom in/out is "sometimes" not centered properly.


I've mentioned Omnimaga for the tests in the readme.

1760
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 13, 2010, 07:03:57 pm »
Wow those pictures are incredible!  Is there any sort of dithering involved?

There is certainly "something".
The pictures look much better on the true hardware that on the emulator.

1761
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 13, 2010, 08:28:28 am »
Here's a nice photo!

I've cleaned up the screen :p



1762
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 13, 2010, 12:27:22 am »
It might be a pointer problem.
fread takes a char* as 1st argument, not a char.

Code: [Select]
fread(&currentByte, 1, 1, file);
dispHex(currentByte);

1763
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 13, 2010, 12:19:29 am »
Ah, I see.  Also, given file and dispHex(char), the following should display the first 5 bytes, correct?
Code: [Select]
file = fopen(path, "rb");
clrScr();
resetConsole();
for (i = 0; i < 5; i++)
{
fread(currentByte, 1, 1, file);
dispHex(currentByte);
}

yes, correct

1764
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 13, 2010, 12:03:30 am »
Thanks.  Also, in your source code, you have browse.c which exposes chooseFile(char*, char*).  This returns an int.  What is represented by that int?

It just indicates if the choice was validated (enter key with a file selected) or cancelled (esc key).
It's like a basic "ok/cancel" borwsing dialog box.

1765
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 12, 2010, 11:40:55 pm »
Here's the BMP.
It worked on my calc, so it should work on yours... after a reboot in the worst case (RAM cleared).

We should take a memorial photo after cleaning the screen :p

1766
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 12, 2010, 11:31:16 pm »
I went for stress-testing, and I got it :)

I've converted your PNG to a 24-bits uncompressed BMP (2.25Mb) using The GIMP.
It works on calc, and it looks very great. My Nspire looks great, thanks to you!

Maybe you had less available RAM than me...
Or maybe there was a difference in the file again.

I'll try to install Paint.net tomorrow.
Thanks again.

1767
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 12, 2010, 11:26:58 pm »
Wow SirCmpwn... that's a huge picture.

The PNG is allready 1.5Mb large...
The 24-bits uncompressed BMP is going to be... bigger! :p


Maybe a malloc did fail...
(any segmentation fault is triggering a reboot on the Nspire)
I suppose I should test for the return of the malloc.

1768
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 12, 2010, 11:16:28 pm »
Size: 1.54 MB
Dimensions: 1024x768



Strangely, I've got a working 1.75Mb bitmap.
So size doesn't seem to be a problem.

Could you upload that file too?


When you get a reboot, you should try again immediatly.
If it does reboot again, the problem comes from the image.

If it does not, then it was a bug from mViewer or Ndless.


I got some reboots while using mViewer, but they were quite rare and non reproduceable.
I alose got some rare reboots while not using mViewer... (reboots which could then be Ndless related)

1769
Other Calculators / Re: mViewer - Nspire BMP viewer
« on: December 12, 2010, 11:00:55 pm »
Awesome Critor! Is it based on Bwang's BMP viewer by the way?

No it is not.
(I would first have asked for his permission)

The display code is based on the demo that was published on TI-Bank a year ago.
I've added some scrolling code and double-buffering.
Levak helped me to add zoom in/out code.

And BMP support was started from scratch and is designed to be very generic
Bwang's was only supporting 24-bits if i remember well.


Please go on telling me about your good/bad BMP experiences with the viewer.
This might be the 1st program I'm going to submit to Ticalc.

Thank you all again.

1770
Other Calculators / Re: mViewer - Nspire BMP viewer
« 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?

Pages: 1 ... 116 117 [118] 119 120 ... 137