Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...
   All Posts (miker)


(1) 2 3 4 ... 16 »


Re: AROS 8bit JPEG Images

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
@oan3,

We have to be sure what we are talking about here. The jpeg library is different than the jpeg picture datatype. The jpeg picture datatype is located in a hidden drawer in AROS partition. The drawer is called Classes/DataTypes. The datatype itself is called jpeg.datatype and that is what MultiView and presumably ZuneView uses. (Icaros Default Image Viewer with double-click is MultiView).

If you replaced the jpeg library itself with the one from Icaros 1.5.2 then that's a different scenario. I have the iso for 1.5.2 on one of my hard disks. I'll try it when I get a chance to see what the differences are in jpeg files.


Posted on: 2017/12/9 11:49
Transfer the post to other applications Transfer


Re: ShowPicture Image Viewer/Converter

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
Now my Image Viewer has a working GadTools NewMenu System! It is a very simplistic menu system, but it works for me. Other than the menu item array struct most of the important action takes place in a function called "ShowImage" that handles the menu.

The difficulty I'm having at the moment deals with the 'Active Window' and Intuition. When I have more than one window open at a time, only the most recently opened window will have a functioning menu that responds to Intuition Messages. The other windows, even when I click to activate them also have menus but the items are inactive and the messages get queued. After the most recently (last) opened widow is closed then the next one in line (next to last opened) executes its queued menu commands. MultiView functionality using a similar NewMenu system allows selecting a window to make it and its menu active which then allows it to respond to the current set of Intuition messages.

Once I figure out Intuition Messages for the Active Window I will need a function to get fullpath using the Active Window Title and a filePathBuffer. Then I will be able to Save As, Save As IFF, and Save As PNG. The first Image Viewer will have limited capability to convert between image types. But the more advanced 'ShowPicture' will be fully functional as far as image conversions, modifications, and transformations.

Posted on: 2017/12/9 11:39
Transfer the post to other applications Transfer


Re: AROS 8bit JPEG Images

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
@amiga,

Interestingly, I tried to view the first Black Panther jpg file with the Nightly ABIv1 jpg datatype and it failed.

I used a paint program to open it and then re-saved as a 24bit jpg. Then I was able to view it with ABIv1 in MultiView and ZuneView.

The original jpg file was quite a bit smaller in size than the re-saved file as in 50kb vs 25kb. It could be due to the compression algorithm used, but 25kb is a lot of difference.

Which version of ABIv0 are you using? Icaros, Hosted, Native? I wonder which jpg datatype you are using. If it's ABIv0 I could use the same one to test the jpg file with.

Posted on: 2017/12/8 19:22
Transfer the post to other applications Transfer


Re: AROS 8bit JPEG Images

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
@oan3,

This is all the same topic - AROS Jpeg DataType.

So, you can see both jpg images with the jpeg datatype from Icaros 1.5.2?

I have that Live! DVD. I'll try using that one.



Posted on: 2017/12/8 11:13
Transfer the post to other applications Transfer


Re: AROS 8bit JPEG Images

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
I'm using Icaros Desktop (ABIv0). I'll try with ABIv1.

Posted on: 2017/12/7 18:00
Transfer the post to other applications Transfer


Re: ShowPicture Image Viewer/Converter

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
union
{
unsigned long;
unsigned char byte[4];
} ARGBlong2char;


ARGBlong2char.long = val;

buffer[offset++] = ARGBlong2char.byte[0];
buffer[offset++] = ARGBlong2char.byte[1];
buffer[offset++] = ARGBlong2char.byte[2];
buffer[offset++] = ARGBlong2char.byte[3];

>There are two simple reasons for the use of union here:

>1st
The compile can ddecide if he uses '>>' together with '& 0xff' ore something better for the byte access.

>2nd
You can switch to other byte orderings faster without thinking where to shift what ...

I like the idea of using a union. I would still have to declare unsigned char buffer[4]; and I would have to return the buffer[]. I'd like to use it as a helper function so that it can be re-used. I'll try that.

Posted on: 2017/12/7 13:13
Transfer the post to other applications Transfer


Re: AROS 8bit JPEG Images

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
@oan3,

I downloaded the two sample jpg image files you provided. The Black Panther jpg and the Desktop jpg were both 24bit. I was able to display the Desktop jpg in Icaros Desktop.

The Black Panther jpg, however, was corrupted somehow.
So I opened it in a paint program and re-saved as 24bit. Then I was able to display it in Icaros Desktop as well.

As an added benefit, I was able to convert both 24bit jpg images directly to IFF24 (ILBM). The conversion was smooth.

I looked at the source code for Jpeg DataType briefly and I found the location in the Read function where it identifies the bitDepth. If it isn't 24 bit it won't load the image. I assume the same is true for the Save function as well. It will only attempt to save 24 bit Jpeg image files rather than 8 bit and 24 bit. In the future maybe it can be revised to support both image bitDepths, hopefully!


Posted on: 2017/12/7 12:07
Transfer the post to other applications Transfer


Re: GadToolBox open source

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
This is an older topic, but I thought I might bring it up again.

While researching a way to include a GadTools Menu System in my Image Viewer I found GadToolsBox v3 that is now open source on Aminet and GitHub. I'd like to try it out on my Amiga 500 + Vampire accelerator to see what it can do.

From what I can see so far AROS needs GUI builders that can assist developers, new and old, to create new apps. MUI is great, but having a good variety of GUI building tools would be good for development. Do you agree?

Posted on: 2017/12/7 12:00
Transfer the post to other applications Transfer


AROS 8bit JPEG Images

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
It seems that many image viewers and paint programs can load, display, modify and save 8bit Jpeg images. But apparently the AROS JPEG DataType can't open 8bit Jpeg's.

Posted on: 2017/12/7 9:32
Transfer the post to other applications Transfer


Re: ShowPicture Image Viewer/Converter

Joined:
5/2 17:15
From California, United States
Group:
Member
Posts: 160
Offline
I've looked at a few examples of AROS menu systems but they aren't working for my image viewer. Instead I'd like to put together a GadTools menu system using NewMenus.

Posted on: 2017/12/7 9:28
Transfer the post to other applications Transfer



 Top
(1) 2 3 4 ... 16 »




Search
Top Posters
1 paolone
paolone
4364
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3892
4 nikolaos
nikolaos
3694
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2648
7 mazze
mazze
2214
8 clusteruk
clusteruk
2111
9 Kalamatee
Kalamatee
2024
10 damocles
damocles
1789
© 2004-2017 AROS Exec