Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  PNG viewer plugin
« previous next »
  • Print
Pages: [1]

Author Topic: PNG viewer plugin  (Read 2548 times)

zajacattack

  • Guest
PNG viewer plugin
« on: December 29, 2007, 06:13:43 PM »
So, I was looking into adding a PNG viewer into rockbox. Would libpng work for this? (See http://www.libpng.org/pub/png/libpng.html)
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: PNG viewer plugin
« Reply #1 on: December 29, 2007, 06:37:59 PM »
As long as it's GPL licensed, and can be made to require little enough RAM *anything* will work, the question always boils down to "how much work will it take to convert it, and how fast will it be afterward."
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: PNG viewer plugin
« Reply #2 on: December 30, 2007, 05:16:30 AM »
I looked into this a while ago, and at least to me, it looked like quite a lot of work. Most of libpng is done using floating point arithmetic, and that alone would mean quite a lot of work getting it ported to Rockbox. I kind of stopped my analysis at that point, since I've never looked into what's required for floating point to integer arithmetic conversion, and at the time, didn't really have the motivation to get my reading books out :)
Logged

Read The Manual Please

Offline crash91

  • Artist
  • Member
  • *
  • Posts: 50
Re: PNG viewer plugin
« Reply #3 on: January 02, 2008, 10:47:00 AM »
I think it would be really great if this was implemented. It would be even better if it was integrated into the RB core, because WPS designers would then be able to use the Aplha channel for transparency in PNGs  ;D ;D
But anyway, as GodEater said, its a lot of work, but it would be nice if implemented.
Logged
Owner of a Rockbox'd Sansa e250.
Rockbox WPS maker.

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: PNG viewer plugin
« Reply #4 on: January 02, 2008, 11:03:51 AM »
Llorean: libpng's license page:

http://www.libpng.org/pub/png/src/libpng-LICENSE.txt

No idea what kind of license that is. It's just listed as "Open Source" on the front page.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: PNG viewer plugin
« Reply #5 on: January 02, 2008, 08:30:51 PM »
Wiki knows ALL.

Quote from: http://en.wikipedia.org/wiki/Libpng
Released under the permissive free software licence used by zlib,[1] libpng is free software.
Quote from: http://en.wikipedia.org/wiki/Zlib_License
It is compatible with the GNU General Public License.
« Last Edit: January 02, 2008, 08:32:58 PM by cool_walking_ »
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: PNG viewer plugin
« Reply #6 on: January 03, 2008, 06:26:32 PM »
Ahh, good to know.  ;)
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

zajacattack

  • Guest
Re: PNG viewer plugin
« Reply #7 on: January 03, 2008, 06:36:24 PM »
Quote from: GodEater on December 30, 2007, 05:16:30 AM
I looked into this a while ago, and at least to me, it looked like quite a lot of work. Most of libpng is done using floating point arithmetic, and that alone would mean quite a lot of work getting it ported to Rockbox. I kind of stopped my analysis at that point, since I've never looked into what's required for floating point to integer arithmetic conversion, and at the time, didn't really have the motivation to get my reading books out :)
So, what is the problem with floating point arithmetic, and why is it necessary to convert it to integer arithmetic?
Logged

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: PNG viewer plugin
« Reply #8 on: January 03, 2008, 06:39:08 PM »
None of our targets (bar possibly the Gigabeat S IIRC) have a floating point unit (FPU). Without an FPU, floating point maths has to be emulated (including all the malarky required for IEEE 754) by the CPU which is incredibly slow.

Hence the need to convert floating point to fixed point (i.e. integer) maths.

Edit: minor typo corrections.
Logged

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: PNG viewer plugin
« Reply #9 on: January 14, 2008, 05:53:58 AM »
Libpng should already have fixed point implementation included :) See http://groups.google.com/group/mozilla.dev.platforms.mobile/browse_thread/thread/504332475973e42d.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  PNG viewer plugin
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.111 seconds with 14 queries.