On 8 Mrz., 18:19, Stefan Peter <[email protected]> wrote:

> I don't think that this is the whole truth. This message seems to be
> present under Windows XP with 2010.4 and 2011 beta 2 as well as under
> ubuntu 10.10 AMD_64 / 2011.0.0 RC2 and Ubuntu 10.10 i386 / 
> fromhttps://launchpad.net/~hugin/+archive/nightly.
>
> All sources I checked yet have used #include tiff.h and the
> COMPRESSION_whatever defines from there, as it should be.
>
> And I can not find any indication that COMPRESSION_OJPEG has ever been
> anything else then 6, as it is today in /usr/include/tiff.h.

In

src/hugin_base/vigra_ext/tiffUtils.h

OJPEG compression is explicitly set:

    // set compression
    unsigned short tiffcomp;
    if ( comp == "JPEG" )
        tiffcomp = COMPRESSION_OJPEG;

So I changed the line to ask for

        tiffcomp = COMPRESSION_JPEG;

instead. Gosh, compiling sure takes long...

no effect, nona still emits the warining. Looked some more, found in

src/foreign/vigra/vigra_impex/tiff.cxx:

        if ( comp == "NONE" )
            tiffcomp = COMPRESSION_NONE;
        else if ( ( comp == "JPEG" ) && ( quality != -1 ) )
            tiffcomp = COMPRESSION_OJPEG;

changed that to COMPRESSION_JPEG, now I get this warning instead:

JPEGSetupEncode: BitsPerSample 16 not allowed for JPEG.

My images are 16bit, but in my p-line it says

p f2 w2510 h1255 v360  E0 R0 n"TIFF_m c:LZW r:CROP"

So I'm processing TIFF files after all. Very puzzling. On a hunch I
changed the p-line to TIFF instead of TIFF_m. Now I get the last
warning only once instead of twice (two images in the pto)

Kay

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to