Login
Username:

Password:

Remember me



Lost Password?

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

Members: 1
Guests: 1

77slevin, more...
   All Posts (GreenNight)


(1) 2 3 4 ... 62 »


Re: ShowPicture Image Viewer/Converter

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
buffer[offset] = (UBYTE)((val >> 24) & 0xFF);
buffer[offset 1] = (UBYTE)((val >> 16) & 0xFF);
buffer[offset 2] = (UBYTE)((val >> 8) & 0xFF);
buffer[offset 3] = (UBYTE)(val 0xFF);


well I would recommend unions:

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];

// or better

union 
{
   
unsigned long;
   
unsigned char byte[4];
ARGBlong2char[buffersize];



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 ...

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


Re: IFF24 ILBM Color Experiments

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
Quote:

miker wrote:

When you say color reduction, do you mean color quantizing, or alpha reduction such as 32 bit to 24 bit?


I do not remember the exact problem I was working on.

It had to do with colour reduction (24Bit -> 8Bit) I needed a simple and fast algorithm something I could figure out in an afternoon.

First I reduced the 24Bit Pictures to 16Bit, because making a histogram for 65328 colours is much easier than doing it for 16777216 colours. And together with this histogram, I figured out what palette would be good enough for a 256 colour display.

---

BTW.:

When processing IFF Files you should do it with a state machine, when I started doing it I thought all the date will have the same data chunks coming in the same order, but this is not always true.


Posted on: 2017/12/6 11:55
Transfer the post to other applications Transfer


Re: IFF24 ILBM Color Experiments

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
Be careful, some programs generated 24Bit IFF pictures with 8- Bit transparency but did not call them 32Bit IFF.

For a simple conversion algorithm I converted the 24Bit to 16Bit where I could easily count the colours for further colour reduction.

Posted on: 2017/12/4 10:29
Transfer the post to other applications Transfer


Re: 10 YEARS OF ICAROS DESKTOP

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
Thanks for your work.

A good working distribution is really important.

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


Re: Please bring Folio to AROS

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
>
Please bring Folio to AROS

It is also running on 'other systems' like AOS4 ...

Try this http://folio.morph.zone/folio_morphos_v1.lha

Posted on: 11/16 12:54
Transfer the post to other applications Transfer


Re: Anyone at Amiwest for AROS?

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
Amiwest seems to me like an AOS4 festival only.

I don't think it is worth travelling hundred of miles just for celebrating a 'community with AOS4' that doesn't exist.

Posted on: 11/1 8:08
Transfer the post to other applications Transfer


Re: [off-topic]Chips4Makers

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
Quote:

Fats wrote:
This post is maybe not fully off-topic as it can be that some text-only heavily reduced AROS version may pop up on the M68K side in the future


Well there is an Amiga compatible kernel on Aminet:

Quote:

AmiExec is a real-time, multi-tasking micro-kernel, the core of which is an implementation of exec.library. AmiExec can be used for automation, process control, or other embedded systems based on 68K family CPUs and micro-controllers.

http://aminet.net/dev/cross/AmiExec.lha

Posted on: 9/17 13:32
Transfer the post to other applications Transfer


Re: Icaros Desktop SMP Bounty!

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
IMR there is (was?) a bounty for an AMD 64Bit AROS V1 Distro.

I believe this should be done before going fully SMP.

Posted on: 9/9 5:37
Transfer the post to other applications Transfer


Re: Folio - text editor

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
Well, much better than waiting for "Final Writer" or crashing with "Cinamon Writer"

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


Re: new tcp/ip stack? how about that: uIP

Joined:
2009/3/15 4:41
Group:
Member
Posts: 616
Offline
Quote:

The uIP is an open source implementation of the TCP/IP network protocol stack intended for use with tiny 8- and 16-bit microcontrollers.

...

Despite the examples and its small size, uIP 0.9 can be difficult to apply because it does not use any form of socket API


I see more troubles than benefits.

BTW. Most (all?) TCP/IP stacks used on the Amiga are based on a TCP/IP stack for BSD. Maybe we could find someone back porting newer features from actual BSD Stacks.

Actual TCP/IP ports are supporting DMA and IPV6, nice features that could become important.

Posted on: 7/17 13:20
Transfer the post to other applications Transfer



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




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