Author Topic: New BMPX Picture DataType  (Read 334 times)

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
New BMPX Picture DataType
« on: September 21, 2019, 06:52:14 PM »
Here is the new bmpx datatype. This is the AVIv0 version.

It is about 98% complete. It will Load & Save BMP, BMPX.

I'm still working on 32bit BMPX Alpha Transparency.

salvatore

  • Guest
Re: New BMPX Picture DataType
« Reply #1 on: September 21, 2019, 08:19:24 PM »
nice miker :)

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
Re: New BMPX Picture DataType
« Reply #2 on: September 21, 2019, 08:40:12 PM »
It was tested somewhat on Icaros adesktop Hosted on Windows.
It should be considered experimental until you are sure it will work for you to Load and Save BMP's.

So don't delete the old BMP datatype and descriptor until you have tested BMPX. Move it to a storage folder.
You can't use both BMP & BMPX datatypes at the same time. BMP datatype has been superceded by BMPX.
 
Here is the source code for BMPX Picture DataType. It is released under AROS License as usual.
« Last Edit: September 21, 2019, 09:19:51 PM by miker1264 »

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
Re: New BMPX Picture DataType
« Reply #3 on: September 22, 2019, 02:41:21 PM »
Revised source code for bmpx datatype.

This one has the makefile.bmpx file needed to compile the datatype.

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
Re: New BMPX Picture DataType
« Reply #4 on: September 25, 2019, 03:05:59 PM »
Does anyone have information about the format and proper layout of the datatype descriptor source file *.dtd used to make descriptors for new datatypes?

I'm trying to make a new one but it's not quite working for me. If I use the old BMP descriptor it has to be initialized each time before use. I would like to make BMPX using createdtdesc so it works.

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
Re: New BMPX Picture DataType
« Reply #5 on: September 26, 2019, 08:04:56 AM »
Congratulations! The New BMP Picture Datatype is now functional and ready for release.

Simply copy bmp.datatype to Sys:Classes/DataTypes and remove the old bmp.datatype

You can leave the BMP datatype descriptor in Sys:Devs/DataTypes. It's the same as the new one.

==========================================

It is recognized by MultiView as the BMP Picture Datatype.
It can Load Windows BMP files up to 24bit and 32bit BMPX files.
It can save 8bit and 24bit BMP files and 32bit BMPX files.

MultiView can display normal 32bit BMPX files using the new datatype but it can't display the
Alpha Transparency if the BMPX has an Alpha Mask. But this may be fixed in a later update.

Source code for version 1.0.0 will be uploaded soon.

wawa

  • Member
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: New BMPX Picture DataType
« Reply #6 on: September 26, 2019, 08:12:04 AM »
btw considering your questions to dev ml, they might be answered sooner on our slack.

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
Re: New BMPX Picture DataType
« Reply #7 on: September 26, 2019, 08:17:59 AM »
btw considering your questions to dev ml, they might be answered sooner on our slack.

Thank you. How do I get there?


Samurai_Crow

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
  • Hobby coder
Re: New BMPX Picture DataType
« Reply #8 on: September 26, 2019, 10:36:35 AM »
You need to be invited.  Check your PM.

Edit: never mind the PM.  I would need your email to generate an invite.

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
Re: New BMPX Picture DataType
« Reply #9 on: September 26, 2019, 01:28:50 PM »
You need to be invited.  Check your PM.

Edit: never mind the PM.  I would need your email to generate an invite.

I sent you a message with my email.

mmartinka

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
Re: New BMPX Picture DataType
« Reply #10 on: September 26, 2019, 03:03:57 PM »
Not correct show 1bit bmp format. The shows black picture only...

Congratulations! The New BMP Picture Datatype is now functional and ready for release.

Simply copy bmp.datatype to Sys:Classes/DataTypes and remove the old bmp.datatype

You can leave the BMP datatype descriptor in Sys:Devs/DataTypes. It's the same as the new one.

==========================================

It is recognized by MultiView as the BMP Picture Datatype.
It can Load Windows BMP files up to 24bit and 32bit BMPX files.
It can save 8bit and 24bit BMP files and 32bit BMPX files.

MultiView can display normal 32bit BMPX files using the new datatype but it can't display the
Alpha Transparency if the BMPX has an Alpha Mask. But this may be fixed in a later update.

Source code for version 1.0.0 will be uploaded soon.

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
Re: New BMPX Picture DataType
« Reply #11 on: September 26, 2019, 03:58:48 PM »
I'll continue testing with all bitdepths. I only tested 8bit, 24bit and 32bit so far.

Thanks for the information. If you find any other issues with loading or saving please message me and I will try to verify it and correct the issue.

I made two small changes to the original load function to allow loading 32bit bmp images. One involved the colormap the other added pixel format and alignwidth, alignbytes to load 32bit bmp's. The rest is as it was. It was written by someone else whose name appears in the source code. I haven't tested all of it.

The AROS picture datatypes have been in a sad state for a long time, many missing save functions. I hope to fix as much as I can but there may be room for improvement on that.

Did you test the original bmp datatype to find if it can load 1bit and 4bit correctly? I haven't.
« Last Edit: September 26, 2019, 04:45:18 PM by miker1264 »

mmartinka

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
Re: New BMPX Picture DataType
« Reply #12 on: September 26, 2019, 06:56:52 PM »
So sorry, but I'm mistake.  :o
According to this web pages. The 1bit bmp and 4bit format works well. With your datatype.bmp
Here:
http://entropymine.com/jason/bmpsuite/bmpsuite/html/bmpsuite.html

I have two 1bit bmp picture and they do not show correct.
here:
https://drive.google.com/file/d/1_1QUQzQcSmqT1A6kO_AQu4V1VWv9Bpp9/view?usp=sharing
https://drive.google.com/file/d/1iftSt4MpxXte9Mlc6R7BTHO11wNbk2U_/view?usp=sharing

miker1264

  • Senior Member
  • ****
  • Posts: 257
  • Karma: +11/-1
Re: New BMPX Picture DataType
« Reply #13 on: September 26, 2019, 07:10:00 PM »
When I have some time I will take a look at your sample images and test 1bit and 4bit images with the old bmp datatype and new one to compare.

There are some sample bmp images in the AROS sources.


salvatore

  • Guest
Re: New BMPX Picture DataType
« Reply #14 on: September 26, 2019, 10:28:05 PM »
thank you for your effort miker :)