I suppose I only need to add ../imageviewer/png/[some source file] on the SOURCES file of my plugin, correct (my plugin is in a separate folder)? After that, I can call the PNG decoding functions out of my maps plugin, correct?
I'm going to try it now, when I open my development environment virtual machine.
Thanks for the help.
EDIT: I just started looking further into the PNG code now, it seems that, apart from the filename, it also needs a image_info struct to load_and_show the image. So, adding PNG support to the API would be useful if it was made to happen like with BMP (we only need to provide the filename and a x,y coordinate to position the image onscreen).
EDIT 2:
I have been "investigating" and just realized that using directly the libs from the PNG viewer would be both difficult and not a good coding practice (in my opinion). Including PNG support on the API (just like what happened with JPEG) would make the task of playing with PNGs in plugins much easier.
I saw how Pictureflow imports JPEG libraries (by importing [sourceroot]/apps/plugins/lib/read_image.h), and how JPEG was imported to the API. I guess we could do the same with PNG, the problem is that
1) As far as I seen, PNG libraries don't have the same skeleton as JPEG ones (it's not as easy as renaming some variables and voids)
2) Because of what I described on 1, I don't have enough knowledge to edit/expand the API to add PNG support

(my developing knowledges were almost learned in my own, and I'm still learing)
2.1) It seems to me that there is little to no documentation on the API so I can't learn by myself
3) Having me adding PNG support to the API would certainly be too much changes to include in a diff/patch
So, if someone could look into this issue, it would be greatly appreciated. Furthermore, after adding PNG support to the API, it would be more easy to add support to PNG albumart (PNG compresses much better than BMP and doesn't look blurry at high resolutions as JPEG).
Thanks for your help so far
