Hi Franco, Hard to say without seeing more of the code/coontext, but if you wish to changes the compression schemes, then you will first have to load+uncompress the data into a intermediate buffer and then recompress with the new scheme of your liking.
Other attributes, chromaticities for example, imply how the data should be interpreted and as such do not require the above uncompress-compress cycle. Piotr ________________________________ From: openexr-devel-bounces+pstanczyk=ilm....@nongnu.org [openexr-devel-bounces+pstanczyk=ilm....@nongnu.org] on behalf of franco cortesi [cortes...@hotmail.com] Sent: 07 February 2013 04:31 To: openexr-devel@nongnu.org Subject: [Openexr-devel] compression Hi!. i'm trying to change compression types with exrstdattr. but it doesn't work: // // Load the input file, add the new attributes, // and save the result in the output file. // InputFile in (inFileName); Header header = in.header(); header.compression() = Imf::RLE_COMPRESSION; it compiles but when i try to convert some files it raises: Quick pixel copy from image file ".." to image file ".." failed. The files use different compression methods. dont know know exactly what i'm doing, just try and error. the purpose of this code is to use exrstdattr as back end for a little tool im working on, a command line and gui based batch exr conversor. and sorry but i haven't found so much info about compression on exr docs or web searching :)
_______________________________________________ Openexr-devel mailing list Openexr-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/openexr-devel