bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 16 bits tiff RGB support under GNUStep.


From: Pete French
Subject: Re: 16 bits tiff RGB support under GNUStep.
Date: Fri, 11 Mar 2005 00:16:23 +0000

> With xlib backend I've got this log message and nothing is displayed:
> "Bizzare number of bits per sample 16".

mea culpa. I wrote that error message - the code which habdles those
images doesnt deal with more than 8 bits per sample. It inherits
from some very old code I wrote under NextStep 3.3, and back then
I dont think it was possible to get more than 8 bits per sample (i.e.
a 24 bit RGB image).

The code renders everything to 8 bits per pixel - that error mesasage
comes from the code which scales things up to 8 bits from whatever lesser
number of btis it may be. Its done with ints for speed so you cant just
change the values and add extra parts to the switch statement to scale them
down, but you could either modiufy it to take floats or (better) have
a flage for scaling up or down as approrpiate.

You probably also want to look at _get_bit_value as I am not
sure it will do it;s job properly if the values can take more than
two bytes (i.e. anything over 8 bits, as this may overlap 3 bytes depending
on offset).

It's all in back/Source/xlib/XGBitmap.m, but it's a long time since
I looked at the code as I switched to using backart myself.

-bat.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]