On Thu, 13 Jan 2005 09:53:07 +0100 Attila Kinali <[EMAIL PROTECTED]> babbled:
(B
(B> Hi,
(B> 
(B> I just run across some tiff files which use "odd" number of bits
(B> per channel, which imblib2 (version 1.1.2 from debian/testing)
(B> isn't able to show. Beside a black window, i only get a 
(B> "channel bits == 3" on the console.
(B> 
(B> A quick look into the code reveals:
(B> 
(B> loaders/loader_tiff.c:262
(B> ---
(B> 
(B>         if (rgba_image.rgba.bitspersample == 8)
(B>           {
(B>              if (!TIFFRGBAImageGet((TIFFRGBAImage *) & rgba_image,
(B>                                    rast, width, height))
(B>                {
(B>                   _TIFFfree(rast);
(B>                   free(im->data);
(B>                   im->data = NULL;
(B>                   TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image);
(B>                   TIFFClose(tif);
(B>                   
(B>                   return 0;
(B>                }
(B>           }
(B>         else
(B>           {
(B>              printf("channel bits == %i\n",
(B(int)rgba_image.rgba.bitspersample);
(B>           }
(B> ---
(B> 
(B> Ie only 8 bits per channel are handled.
(B> 
(B> Would it be possible to add here support for other bits/channel too ?
(B
(Bsure. it'd be possible, but i don't have the time to do it. i currently maintain
(Babout 500,000 lines of code - of which imlib2 is only about 38,000 lines and is
(Bused very little in my current coding - so it's waaaaaaaay on the bottom of my
(Bpriority list :(
(B
(B
(B-- 
(B------------- Codito, ergo sum - "I code, therefore I am" --------------
(BThe Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
$BMg9%B?(B                              [EMAIL PROTECTED]
(BTokyo, Japan ($BEl5~(B $BF|K\(B)
(B
(B
(B-------------------------------------------------------
(BSF email is sponsored by - The IT Product Guide
(BRead honest & candid reviews on hundreds of IT Products from real users.
(BDiscover which products truly live up to the hype. Start reading now.
(Bhttp://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
(B_______________________________________________
(Benlightenment-devel mailing list
([email protected]
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to