For those who are interested in updated datatypes this is the topic for that.
The new and updated datatypes are mostly picture datatypes.
There are currently a couple of options to compile datatypes. Because they are small libraries they can't simply be compiled at the command line like some other small programs.
But they can be compiled in a shell using the Picture Datatype Creation Tool which is available online. The second method is to use the Build System to compile datatypes.
For those new to programming and datatypes I will put together a text file and sample project to get you started. I will probably use BMP datatype for a sample since I wrote LoadBMP & Save BMP for that datatype.
It is easy to understand and easy to compile. At first I used Yannick's datatype compiler tool.
All the planned updates for picture datatypes have been completed except for Targa & PCX.
I need to finish writing Targa RLE for run length encoding & PCX datatype needs code cleanup.
TIFF datatype is on hold till I come up with a solution to it not working with MultiView. It may require a complete re-write of the datatype using only native methods to load & save Tiff files.
Converting the Tiff Library to a shared library may be an easier route. As far as I know the Amiga OS4 & Morph OS versions also use Tiff Library. Using Tiff Library functions is easier.
Hmmm....
There seems to be an AROS x86 version of Tiff Library. I will look into using that.
Edited by miker1264 on 04-12-2023 18:34, 1 year ago
All the planned updates for picture datatypes have been completed except for Targa & PCX.
I need to finish writing Targa RLE for run length encoding & PCX datatype needs code cleanup
This you can do at your leisure, on AROS One Targa and existing PCX datatypes work very well with Multiview.
Quote
TIFF datatype is on hold till I come up with a solution to it not working with MultiView. It may require a complete re-write of the datatype using only native methods to load & save Tiff files.
Have you tried testing it with 'Loview' or 'PicShow', e.g. 'XBM datatype' and 'XBM datatype' do not work with Multiview, but work fine with 'Loview' or 'PicShow'.
Quote
There seems to be an AROS x86 version of Tiff Library. I will look into using that.
I don't think I have this Tiff Library, on which version of AROS One did you see it?
To test the Targa and PCX datatypes you have to first open them in MultiView and select Project - About from the menu. Take note of the Targa & PCX datatype version. Then select Project - Save As. MultiView will save a copy of the file using the current datatype Save function.
If the Targa file and PCX file saves correctly then the save functions are working correctly. 24 bit picture files are the best choice to do testing.
The AROS x86 version of Tiff Library is on the AROS Archives. In Development.
Edited by miker1264 on 05-12-2023 21:40, 12 months ago
Targa and PCX of the new Builds are very recent (see screenshot), also Multiview allows you to save images in IFF.
If you use LoView you can save Images in IFF, JPG, PNG, BMP (see screenshot), LoView uses Datatypes to display Images.
As already mentioned LoView also shows XPM, and XBM images correctly and can save in the formats described.
Multiview on the other hand shows XPM, and XBM images in Text format !
According to the version screenshot those are the original datatypes without save functions.
If you look at the new versions screenshot and picture datatype screenshot I bumped up the versions to match the main version of the current picture datatype which is 41.6. It has DT_Write which I added so it's the current file.
The Targa version is 41.2. PCX version is 41.3.
I can help you to build and update the datatypes.
Typing on smart phone is tedious. It auto corrects nearly everything. And then after typing a lengthy explanation Arosworld dumps what I wrote without posting it. Then I start again!!
Edited by miker1264 on 06-12-2023 11:48, 12 months ago
Here are some instructions for building the datatypes and descriptors.
Targa datatype should support loading and saving 8 bit, 16 bit, 24 bit & 32 bit Targa images. That & RLE compression was the main reason for the current update. The previous version only supported saving the 24 bit Targa images.
For Targa I think the toughest part was writing the 16 bit support & Targa RLE. The Targa run length encoding works at the pixel level rather than at the byte level for PCX. So I had to use memory compare method to compare bytes.
It's easier to write text files than to type on my phone. I'm getting old. LOL
You have probably already used the datatype descriptor tool. That is also in the tools folder.
Edited by miker1264 on 06-12-2023 12:50, 12 months ago
According to the version screenshot those are the original datatypes without save functions
With all the new datatypes available in the build, with "Multiview" I can safely save images in IFF
If instead I use 'LoView' with all the new datatypes available in the build, I can save in IFF, JPG, PNG, BMP.
Practically all the datatypes work perfectly, except TIFF which does not exist, then the HTML datatypes which do not support some web pages would have to be improved.
I avoid using my mobile phone on Forums, too inconvenient!
Did you test the save functions for Targa and PCX datatype by opening the images in MultiView then us Save As from the menu?
Save As IFF will save an ILBM. That won't test the save functions for Targa and PCX datatype.
Tiff datatype will need to be compiled and tested. Until now I only compiled it with the Build System and all testing was done on AROS x86_64. Maybe AROS x86 will perform better.
I will test build and test the latest Targa & PCX. I'll try to build the latest Tiff datatype for x86.
Edited by miker1264 on 06-12-2023 15:23, 12 months ago
According to your earlier screenshot with Targa & PCX versions you are using MultiView 1.7 where Save As has been removed. It's actually quite useful. Maybe that's why I added it back.
You can't Save As if there is no menu item. But Save As IFF does nothing to test saving Targa & PCX. The datatypes have their own save functions.
Edited by miker1264 on 06-12-2023 18:28, 12 months ago
I also compiled & did some testing with the newest Targa datatype. I opened the 24 bit RLE compressed Targa file with MultiView 1.8 then chose "Save As" from the Project Menu. It saved a good uncompressed 24 bit Targa file to Ram. Also, I opened an 8 bit Targa file & successfully saved it to Ram. I haven't tested 16 bit or 32 bit.
In the next update (41.3) I will complete the Targa RLE (run length encoding). For the moment all Targa files saved with the new datatype (41.2) will be uncompressed. Note that version 0.2 of Targa datatype doesn't save correctly.
Attached is the MultiView screenshot, the new Targa datatype & new MultiView that Amiwell79 mentioned earlier. More datatype updates soon. Please don't repost the Targa datatype. It's still being revised and tested to confirm functions.
PS - I like the new MultiView icon.
Edited by miker1264 on 07-12-2023 15:04, 12 months ago
Where can I find them so I can verify that they both have save functions?
You can view all discussion threads in this forum. You cannot start a new discussion thread in this forum. You cannot reply in this discussion thread. You cannot start on a poll in this forum. You cannot upload attachments in this forum. You can download attachments in this forum.