Although the TIFF format allows it, I believe that libtiff doesn't support 
mixed channel types. 



On November 12, 2014 7:38:21 AM PST, Michel Lerenard 
<[email protected]> wrote:
>Hi,
>
>I'm experiencing crashes when trying to write TIFF file in which 
>channels do not all have the same pixel format. I'm trying to mix
>UINT8, 
>UINT16 and UINT32 format.
>
>
>#1  0x00007ffff2bd1e59 in PredictorEncodeTile ()
>    from /home/michel/[...]/libOpenImageIO.so.1.5
>(gdb)
>#2  0x00007ffff2bb9cc3 in TIFFWriteEncodedTile ()
>    from from /home/michel/[...]/libOpenImageIO.so.1.5
>(gdb)
>#3  0x00007ffff2bb9921 in TIFFWriteTile ()
>    from from /home/michel/[...]/libOpenImageIO.so.1.5
>(gdb)
>#4  0x00007ffff2b30b0d in
>OpenImageIO::v1_5::TIFFOutput::write_tile(int, 
>int, int, OpenImageIO::v1_5::TypeDesc, void const*, long, long, long)
>()
>    from from /home/michel/[...]/libOpenImageIO.so.1.5
>
>
>I'm wondering if what I'm doing is allowed ?  It does work for OpenEXR 
>(at least using the last 2.2 version).
>
>
>For information, here's the content of the spec.channeformat array:
>spec.channelformats[0] = uint8
>spec.channelformats[1] = uint8
>spec.channelformats[2] = uint8
>spec.channelformats[3] = uint8
>spec.channelformats[4] = uint
>spec.channelformats[5] = uint
>spec.channelformats[6] = uint
>spec.channelformats[7] = uint
>spec.channelformats[8] = uint
>spec.channelformats[9] = uint
>spec.channelformats[10] = uint
>spec.channelformats[11] = uint
>spec.channelformats[12] = uint
>spec.channelformats[13] = uint
>spec.channelformats[14] = uint
>spec.channelformats[15] = uint
>spec.channelformats[16] = uint
>spec.channelformats[17] = uint
>spec.channelformats[18] = uint
>spec.channelformats[19] = uint
>spec.channelformats[20] = uint
>spec.channelformats[21] = uint
>spec.channelformats[22] = uint
>spec.channelformats[23] = uint
>spec.channelformats[24] = uint
>spec.channelformats[25] = uint
>spec.channelformats[26] = uint
>spec.channelformats[27] = uint
>spec.channelformats[28] = uint
>spec.channelformats[29] = uint
>spec.channelformats[30] = uint
>spec.channelformats[31] = uint
>spec.channelformats[32] = uint
>spec.channelformats[33] = uint
>spec.channelformats[34] = uint
>spec.channelformats[35] = uint
>spec.channelformats[36] = uint
>spec.channelformats[37] = uint
>spec.channelformats[38] = uint
>spec.channelformats[39] = uint
>spec.channelformats[40] = uint16
>spec.channelformats[41] = uint16
>spec.channelformats[42] = uint16
>spec.channelformats[43] = uint
>
>
>Any help is appreciated, I can't find info about pixel format in TIFF.
>
>Michel
>_______________________________________________
>Oiio-dev mailing list
>[email protected]
>http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

-- 
Larry Gritz
[email protected] 
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to