Author Topic: mViewer - Nspire BMP viewer  (Read 31050 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
Re: mViewer - Nspire BMP viewer
« Reply #30 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);
TI-Planet co-admin.

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #31 on: December 13, 2010, 12:36:47 am »
What do ya know!  That worked.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #32 on: December 13, 2010, 08:28:28 am »
Here's a nice photo!

I've cleaned up the screen :p



Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: mViewer - Nspire BMP viewer
« Reply #33 on: December 13, 2010, 10:48:23 am »
Wow, those photos display quite nicely. Good job! =)

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #34 on: December 13, 2010, 04:56:08 pm »
Glad you found a use for my pic :)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: mViewer - Nspire BMP viewer
« Reply #35 on: December 13, 2010, 04:59:41 pm »
Wow those pictures are incredible!  Is there any sort of dithering involved?

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #36 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.
TI-Planet co-admin.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: mViewer - Nspire BMP viewer
« Reply #37 on: December 13, 2010, 07:35:23 pm »
really? usually, the emulator shows it better, since it does perfect greyscale whereas the nspire, well, doesn't :P

nice, and I like having a file browser!

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: mViewer - Nspire BMP viewer
« Reply #38 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.
« Last Edit: December 13, 2010, 09:59:39 pm by critor »
TI-Planet co-admin.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: mViewer - Nspire BMP viewer
« Reply #39 on: December 13, 2010, 10:19:04 pm »
I read on hackspire that the LCD driver supports 8 bit gs. Could this be a possibility for a future version?

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: mViewer - Nspire BMP viewer
« Reply #40 on: December 13, 2010, 10:20:01 pm »
I read on hackspire that the LCD driver supports 8 bit gs. Could this be a possibility for a future version?
It's not 256-level grayscale, it's 8-bit pixel data. The 8 bits are used to look up color values in a palette.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #41 on: December 13, 2010, 10:21:03 pm »
Can we define the palette?

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: mViewer - Nspire BMP viewer
« Reply #42 on: December 13, 2010, 10:22:27 pm »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

SirCmpwn

  • Guest
Re: mViewer - Nspire BMP viewer
« Reply #43 on: December 13, 2010, 10:24:04 pm »
So does this mean that, for example, we could do a perfect fade through 256 shades of gray?

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: mViewer - Nspire BMP viewer
« Reply #44 on: December 13, 2010, 10:25:13 pm »
I read on hackspire that the LCD driver supports 8 bit gs. Could this be a possibility for a future version?
It's not 256-level grayscale, it's 8-bit pixel data. The 8 bits are used to look up color values in a palette.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman